Sie sind auf Seite 1von 7

ORACLE 9iR2 Database Server Installation Procedure on RHEL ES3 Partition Requirements for installing Oracle 9iR2 on RHEL

ES 3 Having 512 MB RAM. Swap pertition 2GB ( 2048 )

/boot pertition 1024 MB / pertition Remaining Disk Space


[ Note : Select Everything package while installing RHEL, RHEL full installation Oracle takes 7 GB of disk space. ]

Setting SWAP Space


In order to perform a typical Oracle 9i ( 9.2.0.4 ) installation and create a simple prototype database, you need a minimum of 512 MB of RAM , and the amount of Swap space should be equal to twice the amount of RAM. To check the available memory, run the follwing command as root user :

# grep MemTotal /proc/meminfo


To check the available Swap space , run the follwing command as root user :

# cat /proc/swaps Setting Shared Memory


It is recommended to increase the shmmax setting permanently for Oracle :

1. Login as root user. 2. Edit the file /etc/sysctl.conf using vi editor , add the follwing lines at the end of the file :# vi /etc/sysctl.conf kernel.shmmax = 1073741824 kernel.sem = 250 32000 100 128 fs.fil-max = 65536 3. Save the file.

Reboot the system.

# init 6

ADDING ONBOARD ETHERNET CARD (BROADCOM IN DELL SERVER :


Please give following command set after login as root.

# mkdir /bcm #cd /bcm


Insert Patch cd in drive:

#mnt /mnt/cdrom #cp /mnt/cdrom/alhbank/broadcom.zip #unzip braodcom.zip

Now Follow following steps to install the driver : 1. Install the source RPM package:

#rpm -ivh bcm5700-8.1.55-1.src.rpm


2. CD to the RPM path and build the binary driver for your kernel:

#cd /usr/src/redhat #rpmbuild -bb SPECS/bcm5700.spec


Note that the RPM path is different for different Linux distributions. 3. Install the newly built package (driver and man page):

#rpm -ivh RPMS/i386/bcm5700-8.1.55-1.i386.rpm


4. Load the driver:

#modprobe bcm5700 #insmod bcm5700 #kudzu


Select configure option when prompted.

Give IP address as 192.168.0.100 And broadcoast as 255.255.255.0


Now go to

#cd /etc #vi hosts add one line as below 192.168.0.100 alhbank
now change the hostname to alhbank

Goto graphical mode Login as root

Select by click of mouse start (redhat) Select settings Select Network Change to local host name to alhbank Save the settings by clicking on File then Save option Restart the system Please check the following RPMs installed :Login as root

# rpm qa |grep compat # rpm qa | grep openmotif


Those command will show you following RPMs * Required OS Components

compat-db-4.0.14.5 compat-gcc-7.3-2.96.122 compat-gcc-c++-7.3-2.96.122 compat-libstdc++-7.3-2.96.122 compat-libstdc++-devel-7.3-2.96.122 openmotif21-2.1.30-8.i386.rpm


- setarch-1.3-1 Glibc Version Number glibc 2.3.2-95.3

#uname r ( It will show you the kernel version )


Relink gcc so that the older gcc will be used during the oracle installation : login as root

# # # #

mv ln mv ln

/usr/bin/gcc /usr/bin/gcc323 s /usr/bin/gcc296 /usr/bin/gcc /usr/bin/g++ /usr/bin/g++323 s /usr/bin/g++296 /usr/bin/g++

Creating a Oracle Directory

#mkdir /oracle # chmod R 777 /oracle

Creating Oracle User Accounts login as root

#groupadd dba #groupadd oinstall #useradd g oinstall G dba d /oracle s #passwd oracle #confirm the password for oracle
Creating Oracle Directories

/bin/bash oracle

Oracle Software will require minimum 2.5 GB of space.Add separate space for database and logs. Login as root

#mkdir #chown #mkdir #chown #chmod

p /oracle/product/9.2.0 R oracle.oinstall /oracle /var/opt/oracle R oracle.dba /var/opt/oracle R 755 /var/opt/oracle

Setting Oracle User Environments Set the following runInstaller Oracle environment variables before you start

As the oracle user execute the following commands.

#su oracle $vi .bash_profile


now add the follwing lines in your .bash_profile :

ORACLE_BASE=/oracle/product export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/9.2.0 export ORACLE_HOME PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin:/usr/bin:/usr/bin/X11 export PATH ORACLE_SID=bankdb export ORACLE_SID ORACLE_TERM=xterm export ORACLE_TERM LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/l ib:/usr/X11 export LD_LIBRARY_PATH LD_ASSUME_KERNEL=2.4.19 export LD_ASSUME_KERNEL THREADS_FLAG=native export THREADS_FLAG TMP=/tmp export TMP

TMPDIR=$TMP export TMPDIR umask 022


Running Oracle Installation on RHEL ES3 In order to runInstaller you have to apply the patch p3006854_9204_LINUX.zip Copy the file into the system. Login as root

#cp /mnt/cdrom/p3006854_9204_LINUX.zip . #unzip p3006854_9204_LINUX.zip #cd 3006854 #sh rhel3_pre_install.sh


Applying patch

Patch successfully appalied Reboot the system #init 0

NOW START runInstaller FROM THE CDROM Login as oracle Open a terminal Insert the CD into CDROM it will auto mount.

$/mnt/cdrom/runInstaller -Welcome Screen : Click Next -Inventory Location : Click Ok -Unix Group Name : Use dba and Click next -When asked to run /tmp/orainstRoot.sh, run it from a separate terminal before you click. Open another terminal $su root password # ./tmp/orainstRoot.sh -File Location : Use by default -Available Product : Select Oracle9i Database 9.2.0.1.0 -Installation Types : Select Standard Edition -Database Configuration: select General Purpose Set Database name same as SID Set Character set AL32UTF8 -Summery Screen : Start the install

-At the end of installation, exit runInstaller

When prompted the execution of root.sh

$ su root password #cd /oracle/product/9.2.0 #sh root.sh #exit

Patching If required as per HK S/W we have to install the following patches for database migration. Login as oracle $cp /mnt/cdrom/p2617419_220_GENERIC.zip /tmp $cd /tmp $unzip p2617419_220_GENERIC.zip $cd 2617419

Startup & Shutdown of Oracle Database

Sqlplus:
Login as oracle

$sqlplus /nolog SQL> CREATE PFILE $ORACLE_HOME/dbs/initbankdb.ora FROM SPFILE; SQL> exit
IF you face any problem to run above command then

Goto /oracle/product/9.2.0.4/dbs #cd /oracle/product/9.2.0/dbs copy pfile : #cp spfilebankdb.ora initbankdb.ora


now you dont required to run above command.

$su root password

FOR AUTORUN ORACLE #vi /etc/rc.d/rc.local add flowing lines su l oracle c /oracle/product/9.2.0/bin/lsnrctl start su l oracle c /oracle/product/9.2.0/bin/dbstart save & exit from vi editor

#vi /etc/oratab change the line : bankdb:/oracle/product/9.2.0 : N put Y in place of N save & exit #vi .bash_profile Add this line in PATH variable :/oracle/product/jre/1.3.1/bin Save & Exit Now Restart the box # init 6 Apply fix for Export error Login as oracle $sqlplus SQL> connect / as sysdba SQL>@$ORACLE_HOME/rdbms/admin/catmeta.sql
Exit from sqlplus and restart the box Verify fix for Export error Login as oracle Run export utility

$exp scott/tiger@bankdb file=scott.dmp statistics=none


Observe if export was successfully completed In any confusion please contact PCS Lucknow office Ph No: 022-2206321/2206141/9415024399

Das könnte Ihnen auch gefallen