ITPub博客

首页 > Linux操作系统 > Linux操作系统 > Installing Oracle9iR2 on Red Hat Enterprise Linux Advanced Server 4

Installing Oracle9iR2 on Red Hat Enterprise Linux Advanced Server 4

原创 Linux操作系统 作者:conan005 时间:2008-01-01 09:07:37 0 删除 编辑

Downloading and Installing Red Hat Enterprise Linux Advanced Server 4

Download and Install Red Hat Enterprise Linux. I choose installing with all RPMs. I think nowadays it would be easy for you to get a 20G harddisk and RHEL4 costs about 6G. It would be easy for configuring with everything installed.

Unpacking Downloaded Oracle9i Installation Files

Download Oracle9i for Linux from the following web site:
http://www.oracle.com/technology/software/products/oracle9i/htdocs/linuxsoft.html

Uncompress and unpack downloaded files:
root in /soft/oracle/9i:
zcat ship_9204_linux_disk1.cpio.gz | cpio -idmv
zcat ship_9204_linux_disk2.cpio.gz | cpio -idmv
zcat ship_9204_linux_disk3.cpio.gz | cpio -idmv

Now you should have 3 directories containing installation files:
Disk1
Disk2
Disk3

Setting Swap Space

In order to perform. a typical Oracle 9i installation and to create a simple prototype database, Oracle says that you need a minimum of 512MB of RAM for the Oracle9i (9.0.1) Server, and the amount of disk space (swap space) should be equal to twice the amount of RAM or at least 400 MB, whichever is greater.

To check the memory, run:

grep MemTotal /proc/meminfo

To check the swap space, run:

cat /proc/swaps

Setting Shared Memory

echo "kernel.shmmax=268435456" >> /etc/sysctl.conf
echo "kernel.shmmni=4096" >> /etc/sysctl.conf
echo "kernel.shmall=2097152" >> /etc/sysctl.conf
echo "kernel.sem=250 32000 100 128" >> /etc/sysctl.conf
echo "fs.file-max=65536" >> /etc/sysctl.conf
echo "net.ipv4.ip_local_port_range=1024 65000" >> /etc/sysctl.conf

Restart the computer to make it effective.

Checking Packages (RPMs)

Ensure the following required packages are installed on your server by running the following command:

rpm -q make \
          compat-db \
          compat-gcc-32 \
          compat-gcc-32-c++ \
          compat-oracle-rhel4 \
          compat-libcwait \
          compat-libgcc-296 \
          compat-libstdc++-296 \
          compat-libstdc++-33 \
          gcc \
          gcc-c++ \
          gnome-libs \
          gnome-libs-devel \
          libaio-devel \
          libaio \
          openmotif21 \
          xorg-x11-deprecated-libs-devel \
          xorg-x11-deprecated-libs

Many of these packages depend on other packages. If you choose installing everything when installing linux you could save time in this step.

To install the compat-oracle-rhel4 and compat-libcwait packages you have to download the patch 4198954. To unzip the downloaded p4198954_21_LINUX.zip file, run:

unzip p4198954_21_LINUX.zip
cd 4198954
rpm -Uvh compat-oracle-rhel4-1.0-5.i386.rpm \
              compat-libcwait-2.0-2.i386.rpm

Creating Oracle User Accounts

su - root

groupadd dba
groupadd oinstall
useradd -c "Oracle software owner" -g oinstall -G dba oracle
passwd oracle

Creating Oracle Directories

su - root
mkdir -p /u01/app/oracle/product/9.2.0
chown -R oracle.oinstall /u01

mkdir /var/opt/oracle
chown oracle.dba /var/opt/oracle
chmod 755 /var/opt/oracle
chmod -R 755 /soft

Restart the computer.

Setting Oracle Environments

Log in as oracle user and put these environment settings at the end of the ~oracle/.bash_profile file.

export LD_ASSUME_KERNEL=2.4.19
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=test
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

Log out

Installing

Log in as oracle user

echo $LD_ASSUME_KERNEL
/soft/oracle/9i/Disk1/runInstaller

 - Welcome Screen:      Click Next - Inventory Location: Click OK
 - Unix Group Name:    
Use "oinstall" and click Next
                                    When asked to run /tmp/orainstRoot.sh, run it before you click Continue

- File Locations:             Use default values
- Available Products:      Select "Oracle9i Database 9.2.0.4.0"
- Installation Types: 
     Select "Enterprise Edition" and "Software Only" since we only want to install the software for now
 - Summary:                 Start the Install

Patching Oracle9i R2 (9.2.0.4) on RH AS 4

su - oracle
cp p3948480_9206_LINUX.zip /tmp
cp p4188455_10103_LINUX.zip /tmp
cd /tmp
unzip p3948480_9206_LINUX.zip
unzip pp4188455_10103_LINUX.zip
echo $LD_ASSUME_KERNEL
/tmp/Disk1/install/runInstaller -paramFile /tmp/oraparam.ini

- Welcome Screen:      Click Next
- File Locations:            Use default values (in my example: /tmp/Disk1/stage/products.xml)
- Available Products:    Select "Oracle Universial Installer 10.1.0.3.0 !"
- Summary:                    Click Install
- At the end of the installation, you must exit runInstaller!

Ensure no Oracle processes are running.

ps -ef | grep ora

Now to patch Oracle9iR2, run:

echo $LD_ASSUME_KERNEL
/tmp/Disk1/install/runInstaller -paramFile /tmp/oraparam.ini

 - Welcome Screen:      Click Next
- File Locations:        Use default values (in my example: /tmp/Disk1/stage/products.xml)
- Available Products:      Select "Oracle 9iR2 Patchset 9.2.0.6.0"
- Summary:                   Click Install
                                    When are asked to run root.sh, run it before you click Continue
- At the end of the installation, exit runInstaller.

To install opatch, run:

su - oracle
cp p2617419_10102_GENERIC.zip /tmp
cp p4190568_9206_LINUX.zip /tmp
unzip p2617419_10102_GENERIC.zip
cp -a /tmp/OPatch/ $ORACLE_HOME
unzip p4190568_9206_LINUX.zip
cd 4193454
export PATH=$PATH:$ORACLE_HOME/OPatch
opatch apply

Now you should be able to create a database with dbca:

su - root
touch /etc/rac_on
su - oracle
dbca
ignore errors. The problem is the jre.

Startup and Shutdown of the Oracle 9i Database

sqlplus /nolog
conn sys/syspwd as sysdba

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/138496/viewspace-67356/,如需转载,请注明出处,否则将追究法律责任。

上一篇: 没有了~
请登录后发表评论 登录
全部评论

注册时间:2007-12-31

  • 博文量
    3
  • 访问量
    3809