Installation of Oracle 9i in RedHat Linux AdvanceServer 3

Before installing Oracle install the pre requests like Jdk 1.3 (java development Kit 1.3)

rpm -ivh j2sdk-1_4_2_08-linux-i586.rpm

Alternatively the following lines can be added to the /etc/sysctl.conf :

kernel.shmmax = 2147483648
kernel.shmmni = 128

kernel.shmall = 2097152

kernel.sem = 250 32000 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000


And save and exit

run the {sysctl -p} so that we need not restart the system
sysctl -p

In addition the following lines can be added to the /etc/security/limits.conf :

oracle soft nofile 65536
oracle hard nofile 65536
oracle soft nproc 16384

oracle hard nproc 16384

limits -p

Add following groups:

groupadd oinstall
groupadd dba

groupadd oper

groupadd apache


Add a user oracle !(Adding a user Oracle)
useradd -g oinstall -G dba oracle
passwd oracle

!(-g primary group ,-G secondary group and oracle is user under this group)


mkdir -p /u01/app/oracle/product/9.2.0.4.0
chown -R oracle.oinstall /u01

!(-R option is recursive rights..ownership to all the /u01 user) chown -r



change ownership from root to oracle user

Add the folling entries .bash_profile (As Oracle User)

ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=/u01/app/oracle/product/9.2.0.4.0; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/java/j2sdk1.4.2_08/bin:$ORACLE_HOME/bin:$PATH; export PATH
ORACLE_OWNER=oracle; export ORACLE_OWNER
ORACLE_SID=PROD; export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib; export CLASSPATH
LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

Save the .bash_profile file and re-login as the oracle user. Make sure the. bash_profile ran correctly by issuing the following command:

set | more


The following setup steps relate to Metalink Note:252217.1 and must be performed as the root user.


Install the following packages:

# From RedHat AS3 Disk 2
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh setarch-1.3-1.i386.rpm
rpm -Uvh tcl-8.3.5-92.i386.rpm

# From RedHat AS3 Disk 3
cd /mnt/cdrom/RedHat/RPMS
rpm -Uvh openmotif21-2.1.30-8.i386.rpm
rpm -Uvh compat-db-4.0.14-5.i386.rpm \
compat-gcc-7.3-2.96.122.i386.rpm \
compat-gcc-c++-7.3-2.96.122.i386.rpm \
compat-libstdc++-7.3-2.96.122.i386.rpm \
compat-libstdc++-devel-7.3-2.96.122.i386.rpm


Put gcc296 and g++296 first in $PATH variable by creating the following symbolic links:

mv /usr/bin/gcc /usr/bin/gcc323
mv /usr/bin/g++ /usr/bin/g++323
ln -s /usr/bin/gcc296 /usr/bin/gcc
ln -s /usr/bin/g++296 /usr/bin/g++

Make sure the hostname command returns a fully qualified host name by amending the /etc/hosts file if necessary:

hostname
Install the 3006854 patch:

unzip p3006854_9204_LINUX.zip
cd 3006854
sh rhel3_pre_install.sh


18. Run the installer (ORACLE 940 CD)

$ ./runInstaller



login as root and go to /tmp and execute /orainstRoot.sh

Give oracle home as follows

select oracle database



select oracle enterprise



select software only



click install



{In case installation wizard fail follow these steps}
This will start the installation wizard


1. Ensure that we have logged in as oracle user before running the installer. To check this issue the following command.

$id

2. If the wizard fails to start saying that you don’t have permission to connect to the Xwindows.

Start a new terminal with root user and execute

#xhost +

And restart the installer again

Note : The xhost + command will permit any user on network or local system to open window of his application on this xwindows server.


3. Follow the instructions provided by the wizard

• Choose the inventory location to /u03/oracle/oraInventory
• Choose unix group name as oinstall
• The wizard will ask to execute a shell script as root user at /tmp/orainstRoot.sh

Open a new terminal, and login as user root

# su - root
# /tmp/orainstRoot.sh

5. Wizard will ask to run root.sh as root user

Open a new terminal, and login as user root

# su - root
# /u03/oracle/root.sh



Installation of Oracle Database Manually

No comments:

Post a Comment

Bookmark and Share