Monday, September 10, 2007

Installing Oracle on Redhat AS 4 Part -I

Installing Oracle on Redhat AS Part -I

Test
----
Hostname - sys1
IP - 192.168.1.10



1. Check host file

/etc/hosts
-add following entry
192.168.1.10 sys1.dbserver.com sys1

2. Add the following lines to the /etc/sysctl.conf

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000

net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=262144

3. Add the following lines to the /etc/limits.conf

* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536

4. Create a OS Oracle Group

/usr/bin/groupadd oinstall
/usr/bin/groupadd dba

5. Create a OS Oracle User

Useradd –g oinstall –G dba oracle
Passwd oracle

6. Check OS Oracle User

id oracle

7. Check Disk Space

df –h


8. Set oracle Environment

/home/oracle/db1.env
Add the following entry
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_SID=orcl

9. Display setting

export DISPLAY=SYS1:0.0
xhost +

10. Create Oracle folder

mkdir –p /oracle/app/oracle


11. Change Permission

chown oracle:oinstall /oracle/app/oracle
chmod 775 /oracle/app/oracle

12. Installing Oracle 10g


cd /media/[cd drive]/Disk1/

./runInstaller

No comments: