ORACLE 10G
INSTALLATION ON LINUX REDHAT 5
LOGIN AS ROOT USER
STEP # 1: SET KERNEL PARAMETERS on SYSCTL.CONF file
type in Terminal
cd /etc
cd /etc
ls
gedit sysctl.conf à File open on editor mode add the following parameters
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
-
fs.file-max
sets the maximum number of open files that can be handled by the Linux kernel. kernel.shmall
determines the total amount of shared memory to be allocated in pages.kernel.shmmax
controls the maximum amount of memory to be allocated for shared memory which.kernel.shmmni
defines the maximum number of segments system-wide.net.core.rmem_default
andnet.core.rmem_max
define the default and maximum read buffer queue for network operations (1 MB in this example)net.core.wmem_default
andnet.core.wmem_max
define the default and maximum write buffer queue for network operations (256 KB in this example)net.ipv4.ip_local_port_range
tells the kernel the port ranges that will be used for outbound connections.kernel.sem
has four parameters:SEMMSL
– semaphores per arraySEMMNS
– max semaphores system-wide (SEMMNI*SEMMSL
)SEMOPM
– max operations per semop callSEMMNI
– max number of semaphore arrays
Run the following command in Terminal to change the kernel parameters
/sbin/sysctl –p
STEP # 2: SET PARAMETERS on LIMITS.CONF file
Cd /etc/security
ls
gedit limits.conf à File open on editor mode add the following parameters
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
STEP # 3: ADD PARAMETER ON LOGIN file
cd /etc/pam.d
ls
gedit login à File open on editor mode add the parameters
session required pam_limits.so
STEP # 4: INSTALL REQUIRED RPM FROM LINUX CD’S
From CD # 1
Cd /media/cdrom/Server
rpm –Uvh setarch-*
rpm –Uvh make-3*
rpm –Uvh libaio-0*
rpm –Uvh --force tcl-*
rpm –Uvh glibc-*
From CD # 2
Cd /media/cdrom/Server
rpm –Uvh libXp-1*
rpm –Uvh compat-libstdc++-33*
rpm –Uvh compat-libf2c-34-*
rpm –Uvh compat-gcc-34-*
rpm –Uvh compat-gcc-34-c++-3*
rpm –Uvh compat-libstdc++-296*
rpm –Uvh gcc-4*
From CD # 3
Cd /media/cdrom/Server
rpm –Uvh compat-db-4*
rpm –Uvh openmotif-2*
STEP # 5:
Create 2 groups:
groupadd oinstall
groupadd dba
Create a user and assign the above groups to user
useradd –g oinstall –G dba oracle
passwd oracle
Create directories using mkdir command
mkdir –p /u01/app/oracle
Change the ownership of above directories and allow permissions
chown –R oracle:oinstall /u01/app
chmod –R 775 /u01/app
STEP # 6: CHANGES ON REDHAT-RELEASE File
Cd /etc
mv redhat-release redhat-release.old
gedit redhat-release
Redhat-4
STEP # 7: Login As Oracle User
Gedit .bash_profile
# Oracle Settings
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
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
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
STEP # 8: Login As Root User
create folder @ /u01/app named “10g”
copy all files from cdrom to /u01/app/10g
chmod –R 775 /u01/app/10g
e.g
cd /u01/app/10g
./runInstaller
STEP # 9: Run Scripts As Root User (as appear on screen)
No comments:
Post a Comment