oracle 9.2.0.4在 linux RHELAS4 32位的安裝文件

paulyibinyi發表於2008-08-04

1.安裝以下包和補丁:

Operating System Requirements

Before installing Oracle9i 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

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.zip

Archive:  p4198954_21_LINUX.zip

   creating: 4198954/

  inflating: 4198954/compat-oracle-rhel4-1.0-5.i386.rpm

  inflating: 4198954/compat-libcwait-2.0-2.i386.rpm

  inflating: 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 Parameters

a.       Using any text editor, create or edit the /etc/sysctl.conf file and

add or edit lines similar to the following: (以下引數是oracle推薦使用)

 

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

By specifying the values in the /etc/sysctl.conf file, they persist

when you reboot the system.

 

2.2     Setting Shell Limits for the oracle User

 To 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

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

cpio -idmv

cpio -idmv

下面就是按圖形介面來操作了

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-417753/,如需轉載,請註明出處,否則將追究法律責任。

相關文章