安装前期准备工作:
HP L2000机器一台、4个440HZ CPU、5G内存、两块18G硬盘(一块系统盘,一块镜像)、一块73G硬盘(用作数据库),HPUX11i安装盘一张(DVD)、Support Plus光盘一张、MEGPATCH光盘一张、ORACLE9i FOR HPUX11i安装文件(server_9201_hpunix64_disk1-4.cpio.gz)、系统补丁(PHKL_25506、PHSS_24638、PHSS_26263)
安装步骤:
1,安装HPUX11i操作系统(/tmp预留至少60M空间);
2,做系统镜像;
3,安装MEGPATCH光盘上补丁2004Jun11.depot:
# mkdir /cdrom
# mount -0 cdcase /dev/dsk/c3t2d0 /cdrom
# swinstall -s /cdrom/2004Jun11.depot
4,安装Support Plus盘中GOLDAPPS11i和GOLDBASE11i;
5,打系统补丁PHSS_26263(操作系统安装好后系统自带补丁PHKL_25506以及PHSS_2638,不需要再安装);
6,将73G硬盘加入到新建vg01中,分别划分20G文件系统/oracle、40G文件系统/oradata。查看etc/lvmtab文件:
# strings /etc/lvmtab
/dev/vg00
/dev/dsk/c2t0d0
/dev/dsk/c2t2d0
/dev/vg01
/dev/dsk/c1t0d0
7,修改内核参数:
MAXDSIZ 1073741824
MAXDSIZ_64 2147483648
MAXSSIZ 134217728
MAXSSIZ_64 1073741824
MAXUSERS 1000
NPROC 208*MAXUSERS
SEMMNI 500
SEMMNS 1000
SEMMSL 2048
SEMVMX 32767
SEMMNU 500
SHMMAX 1073741824
SHMMNI 512
SHMSEG 200
VPS_CEILING 64
8,FTP上传ORACLE9i安装文件到/oradata目录,运行命令:
# gunzip server_9201_hpunix64_disk1-4.cpio.gz
# cpio -idcmv < server_9201_hpunix64_disk1-4.cpio
解压完全之后,显示分别是Disk1-4;
9,创建dba和oracle用户,并赋予权限:
# chown oracle:dba /oracle
# chmod 755 /oracle
# chown oracle:dba /oradata
# chmod 755 /oradata
10,设置oracle的环境变量:
用oracle用户登陆
$vi .profile,在文件的最后加入以下参数:
ORACLE_BASE=/oracle
ORACLE_HOME=/oracle/product/9.2.0.1
ORACLE_SID=ora
ORACLE_TERM=xterm
export ORACLE_BASE ORACLE_HOME ORACLE_SID ORACLE_TERM
NLS_LANG=american_america.ZHS16GBK
export NLS_LANG
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export ORA_NLS33
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib:/lib:/usr/lib:$ORACLE_HOME/RDBMS/lib:$ORACLE_HOME/lib32
SHLIB_PATH=$ORACLE_HOME/lib32:$ORACLE_HOME/rdbms/lib32
ORACLE_DOC=$ORACLE_BASE/product/9.2.0.1
export SHLIB_PATH LD_LIBRARY_PATH ORACLE_DOC
PATH=/bin:/usr/bin:/usr/sbin:/opt/bin:/usr/local/bin:$ORACLE_HOME/bin:/usr/contrib/bin:$PATH
export PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
export CLASSPATH
EDITOR=vi
export EDITOR
11,修改系统bug:
#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
12,安装Xmanager软件,打开Xmanager,输入L2000 IP地址,以oracle用户登陆到图形界面,执行以下命令:
$ . ./.profile
$ export DISPLAY=host ip:0.0
$ cd /oradata/oracle9201_HPUX11i/Disk1
$ runInstaller
开始安装ORACLE9i
13,待安装完成之后,以oracle用户登陆,测试数据库连接情况:
# su - oracle
$ sqlplus "/ as sysdba"
SQL> startup
Total System Global Area 202861040 bytes
Fixed Size 735728 bytes
Variable Size 167772160 bytes
Database Buffers 33554432 bytes
Redo Buffers 798720 bytes
Database mounted.
Database opened.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
阅读(2891) | 评论(0) | 转发(0) |