Installation of Oracle 10g On RHEL5
Step 1:-- Disable the selinux.
Step 2:-- Turn of the iptables.
STEP 3:-- Create a hostname and domain name in the
/etc/hosts file
Step 4:-- Set the kernel parameters
#vim
/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
= 262144
step 5 :-- Run the following command to change the
current kernel parameters
#/sbin/sysctl
-p
Step 6 :-- Add
the following line into the /etc/pam.d/login
#vim
/etc/pam.d/login
session required pam_limits.so
step 7:-- Install
the binary packages required.
binutils-2.17.50.0.6-14.el5.x86_64.rpm
Compat-db-4.2.52-5.1.i386.rpm
Compat-db-4.2.52-5.1.x86_64.rpm
Compat-gcc-34-3.4.6-4.x86_64.rpm
Compat-gcc-34-c++-3.4.6-4.x86_64.rpm
Compat-libstdc++-33-3.2.3-61.i386.rpm
Compat-libstdc++-33-3.2.3-61.x86_64.rpm
Cpp-4.1.2-48.el5.x86_64.rpm
Elfutils-libelf-0.137-3.el5.i386.rpm
Elfutils-libelf-0.137-3.el5.x86_64.rpm
Gcc-4.1.2-48.el5.x86_64.rpm
gcc-c++-4.1.2-48.el5.x86_64.rpm
glibc-2.5-49.i686.rpm
glibc-2.5-49.x86_64.rpm
glibc-devel-2.5-49.i386.rpm
glibc-devel-2.5-49.x86_64.rpm
glibc-headers-2.5-49.x86_64.rpm
kernel-headers-2.6.18-194.el5.x86_64.rpm
ksh-20100202-1.el5.x86_64.rpm
libaio-0.3.106-5.i386.rpm
libaio-0.3.106-5.x86_64.rpm
libaio-devel-0.3.106-5.i386.rpm
libaio-devel-0.3.106-5.x86_64.rpm
libgomp-4.4.0-6.el5.x86_64.rpm
libstdc++-4.1.2-48.el5.i386.rpm
listed++-4.1.2-48.el5.x86_64.rpm
libstdc++-devel-4.1.2-48.el5.x86_64.rpm
libXmu-1.0.2-5.i386.rpm
libXp-1.0.0-8.1.el5.i386.rpm
libXp-1.0.0-8.1.el5.x86_64.rpm
make-3.81-3.el5.x86_64.rpm
openmotif-2.3.1-2.el5_4.1.i386.rpm
openmotif-2.3.1-2.el5_4.1.x86_64.rpm
setarch-2.0-1.1.x86_64.rpm
step8 :-- create a users and groups
#groupadd
oinstall
#groupadd dba
#useradd -g
dba -G
oinstall oracle
Step9 :-- create a directories in which oracle
software installed.
#mkdir -p /oracle/product/10.2.0/db_1
Step10 :-- change the owner and primary group of a
oracle installation directory.
#chown –R
oracle:dba /oracle
Step 11:-- Run the command following command hostname
being added to access control list
#xhost
ora10g.xyz.com
Step 12:-- Login as the oracle user and add the
following lines at the end of the .bash_profile
#vim
.bash_profile
TMP=/tmp;
export TMP
TMPDIR=$TMP;
export TMPDIR
ORACLE_BASE=/ora10g/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
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
NOTE :please enter carefully above directory path,
while installation we have to mention the same path.
Step 13:-- Save the .bash_profile and execute the
following command to load new environment.
#.
.bash_profile
Step14 :login
as the oracle user. If you are using X emulation then display the variable.
DISPLAY=ora10g.xyz.com:0.0; export DISPLAY
Step 15:-- uncheck the file into temporary directory.
#gunzip
10201_database_linux_x86_64.cpio.gz
#cpio
-idmv < 10201_database_linux_x86_64.cpio
Step 16:--
Change the redhat release
version from 5 to 4
#vim /etc/redhat-release
Red Hat
Enterprise Linux Server release 4.0
Step 17 :-- start the oracle universal installer by
issuing the following command in the
database directory
./runinstaller
Select the following options while installing
Installation type : standard edition
Unix dba group oinstall
Global database name orcl
Database password : ********
POST-INSTALLATION TASK
Step 1:--#vim
/etc/oratab
Login as root and modify /etc/oratab file and change
file and change the last character to Y for appropriate database.
Step 2:-- As root user create a new file “oracle”
(init script start and shutdown the database) in /etc/init.d/directory with
following content
#vim
/etc/init.d/oracle
#!/bin/bash
#
#oracle Init file for starting and stopping
#oracle Database. Script is valid for 10g and 11g
versions.
#
#chkconfig: 35 80 30
# description: Oracle Database startup script
#Source function library.
./etc/rc.d/init.d/functions
ORACLE_OWNER="oracle"
ORACLE_HOME="/ora10g/oracle/product/10.2.0/db_1"
case "$1" in
Start)
echo -n $"Starting Oracle DB:"
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/dbstart
$ORACLE_HOME"
echo "ok"
;;
stop)
echo -n $"Stopping Oracle DB"
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/dbshut
$ORACLE_HOME"
echo "ok"
;;
*)
echo $"Usage: $0 {start|stop}"
esac
step 3:-- add the oracle to the run levels
#chkconfig
--add oracle
Step 4:-- permanently on the oracle to the run levels
#chkconfig –oracle on
No comments:
Post a Comment