yum install setarch-2* make-3* glibc-2* libaio-0* compat-libstdc++-33-3* compat-gcc-34-3* compat-gcc-34-c++-3* gcc-4* libXp-1* openmotif-2* compat-db-4* binutils-* control-center-* gcc-c++-* glibc-common-* gnome-libs-* libstdc++-* libstdc++-devel-* -y
2. Set kernel parameters (/etc/sysctl.conf)
vi /etc/sysctl.conf
# semaphores: semmsl, semmns, semopm, semmni
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 101365
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
net.ipv4.ip_local_port_range = 1024 65000
#/sbin/sysctl -p (make it effective immediately)
3. User resource settings
vi /etc/security/limits.conf
Oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
4. User shell resource settings
/etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
be
be
vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
7. Add oracle related users and groups and set passwords for them
# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -g oinstall -G dba oracle -d /u01
# chmod -R 777 /u01
# chown oracle:oinstall /u01
# passwd oracle
su - oracle (switch to oracle user)
you .bash_profile
Add the following
ORACLE_BASE=/u01; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=WILLSON;export ORACLE_SID
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
GUI installation
Open a terminal, ./runInstaller
16. After the installation is complete, you need to run 2 scripts as root user
sh /u01/oraInventory/orainstRoot.sh
sh /u01/product/10.2.0/db_1/root.sh
Enter dbca to create a database
netca create listener