Tuesday, June 16, 2009

Installing Oracle 10g Software on Linux AS4 (Short Notes)

Creating directories:

# mkdir –p /u00/app/oracle /u01/oracle

Creating group and oracle user:

# groupadd –g 1000 oinstall

# groupadd –g 2000 dba

# useradd –u 1001 –g oinstall –G dba –d /u01/oracle oracle

# passwd oracle

oracle

Setting permissions:

# chown –R oracle:oinstall /u00 /u01

# chmod –R 775 /u00 /u01

Setting kernel parameters:

# vi /etc/sysctl.conf

kernel.shmall = 2097152

kernel.shmmax = 2147483648

kernel.shmmni = 4096

kernel.sem = 250 3200 100 128

fs.file-max = 65536

net.ipv4.ip_local_port_range = 1024 65000

rmem_default = 262144

rmem_max = 262144

wmem_default = 262144

wmem_max = 262144

# /etc/security/limits.conf

Oracle

Soft

nproc

2047

Oracle

Hard

nproc

16384

Oracle

Soft

nofile

2047

Oracle

hard

nofile

16384

# /etc/pam.d/login

Session required /lib/security/pam_limits.so

/etc/profile

If [ $USER = “oracle” ]; then

If [ $shell = “/bin/ksh” ]; then

ulimit –p 16384

ulimit –n 65536

else

ulimit –u 16384 –n 65536

fi

fi

Login as oracle user:

$ vi .bash_profile

ORACLE_SID=prod; export ORACLE_SID

ORACLE_HOME=/u00/app/oracle/product/10.2.0/db_1; export ORACLE_HOME

ORACLE_BASE=/u00/app/oracle; export ORACLE_BASE

PATH-$PATH:$HOME/bin:$ORACLE_HOME/bin

ORADUMPS=/u00/app/oracle/admin/prod; export ORADUMPS

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH

Export path

Unset username

$ source .bash_profile

Login and root and mount dvd

$ Su – root

# mount –t iso 9660 /dev/dvd /media/cdrecorder

# exit

$ /media/cdrecorder/runInstaller

This will start Oracle Universal Installer

No comments:

Post a Comment