Thursday, 5 February 2015

Oracle database 10 installation on red hat enterprise linux

Oracle database 10 installation on red hat enterprise linux 5:

Login As root user

Set Kernel parameters


# vi /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
# sysctl –p

Set Security Limits

# vi /etc/security/limits.conf
           oracle         soft        nproc    16384   
           oracle         hard       nproc    16384
           oracle         soft        nofile    65536
           oracle         hard       nofile    65536

Set Remote Authentication
# vi /etc/pam.d/login
                     session            required              pam_limits.so

Disable SELINUX
# vi /etc/selinux/config
                      SELINUX=disabled

Check Existing Packages
# rpm –qa setarch-2*
# rpm –qa make-3*
# rpm –qa glibc-2*
# rpm –qa libaio-0*
# rpm –qa compat-libstdc++-33-3*
#rpm –qa compat-gcc-34-3*
# rpm –qa compat-gcc-34-c++-3*
# rpm –qa gcc-4*
# rpm –qa libXp-1*
# rpm –qa openmotif-2*
# rpm –qa compat-db-4*
# rpm –qa cpp*
# rpm –qa binutils*

Install Packages
From Redhat AS5 Disk1
# mount  /dev/cdrom  /mnt
# cd  /mnt/Enterprise/Server
# rpm  -Uvh  setarch-2*
# rpm  -Uvh  make-3*
# rpm  -Uvh  glibc-2*
# rpm  -Uvh  libaio-0*
#cd  /
# eject

From Redhat AS5 Disk2
# mount  /dev/cdrom  /mnt
# cd  /mnt/Enterprise/Server
# rpm  -Uvh  compat-libstdc++-33-3*
#rpm  -Uvh compat-gcc-34-3*
# rpm  -Uvh  compat-gcc-34-c++-3*
# rpm  -Uvh  gcc-4*
# rpm  -Uvh  libXp-1*
# cd /
# eject
From Redhat AS5 Disk 3
# mount               /dev/cdrom       /mnt
# cd        /mnt/Enterprise/Server
# rpm  -Uvh openmotif-2*
# rpm  -Uvh compat-db-4*
# cd /
# eject

# groupadd oinstall
# useradd oracle –g oinstall
# passwd oracle
# mkdir                 -p            /opt/oracle/product/10.2.0/db_1
# chown               -R            oracle:oinstall    /opt
#vi  /etc/redhat-release
        redhat-4
#mkdir                  -p            /software/Disk1

Insert  10g  s/w CD to Drive
# mount  /dev/cdrom    /mnt
# cd  /mnt
# cp        -r             *             /software/Disk1
#cd  /
# eject

# chown               -R            oracle:oinstall    /software

Such user to oracle
# su  - oracle
$ pwd
        /home/oracle
$ vi.bash_profile

                 export  ORACLE_BASE=/opt/oracle
               export  ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
               export  ORACLE_SID=vanish
               export  PATH=$ORACLE_HOME/bin:$PATH
               export  LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
               export  CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

$ exit
# init  6

Login As “oracle” user
                $ cd  /software/Disk1/database/
                $ ./runInstaller

Screen 1: Select installation method
ð  Advanced Installation click  è next

Screen 2: Specify Inventory Directory and Credentials
ð  Next
Screen 3: select installation type
ð  Enterprise edition  è next
Screen 4: Specify Home details
ð  Next
Screen 5: Product-Specific Prerequisite checks
ð  Next
Screen 6: Select Configuration option
ð  Create database  è next
Screen 7: Select database configuration
ð  Genral purpose  ènext
Screen 8: Specify DB configuration options
ð  Next
Screen 9: Select management option
ð  Next
Screen 10: Specify Database storage option
ð  File system  è next
Screen 11: Specify Backup and Recovery options
ð  Next
Screen 12: Specify database Schema passwords
ð  Use same password for all the accounts è next
Screen 13: Summary
ð  Install
Screen 14:Install
Screen 15:Configuration  Assistants
Screen 16: Database Configuration Assistant
Screen 17: Database configuration Assistant password management

ð  ok

No comments:

Post a Comment