Install Oracle on Redhat

We will guide how to install Oracle 10g On Red Hat Enterprise Linux (RHEL)-5. We will check memory space,
temp space, RPM, kernel parameter, disk space, create user account,
create Oracle directories and set Oracle environments.
The step-10 is the mean point of the 10g installation on RHEL-5.

Step-0: First of All we will install all required RPM

# From RedHat AS5 Disk 1
cd /media/cdrom/Server
rpm -Uvh setarch-2*
rpm -Uvh make-3*
rpm -Uvh glibc-2*
rpm -Uvh libaio-0*
cd /
eject

# From RedHat AS5 Disk 2
cd /media/cdrom/Server
rpm -Uvh compat-libstdc++-33-3*
rpm -Uvh compat-gcc-34-3*
rpm -Uvh compat-gcc-34-c++-3*
rpm -Uvh gcc-4*
rpm -Uvh libXp-1*
cd /
eject

# From RedHat AS5 Disk 3
cd /media/cdrom/Server
rpm -Uvh openmotif-2*
rpm -Uvh compat-db-4*
cd /
eject

Step-1: We will create following groups and users.

# groupadd oinstall
# groupadd dba
# groupadd oper

Step-2: We will create user.

# useradd -g oinstall -G dba oracle

Step-3: We will create following directories and then change mode and ownership.

# mkdir -p /u01/app/oracle/product/10.2.0
# chmod -R 777 /u01
# chown -R oracle:oinstall /u01

Step-4: We will Oracle setting and after that open this file and press 'i' then in the last of that file paste the following values and again press 'ESC' and type ':wq'.

# vi /etc/sysctl.conf

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 = 26214

Step-5: We will make the kernel parameters changes effective immediately.



# sysctl -p

Step-6: We will set the shell limits for the user Oracle and open this file and press 'i' then in the last of that file paste the following values and again press 'ESC' and type ':wq' .

# vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

Step-7: We will press d to delete all values which already there. and paste the following values and then press 'ESC' and type ':wq'.

# vi /etc/pam.d/login
#%PAM-1.0

auth required pam_securetty.so
auth required pam_stack.so service=system-auth
auth required pam_nologin.so
account required pam_stack.so service=system-auth
password required pam_stack.so service=system-auth

# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session required pam_stack.so service=system-auth
session optional pam_console.so

# pam_selinux.so open should be the last session rule
session required pam_selinux.so multiple open
session required /lib/security/pam_limits.so
session required pam_limits.so

Step-8: We will press d to delete all values which already there and passed the following values and then press 'ESC' and type ':wq'.

# vi /home/oracle/.bash_profile
# .bash_profile
# Get the aliases and functions

if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# User specific environment and startup programs

TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=ORCL; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
PATH=$ORACLE_HOME/OPatch:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

export PATH

if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksn" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi

Step-9: We will enter this value.

# passwd oracle

Enter 'oracle' until you get the # prompt again.

Step-10: In this file whatever is written you have to delete that line and have to write 'redhat-4'.

# vi /etc/redhat-release

Step-11: We will logout from root user and login as an Oracle User.

Step-12: We will open new terminal and at oracle $ prompt execute run Installer from oracle setup.


source : http://www.dbtalks.com/UploadFile/anjudidi/901/



0 komentar:

Posting Komentar

Diberdayakan oleh Blogger.

Copyright © / riffStudio

Template by : Urang-kurai / powered by :blogger