在RHEL AS4 linux 32位上安装oracle 9.2.0.4数据库的过程

教程发布:风哥 教程分类:ITPUX技术网 更新日期:2022-02-12 浏览学习:761

在RHEL AS4 linux 32位上安装oracle 9.2.0.4数据库的过程

1.安装以下包和补丁:
[font=Helvetica-Narrow-Bold][size=13pt]Operating System Requirements
Before installing Oracle9[i]i release 2 on Red Hat Enterprise Linux 4, you must perform. the following steps: Download and Install Required Packages Required packages for 32bit (x86) architecture:binutils-2.15.92.0.2-21
compat-db-4.1.25-9
compat-gcc-32-3.2.3-47.3
compat-gcc-32-c++-3.2.3-47.3
compat-libcom_err-1.0-5
compat-libcwait-2.1-1
compat-libgcc-296-2.96-132.7.2
compat-libstdc++-296-2.96-132.7.2
compat-libstdc++-33-3.2.3-47.3
gcc-3.4.6-3.1
gcc-c++-3.4.6-3.1
glibc-2.3.4-2.25
glibc-common-2.3.4-2.25
glibc-devel-2.3.4-2.25
glibc-headers-2.3.4-2.25
glibc-kernheaders-2.4-9.1.98.EL
libgcc-3.4.6-3.1
make-3.80-6.EL4.i386 [size=15pt]Many of these packages depend on other packages.The compat-oracle-rhel4-1.0-3 and compat-libcwait-2.0-1 packages are available from patch 4198954.(只针对32位)安装4198954补丁(只针对32位):使用root用户:$ unzip p4198954_21_LINUX.zipArchive: p4198954_21_LINUX.zipcreating: 4198954/inflating: 4198954/compat-oracle-rhel4-1.0-5.i386.rpminflating: 4198954/compat-libcwait-2.0-2.i386.rpminflating: 4198954/README.txt#Note that the compat-oracle-rhel4 and compat-libcwait packages require the xorg-x11-deprecated-libs and xorg-x11-deprecated-libs-devel packages, see above. To install the two RPMs from the 4198954 patch, run: # rpm -Uvh 4198954/compat-oracle-rhel4-1.0-5.i386.rpm \4198954/compat-libcwait-2.0-2.i386.rpm

2) 安装前的准备工作:2.1. Configuring Kernel Parametersa. Using any text editor, create or edit the /etc/sysctl.conf file and add or edit lines similar to the following: (以下参数是oracle推荐使用)[i]kernel.shmall = 2097152[i]kernel.shmmax = 2147483648[i]kernel.shmmni = 4096[i]kernel.sem = 250 32000 100 128[i]fs.file-max = 65536[i]net.ipv4.ip_local_port_range = 1024 65000By specifying the values in the /etc/sysctl.conf file, they persistwhen you reboot the system.2.2 Setting Shell Limits for the oracle UserTo increase the shell limits:1. Add the following lines to /etc/security/limits.conf file:oracle hard nofile 65536 oracle soft nofile 65536 oracle hard nproc 16384 oracle soft nproc 16384 3.创建oracle用户组和文件目录
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
mkdir -p /orasys/oracle/product/9.2.0
chown -R oracle:oinstall /orasys
chmod 755 -R /orasys

4.设置oracle用户环境变量 vi /home/oracle/.bash_profile
[i]export LD_ASSUME_KERNEL=2.4.19
export ORACLE_BASE=/orasys/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=ora9i
export ORACLE_TERM=xterm
export NLS_LANG=AMERICAN;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
export PATH=$PATH:$ORACLE_HOME/bin

5.用oracle用户登录安装
先解压压缩文件
gunzip ship_9204_linux_disk1.cpio.gz
gunzip ship_9204_linux_disk2.cpio.gz
gunzip ship_9204_linux_disk3.cpio.gz
cpio -idmv < ship_9204_linux_disk1.cpio cpio -idmv < ship_9204_linux_disk2.cpio cpio -idmv < ship_9204_linux_disk3.cpio 下面就是按图形界面来操作了

本文标签:
网站声明:本文由风哥整理发布,转载请保留此段声明,本站所有内容将不对其使用后果做任何承诺,请读者谨慎使用!
【上一篇】
【下一篇】