- 论坛徽章:
- 0
|
1、安装hpux11.11i(pa-risc)
2、安装tuxedo8.1,visibroker6.5 ,timesten5.1 ,oracle92client.
1、安装hpux11.11i操作系统。(10秒中断 进入isl。输入sea->bo P3 ( 从光盘引导)->选取install system->选取advance install->setup system-,filesystem,->开始安装。
2、扩opt文件系统:
a、#shutdown –ry 0 重启系统。
b、10秒中断按任一键。
c、输入bo
d、输入y 进入交互模式
e、输入hpux –is 进入单用户模式启动
f、mount –a 加载所有文件系统,执行bdf命令以便确定opt文件系统对应的lv。
g、umount /opt
h、lvextend –L 2048 /dev/vg00/lvol7 (2048单位为M,是扩展后的大小)
i、extendfs –F vxfs /dev/vg00/rlvol7 (这一步骤一定要小心,仔细想一下)
j、mount /opt
k、bdf 检查是否扩成功。(扩其系统文件系统类似,需进入单用户模式。如:usr,tem)
3、建相关用户及组
a、建立dba组。#groupadd -g 102 –o dba
b、建立oracle,tuxedo81,vbroker用户。
#useradd –u 104 –o -g dba -d /home/oracle –s /usr/bin/ksh oracle
#useradd -u 103 –o –g users –d /home/tuxedo81 –s /usr/bin/ksh tuxedo81
#useradd –u 102 –o –g users –d /home/vbroker –s /usr/bin/ksh vbroker
4、打系统补丁(#swinstall –s /software/ PHSS_30966.depot)
A、PHSS_30966.depot(visibroker6.5需要)
B、GOLDQPK11i_B.11.11.0509.429.depot,2005Oct1111.depot (安装oracle92 需要)
5、安装C++及java编译环境
A、sdk14_14206_1100.depot (swinstall –s /software/ sdk14_14206_1100.depot)
B、C++3.60.tar(a、tar –xvf C++3.60.tar b、swinstall –s /software/sw)
6、更改系统链接(安装oracle需要,如需安装database还需调整内核参数,现只安装client只需做link就可了。
# cd /usr/lib
# ln -s /usr/lib/libX11.3 libX11.sl
# ln -s /usr/lib/libXIE.2 libXIE.sl
# ln -s /usr/lib/libXext.3 libXext.sl
# ln -s /usr/lib/libXhp11.3 libXhp11.sl
# ln -s /usr/lib/libXi.3 libXi.sl
# ln -s /usr/lib/libXm.4 libXm.sl
# ln -s /usr/lib/libXp.2 libXp.sl
# ln -s /usr/lib/libXt.3 libXt.sl
# ln -s /usr/lib/libXtst.2 libXtst.sl
7、配置vbroker,tuxedo81,oracle用户的.profile文件。
8、建立文件系统
lvcreate -L 1024 -n lv_visibroker /dev/vg00
newfs -F vxfs /dev/vg00/rlv_visibroker
mkdir /visibroker
mount /dev/vg00/lv_visibroker /visibroker
vi /etc/fstab
lvcreate -L 1024 -n lv_timesten /dev/vg00
newfs -F vxfs /dev/vg00/rlv_timesten
mkdir /timesten
mount /dev/vg00/lv_timesten /timesten
vi /etc/fstab
lvcreate -L 1024 -n lv_tuxedo81 /dev/vg00
newfs -F vxfs /dev/vg00/rlv_tuxedo81
mkdir /tuxedo81
mount /dev/vg00/lv_tuxedo81 /tuxedo81
vi /etc/fstab
lvcreate -L 5120 -n lv_oracle /dev/vg00
newfs -F vxfs /dev/vg00/rlv_oracle
mkdir /oracle
mount /dev/vg00/lv_oracle /oracle
vi /etc/fstab
lvcreate -L 5120 -n lv_public /dev/vg00
newfs -F vxfs /dev/vg00/rlv_public
mkdir /public
mount /dev/vg00/lv_public /public
vi /etc/fstab
9、更改文件系统属主。
chown -R vbroker:staff /visibroker
chown -R oracle:dba /oracle
chown -R tuxedo81:staff /tuxedo81
10、安装 中间件及oracle client
a、安装visibroker6.5,用vbroker用户安装,并应在事先在网上申请好活动文件(reg584.txt)
在安装完毕后,把(reg584.txt)分别copy到/visibroker/Borland/BDP/var/reg584.txt
visibroker/Borland/BDP/license/reg584.txt目录下。
b、安装tuxedo8.1,用tuxedo81用户进行安装。也应事先准备好lic.txt文件,并准备好ubbsimple文件。安装完毕后用,tmloadcf –y ubbsimple 生成tlog及tuxconfig文件。
用tmlboot –y来启动tuxedo8.1.如在执行tmloadcf –y ubbsimple时报错,dld.sl不能访问请执行
#chmod -R 755 /tuxedo81 ,再执行tmloadcf –y ubbsimple 就可以了。
3、oracle92 client 安装,用oracle用户进行安装。
#gzip –d /software/oradisk/server-9201-hpux64-disk1.cpio.gz
#cpio –idcv
………………………
配置tnsnames.ora文件。
4、安装timesten5.1,用root用户进行安装。
在安装过程中应选择连接oracle数据库,并修改timesten安装路径。
附:
ubbsimple
"ubbsimple" 52 lines, 937 characters
# (c) 2003 BEA Systems, Inc. All Rights Reserved.
#ident "@(#) samples/atmi/simpapp/ubbsimple $Revision: 1.5 $"
#Skeleton UBBCONFIG file for the TUXEDO Simple Application.
#Replace the items with the appropriate values.
*RESOURCES
IPCKEY 125655
#Example:
#IPCKEY 123456
#DOMAINID simpapp
MASTER "tydic4"
MAXACCESSERS 40
MAXSERVERS 40
MAXSERVICES 1700
MODEL SHM
#LDBAL Y
*MACHINES
DEFAULT:
APPDIR="/home/tuxedo81"
"ubbsimple" 52 lines, 937 characters
# (c) 2003 BEA Systems, Inc. All Rights Reserved.
#ident "@(#) samples/atmi/simpapp/ubbsimple $Revision: 1.5 $"
#Skeleton UBBCONFIG file for the TUXEDO Simple Application.
#Replace the items with the appropriate values.
*RESOURCES
IPCKEY 125655
#Example:
#IPCKEY 123456
#DOMAINID simpapp
MASTER "hostname"
MAXACCESSERS 40
MAXSERVERS 40
MAXSERVICES 1700
MODEL SHM
#LDBAL Y
*MACHINES
DEFAULT:
APPDIR="/home/tuxedo81"
TUXCONFIG="/home/tuxedo81/tuxconfig"
TUXDIR="/tuxedo81/bea/tuxedo8.1"
TLOGDEVICE="/home/tuxedo81/TLOG"
TLOGNAME=TLOG
TLOGSIZE=10
MAXWSCLIENTS=30
ULOGPFX = "/home/tuxedo81/ULOG"
#Example:
# APPDIR="/home/me/simpapp"
# TUXCONFIG="/home/me/simpapp/tuxconfig"
# TUXDIR="/usr/tuxedo"
"hostname" LMID="hostname"
#Example:
#beatux LMID=simple
*GROUPS
GROUP1
LMID="hostname" GRPNO=1 OPENINFO=NONE
*SERVERS
DEFAULT:
CLOPT="-A"
simpserv SRVGRP=GROUP1 SRVID=1
*SERVICES
TOUPPER
tuxedo .profile
# @(#)B11.11_LR
# Default user .profile file (/usr/bin/sh initialization).
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
# Set up the search paths:
PATH=$PATH:.
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
# Set up the shell variables:
EDITOR=vi
export EDITOR
TUXDIR=/tuxedo81/bea/tuxedo8.1; export TUXDIR
PATH=$TUXDIR/bin:$PATH; export PATH
COBCPY=:$TUXDIR/cobinclude; export COBCPY
COBOPT="-C ANS85 -C ALIGN=8 -C NOIBMCOMP -C TRUNC=ANSI -C OSEXT=cbl"; export COBOPT
SHLIB_PATH=$TUXDIR/lib; export SHLIB_PATH
LIBPATH=$TUXDIR/lib; export LIBPATH
LD_LIBRARY_PATH=$TUXDIR/lib; export LD_LIBRARY_PATH
WEBJAVADIR=$TUXDIR/udataobj/webgui/java
APPDIR=/home/tuxedo81;export APPDIR
TUXCONFIG=/home/tuxedo81/tuxconfig;export TUXCONFIG
TLOGDEVICE=/home/tuxedo81/TLOG;export TLOG
LANG=C;export LANG
export PS1='['`hostname`:`whoami`']''$PWD>'
~
~
~
~
~oracle .profile
# @(#)B.11.11_LR
# Default user .profile file (/usr/bin/sh initialization).
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
# Set up the search paths:
PATH=$PATH:.
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
# Set up the shell variables:
EDITOR=vi
export EDITOR
export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/app/product/9.2.0
export ORACLE_SID=ora92
export ORACLE_TERM=xterm
export ORA_DB=/oradata
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:$ORACLE_HOME/rdbms/lib
export LD_LIBRARY_PATH
SHLIB_PATH=ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32
export SHLIB_PATH
export PATH=$PATH:$ORACLE_HOME/bin
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
export TERM=vt100
~
visibroker .profile
# @(#)B.11.11_LR
# Default user .profile file (/usr/bin/sh initialization).
# Set up the terminal:
if [ "$TERM" = "" ]
then
eval ` tset -s -Q -m ':?hp' `
else
eval ` tset -s -Q `
fi
stty erase "^H" kill "^U" intr "^C" eof "^D"
stty hupcl ixon ixoff
tabs
# Set up the search paths:
PATH=$PATH:.
# Set up the shell environment:
set -u
trap "echo 'logout'" 0
# Set up the shell variables:
EDITOR=vi
export EDITOR
export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/app/product/9.2.0
export ORACLE_SID=ora92
export ORACLE_TERM=xterm
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/rdbms/lib:/opt/java1.4/lib:/opt/java1.4/jre/lib.
export LD_LIBRARY_PATH
JAVA_HOME=/opt/java1.4
export PATH=/visibroker/Borland/BDP/bin:$PATH:$ORACLE_HOME/bin:/opt/java1.4/bin:/opt/java1.4/lib/tools.jar:/opt/java1.4/jre/
bin:/opt/bin:
CLASSPATH=/opt/java1.4/lib:/visibroker/Borland/BDP/lib/jdsserver.jar:/visibroker/Borland/BDP/lib/jds.jar:/visibroker/Borland
/BDP/lib/dx.jar:/ora9/app/product/9.2.0/jdbc/lib/classes12.jar
export CLASSPATH
export TERM=vt100
DISPLAY=192.168.168.14:0.0
DISPLAY=192.168.168.220:1.0
export DISPLAY
export WORKDIR=/visibroker/Borland/BDP
export BES_LIC_DIR=/visibroker/Borland/BDP/var
ksh -o vi
~
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/5029/showart_63957.html |
|