Install oracle11g on 64-bit rhel5.5, using automatic storage management (ASM)
#cat/etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
#vi/etc/sysconfig/network-scripts/ifcfg-eth0
ipaddr=192.168.11.100
netmask=255.255.255.0
#/etc/init.d/network restart
#vi/etc/hosts
192.168.11.100 nine.orcl.ma Nine
#cat/etc/sysconfig/network
Hostname=nine.orcl.ma
#hostname
Nine.orcl.ma
#vi/etc/fstab
Tmpfs/dev/shm Tmpfs defaults,size=2g 0 0
#mount-O REMOUNT/DEV/SHM
Need to install the following package
Binutils-2.17.50.0.6-6.el5 (x86_64)
Compat-libstdc++-33-3.2.3-61 (x86_64)
Compat-libstdc++-33-3.2.3-61 (i386)
Elfutils-libelf-0.125-3.el5 (x86_64)
Elfutils-libelf-devel-0.125-3 (x86_64)
Gcc-4.1.2-42.el5 (x86_64)
Gcc-c++-4.1.2-42.el5 (x86_64)
Glibc-2.5-24 (x86_64)
Glibc-2.5-24 (i686)
Glibc-devel-2.5-24 (x86_64)
Glibc-devel-2.5-24 (i386)
Glibc-headers-2.5-24 (x86_64)
ksh-20060214-1.7 (x86_64)
libaio-0.3.106-3.2 (x86_64)
libaio-0.3.106-3.2 (i386)
libaio-devel-0.3.106-3.2 (x86_64)
libaio-devel-0.3.106-3.2 (i386)
Libgcc-4.1.2-42.el5 (i386)
Libgcc-4.1.2-42.el5 (x86_64)
Libstdc++-4.1.2-42.el5 (x86_64)
Libstdc++-4.1.2-42.el5 (i386)
Libstdc++-devel-4.1.2-42 (x86_64)
Make-3.81-3.el5 (x86_64)
Sysstat-7.0.2-1 (x86_64)
Glibc-common-2.5-24 (x86_64)
Elfutils-libelf-develstatic-0.125-3 (x86_64)
kernel-headers-2.6.18-92 (x86_64)
Libgomp-4.1.2-42 (x86_64)
unixODBC-2.2.12 (x86_64)
unixODBC-2.2.12 (i386)
unixodbc-devel-2.2.12 (x86_64)
unixodbc-devel-2.2.12 (i386)
Add Oracle,grid User
#Groupadd oinstall
#Groupadd dba
#Groupadd Oper
#Groupadd asmadmin
#Groupadd asmdba
#Groupadd asmoper
#useradd-g oinstall-g asmadmin,asmdba,asmoper,dba grid
#useradd-g oinstall-g dba,asmdba,oper Oracle
#passwd grid
#passwd Oracle
#ID Oracle
#ID grid
#ID Nobody
#vi /etc/sysctl.conf
Kernel.shmmax = 1073741824
Kernel.shmall = 2097152
Kernel.shmmni = 4096
Kernel.sem = 250 32000 100 128
Fs.file-max = 6815744
FS.AIO-MAX-NR = 1048576
Net.ipv4.ip_local_port_range = 9000 65500
Net.core.rmem_default = 262144
Net.core.rmem_max = 4194304
Net.core.wmem_default = 262144
Net.core.wmem_max = 1048576
#Sysctl–p
#vi /etc/security/limits.conf
Oracle Soft Nproc 2047
Oracle Hard Nproc 16384
Oracle Soft Nofile 1024
Oracle Hard Nofile 65536
Oracle Soft Stack 10240
Oracle Hard Stack 32768
Grid Soft Nproc 2047
Grid hard Nproc 16384
Grid Soft Nofile 1024
Grid hard Nofile 65536
Grid Soft Stack 10240
Grid Hard Stack 32768
Create the installation directory
#mkdir-P/u01/app/11.2.0/grid
#mkdir-P/u01/app/grid
#mkdir-P/u01/app/oracle
#chown Grid:oinstall/u01/app/11.2.0/grid
#chown Grid:oinstall/u01/app/grid
#chown oracle:oinstall/u01/app/oracle
#chmod-R 775/u01/
#chown-R grid:oinstall/u01
Using Udev to bind disks
#for i in B c D e;
Do
echo "kernel==\" sd*\ ", bus==\" scsi\ ", program==\"/sbin/scsi_id-g-u-s%p\ ", result==\" '/sbin/scsi_id-g-u-s/block/sd$ I ' \ ", name=\" sd$i\ ", owner=\" oracle\ ", group=\" oinstall\ ", mode=\" 0660\ "" >>/etc/udev/rules.d/91- Oracle-asmdevices.rules
Done
#start_udev
Edit . bash_profile file
#Vi/home/oracle/.bash_profile
Export Oracle_base=/u01/app/oracle
Export Oracle_home= $ORACLE _base/product/11.2.0/db_1
Export Temp=/tmp
Export Tepdir=/tmp
Export Oracle_sid=nine
Export path= $ORACLE _home/bin: $PATH
#Vi/home/grid/.bash_profile
Export Oracle_base=/u01/app/grid
Export Oracle_home=/u01/app/11.2.0/grid
Export Temp=/tmp
Export Tepdir=/tmp
Export Oracle_sid=+asm
Export path= $ORACLE _home/bin: $ORACLE _home/opatch:/sbin:/bin:/usr/sbin:/usr/bin
These are the main pre-installation steps, and the installation process will begin next.
This article is from "What will happen Tomorrow" blog, please be sure to keep this source http://nine9.blog.51cto.com/2615330/1534970