April 25, 2009

Oracle 10g installation !!!!!

1. unzip the 10201_database_linux32.zip file.
2. set kernel parameter

Add the following to the /etc/sysctl.conf file

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
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

3. Run the following command to change the current kernel parameters:
# /sbin/sysctl -p

4. Add the following lines to the /etc/security/limits.conf file:

oracle soft nofile 65536
oracle hard nofile 65536

4. Create the new groups and users:

# groupadd oinstall

# groupadd dba

#useradd -g oinstall -G dba oracle

#passwd oracle

#usermod -g oinstall -G apache apache

Create the directories in which the Oracle software will be installed:

#mkdir -p /u01/app/oracle/product/10g

#chown -R oracle.oinstall /u01

oracle soft nproc 16384
oracle hard nproc 16384

Login as the oracle user and add the following lines at the end of the .bash_profile file

# vi /home/oracle/.bash_profile

ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10g; export ORACLE_HOME
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=$ORACLE_HOME/bin:$PATH; export PATH
ORACLE_OWNER=oracle; export ORACLE_OWNER
ORACLE_SID=orcl; 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.

-- Now from the root user copy 10201_database_linux32.zip (after unzip) to /home/oracle directory and give complete ownership

# chown -R oracle.oracle /home/oracle/10201_database_linux32


Start using Oracle user (Installation)
# ./runInstaller

No comments:

Post a Comment