ORACLE 11G RAC 配置小结

                                                           ORACLE LINUX 5 安装ORACLE 11G RAC
IP规划:
RAC1:
    Hostname  :rac1
    Public  IP:192.168.10.211
    Private IP:192.168.30.211
    VIP       :192.168.10.221
    SCAN      :192.168.10.200
  
RAC2:
    Hostname  :rac2
    Public  IP:192.168.10.212
    Private IP:192.168.30.212
    VIP       :192.168.10.222
    SCAN      :192.168.10.200
    
CONFIGURE SYSTEM


1.vi /etc/hosts


#public
192.168.10.211  rac1
192.168.10.212  rac2


#priv
192.168.30.211  rac1-priv
192.168.30.212  rac2-priv


#vip
192.168.10.221  rac1-vip
192.168.10.222  rac2-vip


#scan
192.168.10.200  rac-scan


2.checkl rpms
联机文档推荐检查如下包
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
elfutils-libelf-0.125            
elfutils-libelf-devel-0.125
elfutils-libelf-devel-static-0.125
gcc-4.1.2
gcc-c++-4.1.2           
glibc-2.5-24
glibc-common-2.5
glibc-devel-2.5
glibc-headers-2.5
kernel-headers-2.6.18     #is not installed
ksh-20060214
libaio-0.3.106
libaio-devel-0.3.106      #is not installed 
libgcc-4.1.2
libgomp-4.1.2
libstdc++-4.1.2 
libstdc++-devel-4.1.2
make-3.81
sysstat-7.0.2           #is not installed
unixODBC-2.2.11         #is not installed
unixODBC-devel-2.2.11   #is not installed
pdksh*                  #is not installed
oracleasm-              #is not installed
oracleasm-support       #is not installed
oracleasmlib            #is not installed  需要自己下载


3.install rpms
[root@rac1 ~]# mkdir /mnt/cdrom
[root@rac1 ~]# mount /dev/cdrom /mnt/cdrom/
mount: block device /dev/cdrom is write-protected, mounting read-only
[root@rac1 ~]# cd /mnt/cdrom/Server


[root@rac1 Server]# rpm -ivh kernel-headers-2.6.18-238.el5.x86_64.rpm 
file /usr/include/video/sisfb.h from install of kernel-headers-2.6.18-238.el5.x86_64 conflicts with file from package kernel-uek-headers-2.6.32-100.26.2.el5.x86_64
与已安装的rpm包有冲突。
[root@rac1 Server]#rpm -e kernel-uek-headers-2.6.32-100.26.2.el5.x86_64 --nodeps强制卸载该包


[root@rac1 Server]# rpm -ivh kernel-headers-2.6.18-238.el5.x86_64.rpm 
warning: kernel-headers-2.6.18-238.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:kernel-headers         ########################################### [100%]
   
[root@rac1 Server]# rpm -ivh libaio-devel-0.3.106-5.x86_64.rpm 
warning: libaio-devel-0.3.106-5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:libaio-devel           ########################################### [100%]
   
[root@rac1 Server]# rpm -ivh sysstat-7.0.2-3.el5_5.1.x86_64.rpm 
warning: sysstat-7.0.2-3.el5_5.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:sysstat                ########################################### [100%]
   
[root@rac1 Server]# rpm -ivh unixODBC-2.2.11-7.1.* unixODBC-devel-2.2.11-7.1.*
warning: unixODBC-2.2.11-7.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:unixODBC               ########################################### [ 25%]
   2:unixODBC               ########################################### [ 50%]
   3:unixODBC-devel         ########################################### [ 75%]
   4:unixODBC-devel         ########################################### [100%]
   
[root@rac1 Server]# rpm -ivh libaio-devel-0.3.106-5.i386.rpm 
warning: libaio-devel-0.3.106-5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:libaio-devel           ########################################### [100%]
   
[root@rac1 Server]# rpm -ivh pdksh-5.2.14-36.el5.x86_64.rpm 
warning: pdksh-5.2.14-36.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:pdksh                  ########################################### [100%]
   
[root@rac1 Server]# rpm -ivh oracleasm-2.6.18-238.el5-2.0.5-1.el5.x86_64.rpm oracleasm-support-2.1.4-1.el5.x86_64.rpm 
warning: oracleasm-2.6.18-238.el5-2.0.5-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:oracleasm-support      ########################################### [ 50%]
   2:oracleasm-2.6.18-238.el########################################### [100%]
   
[root@rac1 ~]# rpm -ivh oracleasmlib-2.0.4-1.el5.x86_64.rpm 
warning: oracleasmlib-2.0.4-1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:oracleasmlib           ########################################### [100%]
   
4.create group and users
[root@rac1 ~]# groupadd oinstall
[root@rac1 ~]# groupadd dba
[root@rac1 ~]# groupadd oper
[root@rac1 ~]# groupadd asmadmin
[root@rac1 ~]# groupadd asmdba
[root@rac1 ~]# groupadd asmoper
[root@rac1 ~]# useradd -g oinstall -G dba,asmadmin,asmdba,asmoper grid
[root@rac1 ~]# useradd -g oinstall -G dba,oper,asmadmin oracle
[root@rac1 ~]# passwd grid
[root@rac1 ~]# passwd oracle


5.create directory
[root@rac1 ~]# mkdir /u01
[root@rac1 ~]# mkdir -p /u01/gridbase
[root@rac1 ~]# mkdir -p /u01/grid
[root@rac1 ~]# mkdir -p /u01/oracle/db
[root@rac1 /]# chown -R grid:oinstall /u01/
[root@rac1 /]# cd /u01/
[root@rac1 u01]# chown -R oracle:oinstall oracle/
[root@rac1 /]# chmod -R 775 /u01/


6.editor user profile
#for grid
[root@rac1 /]# su - grid
[grid@rac1 ~]$ echo  $SHELL
/bin/bash
[grid@rac1 ~]$ vi .bash_profile 
ORACLE_BASE=/u01/gridbase
ORACLE_HOME=/u01/grid
PATH=$ORACLE_HOME/bin:$PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
DISPLAY=192.168.10.1:0.0
export ORACLE_BASE ORACLE_HOME PATH LD_LIBRARY_PTH DISPALY
[oracle@rac1 ~]$ source .bash_profile 


#for oracle
[grid@rac1 ~]$ su - oracle
[oracle@rac1 ~]$ echo $SHELL
/bin/bash
[oracle@rac1 ~]$ vi .bash_profile 
ORACLE_BASE=/u01/oracle
ORACLE_HOME=/u01/oracle/db
ORACLE_SID=szscdb1
PATH=$ORACLE_HOME/bin:$PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
DISPLAY=192.168.10.1:0.0
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PTH DISPLAY


7.DISABLE SElinux


[root@rac1 ~]# vi /etc/selinux/config


# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#       enforcing - SELinux security policy is enforced.
#       permissive - SELinux prints warnings instead of enforcing.
#       disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted


8.DISABLE FireWall
[root@rac1 ~]# service iptables stop
Flushing firewall rules: [  OK  ]
Setting chains to policy ACCEPT: filter [  OK  ]
Unloading iptables modules: [  OK  ]
[root@rac1 ~]# chkconfig iptables off


9.configure kern
9.1 vi /etc/sysctl.conf
#add 
fs.aio-max-nr = 1048576 
fs.file-max = 6815744 
kernel.shmall = 2097152 
kernel.shmmax = 1073741824 
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128 
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 = 1048586
[root@rac1 ~]# sysctl -p   #让参数立即生效


9.2  vi /etc/profile
#ADD
if [ \$USER = "oracle" ] || [ \$USER = "grid" ]; then
if [ \$SHELL = "/bin/bash" ]; then
   ulimit -p 16384
   ulimit -n 65536
else
   ulimit -u 16384 -n 65536
fi
   umask 022
fi




9.3 vi /etc/security/limits.conf 
#ADD
oracle soft nproc 2047 
oracle hard nproc 16384 
oracle soft nofile 1024 
oracle hard nofile 65536 
oracle soft stack 10240 
grid soft nproc 2047 
grid hard nproc 16384 g
rid soft nofile 1024 
grid hard nofile 65536 
grid soft stack 10240


9.4 vi /etc/pam.d/login 
#ADD
session    required     pam_limits.so


9.5 show /dev/shm size and change it;
[root@rac1 ~]# df -h /dev/shm
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                1000M     0 1000M   0% /dev/shm
[root@rac1 ~]# umount tmpfs
[root@rac1 ~]# mount -t tmpfs shmfs -o size=3000M /dev/shm/
[root@rac1 ~]# df -h /dev/shm
Filesystem            Size  Used Avail Use% Mounted on
shmfs                 3.0G     0  3.0G   0% /dev/shm


[root@rac1 ~]# vi /etc/fstab 


LABEL=/                 /                       ext3    defaults        1 1
tmpfs                   /dev/shm                tmpfs   size=3000m        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
LABEL=SWAP-sda2         swap                    swap    defaults        0 0


9.6 DISABLE NTP SERVER
[root@rac1 ~]# service ntpd stop
Shutting down ntpd: [  OK  ]
[root@rac1 ~]# chkconfig ntpd off
[root@rac1 ~]# mv /etc/ntp.conf /etc/ntp.conf.201212.23
[root@rac1 run]# cd /var/run/


10.CREATE SHRAED DISK


11.启动RAC1
#RAC1上执行
[root@rac1 ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.




The number of cylinders for this disk is set to 1044.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)


Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1044, default 1): 
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044): 
Using default value 1044


Command (m for help): w
The partition table has been altered!


Calling ioctl() to re-read partition table.


WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.


[root@rac1 ~]# fdisk /dev/sdc
[root@rac1 ~]# fdisk /dev/sdd




12.创建ASM磁盘组。
[root@rac1 ~]# rpm -qa | grep oracleasm
oracleasm-support-2.1.4-1.el5
oracleasm-2.6.18-238.el5-2.0.5-1.el5
oracleasmlib-2.0.4-1.el5


[root@rac1 ~]# oracleasm configure -i
Configuring the Oracle ASM library driver.


This will configure the on-boot properties of the Oracle ASM library
driver.  The following questions will determine whether the driver is
loaded on boot and what permissions it will have.  The current values
will be shown in brackets ('[]').  Hitting without typing an
answer will keep that current value.  Ctrl-C will abort.


Default user to own the driver interface []: grid
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
[root@rac1 ~]# oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Mounting ASMlib driver filesystem: /dev/oracleasm


[root@rac1 ~]# oracleasm createdisk DISK1 /dev/sdb1
Writing disk header: done
Instantiating disk: done
[root@rac1 ~]# oracleasm createdisk DISK2 /dev/sdc1
Writing disk header: done
Instantiating disk: done
[root@rac1 ~]# oracleasm createdisk DISK3 /dev/sdd1
Writing disk header: done
Instantiating disk: done


[root@rac1 ~]# oracleasm scandisks
Reloading disk partitions: done
Cleaning any stale ASM disks...
Scanning system for ASM disks...
[root@rac1 ~]# oracleasm listdisks
DISK1
DISK2
DISK3


13.关闭RAC1,复制一份成RAC2
修改RAC2 IP


14.配置ssh互信。(grid,oracle)
rac1-> mkdir ~/.ssh
rac1-> chmod 700 ~/.ssh
rac1-> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/export/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /export/home/oracle/.ssh/id_rsa.
Your public key has been saved in /export/home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
87:54:4f:92:ba:ed:7b:51:5d:1d:59:5b:f9:44:da:b6 [email protected]
rac1-> ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/export/home/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /export/home/oracle/.ssh/id_dsa.
Your public key has been saved in /export/home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
31:76:96:e6:fc:b7:25:04:fd:70:42:04:1f:fc:9a:26 [email protected]
在 rac2 上执行


rac2-> mkdir ~/.ssh
rac2-> chmod 700 ~/.ssh
rac2-> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/export/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /export/home/oracle/.ssh/id_rsa.
Your public key has been saved in /export/home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
29:5a:35:ac:0a:03:2c:38:22:3c:95:5d:68:aa:56:66 [email protected]
rac2-> ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/export/home/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /export/home/oracle/.ssh/id_dsa.
Your public key has been saved in /export/home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
4c:b2:5a:8d:56:0f:dc:7b:bc:e0:cd:3b:8e:b9:5c:7c [email protected]
在 rac1 上执行
rac1-> cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
rac1-> cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
rac1-> ssh rac2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
The authenticity of host 'rac2 (192.168.2.132)' can't be established.
RSA key fingerprint is 63:d3:52:d4:4d:e2:cb:ac:8d:4a:66:9f:f1:ab:28:1f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2,192.168.2.132' (RSA) to the list of known hosts.
oracle@rac2's password:
rac1-> ssh rac2 cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
oracle@rac2's password:
rac1-> scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
authorized_keys                           100% 1716     1.7KB/s   00:00




15.安装grid软件。
[root@rac1 rpm]# rpm -ivh cvuqdisk-1.0.7-1.rpm 
Preparing...                ########################################### [100%]
Using default group oinstall to install package
   1:cvuqdisk               ########################################### [100%]
   
[root@rac1 rpm]# mv /root/grid/ /u01/g
[root@rac1 u01]# chown -R grid:oinstall g
[root@rac1 u01]# su - grid
[grid@rac1 ~]$ cd /u01/g
[grid@rac1 g]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -fixup -verbose
Interface information for node "rac2"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU   
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.10.212  192.168.10.0    0.0.0.0         192.168.10.1    00:0C:29:44:DE:EF 1500  
 eth1   192.168.30.212  192.168.30.0    0.0.0.0         192.168.10.1    00:0C:29:44:DE:F9 1500  




Interface information for node "rac1"
 Name   IP Address      Subnet          Gateway         Def. Gateway    HW Address        MTU   
 ------ --------------- --------------- --------------- --------------- ----------------- ------
 eth0   192.168.10.211  192.168.10.0    0.0.0.0         192.168.10.1    00:0C:29:86:27:0D 1500  
 eth1   192.168.30.211  192.168.30.0    0.0.0.0         192.168.10.1    00:0C:29:86:27:17 1500  




Check: Node connectivity of subnet "192.168.10.0"
  Source                          Destination                     Connected?      
  ------------------------------  ------------------------------  ----------------
  rac2:eth0                       rac1:eth0                       yes             
Result: Node connectivity passed for subnet "192.168.10.0" with node(s) rac2,rac1




Check: TCP connectivity of subnet "192.168.10.0"
  Source                          Destination                     Connected?      
  ------------------------------  ------------------------------  ----------------
  rac1:192.168.10.211             rac2:192.168.10.212             passed          
Result: TCP connectivity check passed for subnet "192.168.10.0"




Check: Node connectivity of subnet "192.168.30.0"
  Source                          Destination                     Connected?      
  ------------------------------  ------------------------------  ----------------
  rac2:eth1                       rac1:eth1                       yes             
Result: Node connectivity passed for subnet "192.168.30.0" with node(s) rac2,rac1




Check: TCP connectivity of subnet "192.168.30.0"
  Source                          Destination                     Connected?      
  ------------------------------  ------------------------------  ----------------
  rac1:192.168.30.211             rac2:192.168.30.212             passed          
Result: TCP connectivity check passed for subnet "192.168.30.0"




Interfaces found on subnet "192.168.10.0" that are likely candidates for VIP are:
rac2 eth0:192.168.10.212
rac1 eth0:192.168.10.211


Interfaces found on subnet "192.168.30.0" that are likely candidates for a private interconnect are:
rac2 eth1:192.168.30.212
rac1 eth1:192.168.30.211


Result: Node connectivity check passed




Check: Total memory 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          1.95GB (2047040.0KB)      1.5GB (1572864.0KB)       passed    
  rac1          1.95GB (2047040.0KB)      1.5GB (1572864.0KB)       passed    
Result: Total memory check passed


Check: Available memory 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          1.71GB (1787908.0KB)      50MB (51200.0KB)          passed    
  rac1          1.59GB (1667996.0KB)      50MB (51200.0KB)          passed    
Result: Available memory check passed


Check: Swap space 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          4GB (4192956.0KB)         2.93GB (3070560.0KB)      passed    
  rac1          4GB (4192956.0KB)         2.93GB (3070560.0KB)      passed    
Result: Swap space check passed


Check: Free disk space for "rac2:/tmp" 
  Path              Node Name     Mount point   Available     Required      Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  /tmp              rac2          /             10.83GB       1GB           passed      
Result: Free disk space check passed for "rac2:/tmp"


Check: Free disk space for "rac1:/tmp" 
  Path              Node Name     Mount point   Available     Required      Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  /tmp              rac1          /             6.35GB        1GB           passed      
Result: Free disk space check passed for "rac1:/tmp"


Check: User existence for "grid" 
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  rac2          exists                    passed                  
  rac1          exists                    passed                  
Result: User existence check passed for "grid"


Check: Group existence for "oinstall" 
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  rac2          exists                    passed                  
  rac1          exists                    passed                  
Result: Group existence check passed for "oinstall"


Check: Group existence for "dba" 
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  rac2          exists                    passed                  
  rac1          exists                    passed                  
Result: Group existence check passed for "dba"


Check: Membership of user "grid" in group "oinstall" [as Primary]
  Node Name         User Exists   Group Exists  User in Group  Primary       Comment     
  ----------------  ------------  ------------  ------------  ------------  ------------
  rac2              yes           yes           yes           yes           passed      
  rac1              yes           yes           yes           yes           passed      
Result: Membership check for user "grid" in group "oinstall" [as Primary] passed


Check: Membership of user "grid" in group "dba" 
  Node Name         User Exists   Group Exists  User in Group  Comment         
  ----------------  ------------  ------------  ------------  ----------------
  rac2              yes           yes           yes           passed          
  rac1              yes           yes           yes           passed          
Result: Membership check for user "grid" in group "dba" passed


Check: Run level 
  Node Name     run level                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          5                         3,5                       passed    
  rac1          5                         3,5                       passed    
Result: Run level check passed


Check: Hard limits for "maximum open file descriptors" 
  Node Name         Type          Available     Required      Comment         
  ----------------  ------------  ------------  ------------  ----------------
  rac2              hard          65536         65536         passed          
  rac1              hard          65536         65536         passed          
Result: Hard limits check passed for "maximum open file descriptors"


Check: Soft limits for "maximum open file descriptors" 
  Node Name         Type          Available     Required      Comment         
  ----------------  ------------  ------------  ------------  ----------------
  rac2              soft          1024          1024          passed          
  rac1              soft          65536         1024          passed          
Result: Soft limits check passed for "maximum open file descriptors"


Check: Hard limits for "maximum user processes" 
  Node Name         Type          Available     Required      Comment         
  ----------------  ------------  ------------  ------------  ----------------
  rac2              hard          16384         16384         passed          
  rac1              hard          16384         16384         passed          
Result: Hard limits check passed for "maximum user processes"


Check: Soft limits for "maximum user processes" 
  Node Name         Type          Available     Required      Comment         
  ----------------  ------------  ------------  ------------  ----------------
  rac2              soft          2047          2047          passed          
  rac1              soft          2047          2047          passed          
Result: Soft limits check passed for "maximum user processes"


Check: System architecture 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          x86_64                    x86_64                    passed    
  rac1          x86_64                    x86_64                    passed    
Result: System architecture check passed


Check: Kernel version 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          2.6.32-100.26.2.el5       2.6.18                    passed    
  rac1          2.6.32-100.26.2.el5       2.6.18                    passed    
Result: Kernel version check passed


Check: Kernel parameter for "semmsl" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          250                       250                       passed    
  rac1          250                       250                       passed    
Result: Kernel parameter check passed for "semmsl"


Check: Kernel parameter for "semmns" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          32000                     32000                     passed    
  rac1          32000                     32000                     passed    
Result: Kernel parameter check passed for "semmns"


Check: Kernel parameter for "semopm" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          100                       100                       passed    
  rac1          100                       100                       passed    
Result: Kernel parameter check passed for "semopm"


Check: Kernel parameter for "semmni" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          128                       128                       passed    
  rac1          128                       128                       passed    
Result: Kernel parameter check passed for "semmni"


Check: Kernel parameter for "shmmax" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          1073741824                536870912                 passed    
  rac1          1073741824                536870912                 passed    
Result: Kernel parameter check passed for "shmmax"


Check: Kernel parameter for "shmmni" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          4096                      4096                      passed    
  rac1          4096                      4096                      passed    
Result: Kernel parameter check passed for "shmmni"


Check: Kernel parameter for "shmall" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          2097152                   2097152                   passed    
  rac1          2097152                   2097152                   passed    
Result: Kernel parameter check passed for "shmall"


Check: Kernel parameter for "file-max" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          6815744                   6815744                   passed    
  rac1          6815744                   6815744                   passed    
Result: Kernel parameter check passed for "file-max"


Check: Kernel parameter for "ip_local_port_range" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          between 9000 & 65500      between 9000 & 65500      passed    
  rac1          between 9000 & 65500      between 9000 & 65500      passed    
Result: Kernel parameter check passed for "ip_local_port_range"


Check: Kernel parameter for "rmem_default" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          262144                    262144                    passed    
  rac1          262144                    262144                    passed    
Result: Kernel parameter check passed for "rmem_default"


Check: Kernel parameter for "rmem_max" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          4194304                   4194304                   passed    
  rac1          4194304                   4194304                   passed    
Result: Kernel parameter check passed for "rmem_max"


Check: Kernel parameter for "wmem_default" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          262144                    262144                    passed    
  rac1          262144                    262144                    passed    
Result: Kernel parameter check passed for "wmem_default"


Check: Kernel parameter for "wmem_max" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          1048586                   1048576                   passed    
  rac1          1048586                   1048576                   passed    
Result: Kernel parameter check passed for "wmem_max"


Check: Kernel parameter for "aio-max-nr" 
  Node Name     Configured                Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          1048576                   1048576                   passed    
  rac1          1048576                   1048576                   passed    
Result: Kernel parameter check passed for "aio-max-nr"


Check: Package existence for "make-3.81" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          make-3.81-3.el5           make-3.81                 passed    
  rac1          make-3.81-3.el5           make-3.81                 passed    
Result: Package existence check passed for "make-3.81"


Check: Package existence for "binutils-2.17.50.0.6" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          binutils-2.17.50.0.6-14.el5  binutils-2.17.50.0.6      passed    
  rac1          binutils-2.17.50.0.6-14.el5  binutils-2.17.50.0.6      passed    
Result: Package existence check passed for "binutils-2.17.50.0.6"


Check: Package existence for "gcc-4.1.2" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          gcc-4.1.2-50.el5          gcc-4.1.2                 passed    
  rac1          gcc-4.1.2-50.el5          gcc-4.1.2                 passed    
Result: Package existence check passed for "gcc-4.1.2"


Check: Package existence for "libaio-0.3.106 (i386)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          libaio-0.3.106-5 (i386)   libaio-0.3.106 (i386)     passed    
  rac1          libaio-0.3.106-5 (i386)   libaio-0.3.106 (i386)     passed    
Result: Package existence check passed for "libaio-0.3.106 (i386)"


Check: Package existence for "libaio-0.3.106 (x86_64)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          libaio-0.3.106-5 (x86_64)  libaio-0.3.106 (x86_64)   passed    
  rac1          libaio-0.3.106-5 (x86_64)  libaio-0.3.106 (x86_64)   passed    
Result: Package existence check passed for "libaio-0.3.106 (x86_64)"


Check: Package existence for "glibc-2.5-24 (i686)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          glibc-2.5-58 (i686)       glibc-2.5-24 (i686)       passed    
  rac1          glibc-2.5-58 (i686)       glibc-2.5-24 (i686)       passed    
Result: Package existence check passed for "glibc-2.5-24 (i686)"


Check: Package existence for "glibc-2.5-24 (x86_64)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          glibc-2.5-58 (x86_64)     glibc-2.5-24 (x86_64)     passed    
  rac1          glibc-2.5-58 (x86_64)     glibc-2.5-24 (x86_64)     passed    
Result: Package existence check passed for "glibc-2.5-24 (x86_64)"


Check: Package existence for "compat-libstdc++-33-3.2.3 (i386)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          compat-libstdc++-33-3.2.3-61 (i386)  compat-libstdc++-33-3.2.3 (i386)  passed    
  rac1          compat-libstdc++-33-3.2.3-61 (i386)  compat-libstdc++-33-3.2.3 (i386)  passed    
Result: Package existence check passed for "compat-libstdc++-33-3.2.3 (i386)"


Check: Package existence for "compat-libstdc++-33-3.2.3 (x86_64)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          compat-libstdc++-33-3.2.3-61 (x86_64)  compat-libstdc++-33-3.2.3 (x86_64)  passed    
  rac1          compat-libstdc++-33-3.2.3-61 (x86_64)  compat-libstdc++-33-3.2.3 (x86_64)  passed    
Result: Package existence check passed for "compat-libstdc++-33-3.2.3 (x86_64)"


Check: Package existence for "elfutils-libelf-0.125 (x86_64)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          elfutils-libelf-0.137-3.el5 (x86_64)  elfutils-libelf-0.125 (x86_64)  passed    
  rac1          elfutils-libelf-0.137-3.el5 (x86_64)  elfutils-libelf-0.125 (x86_64)  passed    
Result: Package existence check passed for "elfutils-libelf-0.125 (x86_64)"


Check: Package existence for "elfutils-libelf-devel-0.125" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          elfutils-libelf-devel-0.137-3.el5  elfutils-libelf-devel-0.125  passed    
  rac1          elfutils-libelf-devel-0.137-3.el5  elfutils-libelf-devel-0.125  passed    
Result: Package existence check passed for "elfutils-libelf-devel-0.125"


Check: Package existence for "glibc-common-2.5" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          glibc-common-2.5-58       glibc-common-2.5          passed    
  rac1          glibc-common-2.5-58       glibc-common-2.5          passed    
Result: Package existence check passed for "glibc-common-2.5"


Check: Package existence for "glibc-devel-2.5 (i386)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          glibc-devel-2.5-58 (i386)  glibc-devel-2.5 (i386)    passed    
  rac1          glibc-devel-2.5-58 (i386)  glibc-devel-2.5 (i386)    passed    
Result: Package existence check passed for "glibc-devel-2.5 (i386)"


Check: Package existence for "glibc-devel-2.5 (x86_64)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          glibc-devel-2.5-58 (x86_64)  glibc-devel-2.5 (x86_64)  passed    
  rac1          glibc-devel-2.5-58 (x86_64)  glibc-devel-2.5 (x86_64)  passed    
Result: Package existence check passed for "glibc-devel-2.5 (x86_64)"


Check: Package existence for "glibc-headers-2.5" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          glibc-headers-2.5-58      glibc-headers-2.5         passed    
  rac1          glibc-headers-2.5-58      glibc-headers-2.5         passed    
Result: Package existence check passed for "glibc-headers-2.5"


Check: Package existence for "gcc-c++-4.1.2" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          gcc-c++-4.1.2-50.el5      gcc-c++-4.1.2             passed    
  rac1          gcc-c++-4.1.2-50.el5      gcc-c++-4.1.2             passed    
Result: Package existence check passed for "gcc-c++-4.1.2"


Check: Package existence for "libaio-devel-0.3.106 (i386)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          libaio-devel-0.3.106-5 (i386)  libaio-devel-0.3.106 (i386)  passed    
  rac1          libaio-devel-0.3.106-5 (i386)  libaio-devel-0.3.106 (i386)  passed    
Result: Package existence check passed for "libaio-devel-0.3.106 (i386)"


Check: Package existence for "libaio-devel-0.3.106 (x86_64)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          libaio-devel-0.3.106-5 (x86_64)  libaio-devel-0.3.106 (x86_64)  passed    
  rac1          libaio-devel-0.3.106-5 (x86_64)  libaio-devel-0.3.106 (x86_64)  passed    
Result: Package existence check passed for "libaio-devel-0.3.106 (x86_64)"


Check: Package existence for "libgcc-4.1.2 (i386)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          libgcc-4.1.2-50.el5 (i386)  libgcc-4.1.2 (i386)       passed    
  rac1          libgcc-4.1.2-50.el5 (i386)  libgcc-4.1.2 (i386)       passed    
Result: Package existence check passed for "libgcc-4.1.2 (i386)"


Check: Package existence for "libgcc-4.1.2 (x86_64)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          libgcc-4.1.2-50.el5 (x86_64)  libgcc-4.1.2 (x86_64)     passed    
  rac1          libgcc-4.1.2-50.el5 (x86_64)  libgcc-4.1.2 (x86_64)     passed    
Result: Package existence check passed for "libgcc-4.1.2 (x86_64)"


Check: Package existence for "libstdc++-4.1.2 (i386)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          libstdc++-4.1.2-50.el5 (i386)  libstdc++-4.1.2 (i386)    passed    
  rac1          libstdc++-4.1.2-50.el5 (i386)  libstdc++-4.1.2 (i386)    passed    
Result: Package existence check passed for "libstdc++-4.1.2 (i386)"


Check: Package existence for "libstdc++-4.1.2 (x86_64)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          libstdc++-4.1.2-50.el5 (x86_64)  libstdc++-4.1.2 (x86_64)  passed    
  rac1          libstdc++-4.1.2-50.el5 (x86_64)  libstdc++-4.1.2 (x86_64)  passed    
Result: Package existence check passed for "libstdc++-4.1.2 (x86_64)"


Check: Package existence for "libstdc++-devel-4.1.2 (x86_64)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          libstdc++-devel-4.1.2-50.el5 (x86_64)  libstdc++-devel-4.1.2 (x86_64)  passed    
  rac1          libstdc++-devel-4.1.2-50.el5 (x86_64)  libstdc++-devel-4.1.2 (x86_64)  passed    
Result: Package existence check passed for "libstdc++-devel-4.1.2 (x86_64)"


Check: Package existence for "sysstat-7.0.2" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          sysstat-7.0.2-3.el5_5.1   sysstat-7.0.2             passed    
  rac1          sysstat-7.0.2-3.el5_5.1   sysstat-7.0.2             passed    
Result: Package existence check passed for "sysstat-7.0.2"


Check: Package existence for "unixODBC-2.2.11 (i386)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          unixODBC-2.2.11-7.1 (i386)  unixODBC-2.2.11 (i386)    passed    
  rac1          unixODBC-2.2.11-7.1 (i386)  unixODBC-2.2.11 (i386)    passed    
Result: Package existence check passed for "unixODBC-2.2.11 (i386)"


Check: Package existence for "unixODBC-2.2.11 (x86_64)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          unixODBC-2.2.11-7.1 (x86_64)  unixODBC-2.2.11 (x86_64)  passed    
  rac1          unixODBC-2.2.11-7.1 (x86_64)  unixODBC-2.2.11 (x86_64)  passed    
Result: Package existence check passed for "unixODBC-2.2.11 (x86_64)"


Check: Package existence for "unixODBC-devel-2.2.11 (i386)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          unixODBC-devel-2.2.11-7.1 (i386)  unixODBC-devel-2.2.11 (i386)  passed    
  rac1          unixODBC-devel-2.2.11-7.1 (i386)  unixODBC-devel-2.2.11 (i386)  passed    
Result: Package existence check passed for "unixODBC-devel-2.2.11 (i386)"


Check: Package existence for "unixODBC-devel-2.2.11 (x86_64)" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          unixODBC-devel-2.2.11-7.1 (x86_64)  unixODBC-devel-2.2.11 (x86_64)  passed    
  rac1          unixODBC-devel-2.2.11-7.1 (x86_64)  unixODBC-devel-2.2.11 (x86_64)  passed    
Result: Package existence check passed for "unixODBC-devel-2.2.11 (x86_64)"


Check: Package existence for "ksh-20060214" 
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          ksh-20100202-1.el5_5.1    ksh-20060214              passed    
  rac1          ksh-20100202-1.el5_5.1    ksh-20060214              passed    
Result: Package existence check passed for "ksh-20060214"


Checking for multiple users with UID value 0
Result: Check for multiple users with UID value 0 passed 


Check: Current group ID 
Result: Current group ID check passed
Checking Core file name pattern consistency...
Core file name pattern consistency check passed.


Checking to make sure user "grid" is not in "root" group
  Node Name     Status                    Comment                 
  ------------  ------------------------  ------------------------
  rac2          does not exist            passed                  
  rac1          does not exist            passed                  
Result: User "grid" is not part of "root" group. Check passed


Check default user file creation mask
  Node Name     Available                 Required                  Comment   
  ------------  ------------------------  ------------------------  ----------
  rac2          0022                      0022                      passed    
  rac1          0022                      0022                      passed    
Result: Default user file creation mask check passed


Starting Clock synchronization checks using Network Time Protocol(NTP)...


NTP Configuration file check started...
Network Time Protocol(NTP) configuration file not found on any of the nodes. Oracle Cluster Time Synchronization Service(CTSS) can be used instead of NTP for time synchronization on the cluster nodes


Result: Clock synchronization check using Network Time Protocol(NTP) passed




Pre-check for cluster services setup was successful. 


[grid@rac1 g]$ ./runInstaller 
Starting Oracle Universal Installer...


Checking Temp space: must be greater than 120 MB.   Actual 6424 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 4094 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-10-23_09-12-06PM. Please wait ...


#RUN SCRIPT
#RAC1
[root@rac1 grid]# /u01/oraInventory/orainstRoot.sh
Changing permissions of /u01/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.


Changing groupname of /u01/oraInventory to oinstall.
The execution of the script is complete.


[root@rac1 grid]# /u01/grid/root.sh
Running Oracle 11g root.sh script...


The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/grid


Enter the full pathname of the local bin directory: [/usr/local/bin]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...




Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2012-10-23 21:59:01: Parsing the host name
2012-10-23 21:59:01: Checking for super user privileges
2012-10-23 21:59:01: User has super user privileges
Using configuration parameter file: /u01/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE 
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
  root wallet
  root wallet cert
  root cert export
  peer wallet
  profile reader wallet
  pa wallet
  peer wallet keys
  pa wallet keys
  peer cert request
  pa cert request
  peer cert
  pa cert
  peer root cert TP
  profile reader root cert TP
  pa root cert TP
  peer pa cert TP
  pa peer cert TP
  profile reader pa cert TP
  profile reader peer cert TP
  peer user cert
  pa user cert
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
FATAL: Module oracleoks not found.
FATAL: Module oracleadvm not found.
FATAL: Module oracleacfs not found.
acfsroot: ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec.


acfsroot: ACFS-9310: ADVM/ACFS installation failed.


acfsroot: ACFS-9311: not all components were detected after the installation.


CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded


ASM created and started successfully.


DiskGroup DATA created successfully.


clscfg: -install mode specified
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded
CRS-4256: Updating the profile
Successful addition of voting disk a0a2f37375474f4ebfc841f46e9269aa.
Successfully replaced voting disk group with +DATA.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   a0a2f37375474f4ebfc841f46e9269aa (ORCL:DISK1) [DATA]
Located 1 voting disk(s).
CRS-2673: Attempting to stop 'ora.crsd' on 'rac1'
CRS-2677: Stop of 'ora.crsd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'rac1'
CRS-2677: Stop of 'ora.asm' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'rac1'
CRS-2677: Stop of 'ora.ctssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssdmonitor' on 'rac1'
CRS-2677: Stop of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'rac1'
CRS-2677: Stop of 'ora.cssd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'rac1'
CRS-2677: Stop of 'ora.gpnpd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'rac1'
CRS-2677: Stop of 'ora.gipcd' on 'rac1' succeeded
CRS-2673: Attempting to stop 'ora.mdnsd' on 'rac1'
CRS-2677: Stop of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac1'
CRS-2676: Start of 'ora.mdnsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'rac1'
CRS-2676: Start of 'ora.gipcd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac1'
CRS-2676: Start of 'ora.gpnpd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac1'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac1'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac1'
CRS-2676: Start of 'ora.diskmon' on 'rac1' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac1'
CRS-2676: Start of 'ora.ctssd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac1'
CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac1'
CRS-2676: Start of 'ora.crsd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac1'
CRS-2676: Start of 'ora.evmd' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac1'
CRS-2676: Start of 'ora.asm' on 'rac1' succeeded
CRS-2672: Attempting to start 'ora.DATA.dg' on 'rac1'
CRS-2676: Start of 'ora.DATA.dg' on 'rac1' succeeded


rac1     2012/10/23 22:07:57     /u01/grid/cdata/rac1/backup_20121023_220757.olr
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...


Checking swap space: must be greater than 500 MB.   Actual 4073 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/oraInventory
'UpdateNodeList' was successful.




#RAC2
[root@rac2 ~]# /u01/oraInventory/orainstRoot.sh
Changing permissions of /u01/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.


Changing groupname of /u01/oraInventory to oinstall.
The execution of the script is complete.


[root@rac2 ~]# /u01/oraInventory/orainstRoot.sh
Changing permissions of /u01/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.


Changing groupname of /u01/oraInventory to oinstall.
The execution of the script is complete.
[root@rac2 ~]# /u01/grid/root.sh
Running Oracle 11g root.sh script...


The following environment variables are set as:
    ORACLE_OWNER= grid
    ORACLE_HOME=  /u01/grid


Enter the full pathname of the local bin directory: [/usr/local/bin]: 
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...




Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
2012-10-23 22:09:13: Parsing the host name
2012-10-23 22:09:13: Checking for super user privileges
2012-10-23 22:09:13: User has super user privileges
Using configuration parameter file: /u01/grid/crs/install/crsconfig_params
Creating trace directory
LOCAL ADD MODE 
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Adding daemon to inittab
CRS-4123: Oracle High Availability Services has been started.
ohasd is starting
FATAL: Module oracleoks not found.
FATAL: Module oracleadvm not found.
FATAL: Module oracleacfs not found.
acfsroot: ACFS-9121: Failed to detect /dev/asm/.asm_ctl_spec.


acfsroot: ACFS-9310: ADVM/ACFS installation failed.


acfsroot: ACFS-9311: not all components were detected after the installation.


CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node rac1, number 1, and is terminating
An active cluster was found during exclusive startup, restarting to join the cluster
CRS-2672: Attempting to start 'ora.mdnsd' on 'rac2'
CRS-2676: Start of 'ora.mdnsd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.gipcd' on 'rac2'
CRS-2676: Start of 'ora.gipcd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.gpnpd' on 'rac2'
CRS-2676: Start of 'ora.gpnpd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'rac2'
CRS-2676: Start of 'ora.cssdmonitor' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'rac2'
CRS-2672: Attempting to start 'ora.diskmon' on 'rac2'
CRS-2676: Start of 'ora.diskmon' on 'rac2' succeeded
CRS-2676: Start of 'ora.cssd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'rac2'
CRS-2676: Start of 'ora.ctssd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'rac2'
CRS-2676: Start of 'ora.asm' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'rac2'
CRS-2676: Start of 'ora.crsd' on 'rac2' succeeded
CRS-2672: Attempting to start 'ora.evmd' on 'rac2'
CRS-2676: Start of 'ora.evmd' on 'rac2' succeeded


rac2     2012/10/23 22:15:23     /u01/grid/cdata/rac2/backup_20121023_221523.olr
Preparing packages for installation...
cvuqdisk-1.0.7-1
Configure Oracle Grid Infrastructure for a Cluster ... succeeded
Updating inventory properties for clusterware
Starting Oracle Universal Installer...


Checking swap space: must be greater than 500 MB.   Actual 4093 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /u01/oraInventory
'UpdateNodeList' was successful.




16.安装成功,检查grid状态。
[grid@rac1 ~]$ crs_stat -t -v
Name           Type           R/RA   F/FT   Target    State     Host        
----------------------------------------------------------------------
ora.DATA.dg    ora....up.type 0/5    0/     ONLINE    ONLINE    rac1        
ora....ER.lsnr ora....er.type 0/5    0/     ONLINE    ONLINE    rac1        
ora....N1.lsnr ora....er.type 0/5    0/0    ONLINE    ONLINE    rac1        
ora.asm        ora.asm.type   0/5    0/     ONLINE    ONLINE    rac1        
ora.eons       ora.eons.type  0/3    0/     ONLINE    ONLINE    rac1        
ora.gsd        ora.gsd.type   0/5    0/     OFFLINE   OFFLINE               
ora....network ora....rk.type 0/5    0/     ONLINE    ONLINE    rac1        
ora.oc4j       ora.oc4j.type  0/5    0/0    OFFLINE   OFFLINE               
ora.ons        ora.ons.type   0/3    0/     ONLINE    ONLINE    rac1        
ora....SM1.asm application    0/5    0/0    ONLINE    ONLINE    rac1        
ora....C1.lsnr application    0/5    0/0    ONLINE    ONLINE    rac1        
ora.rac1.gsd   application    0/5    0/0    OFFLINE   OFFLINE               
ora.rac1.ons   application    0/3    0/0    ONLINE    ONLINE    rac1        
ora.rac1.vip   ora....t1.type 0/0    0/0    ONLINE    ONLINE    rac1        
ora....SM2.asm application    0/5    0/0    ONLINE    ONLINE    rac2        
ora....C2.lsnr application    0/5    0/0    ONLINE    ONLINE    rac2        
ora.rac2.gsd   application    0/5    0/0    OFFLINE   OFFLINE               
ora.rac2.ons   application    0/3    0/0    ONLINE    ONLINE    rac2        
ora.rac2.vip   ora....t1.type 0/0    0/0    ONLINE    ONLINE    rac2        
ora.scan1.vip  ora....ip.type 0/0    0/0    ONLINE    ONLINE    rac1 


17.安装oracle软件。
[root@rac1 ~]# mv database/ /u01/
[root@rac1 u01]# chown -R oracle:oinstall database/
[root@rac1 u01]# su - oracle
[oracle@rac1 database]$ ./runInstaller 
Starting Oracle Universal Installer...


Checking Temp space: must be greater than 120 MB.   Actual 5157 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 4094 MB    Passed
Checking monitor: must be configured to display at least 256 colors.    Actual 16777216    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-10-24_09-56-35AM. Please wait ...


RAC1和RAC2执行脚本
/u01/oracle/db/root.sh


[root@rac1 ~]# /u01/oracle/db/root.sh
Running Oracle 11g root.sh script...


The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/oracle/db


Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: 
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: 
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: 


Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.


[root@rac2 ~]# /u01/oracle/db/root.sh
Running Oracle 11g root.sh script...


The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /u01/oracle/db


Enter the full pathname of the local bin directory: [/usr/local/bin]: 
The file "dbhome" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: 
The file "oraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: 
The file "coraenv" already exists in /usr/local/bin.  Overwrite it? (y/n) 
[n]: 


Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
Finished product-specific root actions.


17.安装oracle数据库
[root@rac1 ~]# su - oracle
[oracle@rac1 ~]$ dbca


找不到ASM磁盘组
[AWT-EventQueue-0] [ 2010-06-10 00:15:18.970 CST ] [ASMUtils.loadDiskGroups:713] ORA-01031: insufficient privileges 
GOOGLE 结果
[oracle@rac11g1 lib]$ id 


  uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba),503(asmadmin) 


  这里asmadmin是sysasm的,这里应该是asmdba,而不是sysadmin。 


  用root用户,修改oracle的用户组 


  [root@rac11g1 ~]# usermod -G oinstall,dba,asmdba oracle 








18.启停rac
#停止RAC
[oracle@rac1 ~]$ srvctl stop database -d szscdb
[root@rac1 ~]# cd /u01/grid/bin/
[root@rac1 bin]# ./crsctl stop cluster -all
#启动RAC
[root@rac1 bin]# ./crsctl start cluster -all
[oracle@rac1 ~]$ srvctl start database -d szscdb


19.检查RAC
[grid@rac1 ~]$ crsctl check cluster
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online


[grid@rac1 ~]$ crsctl check ctss
CRS-4701: The Cluster Time Synchronization Service is in Active mode.
CRS-4702: Offset (in msec): 0


[grid@rac2 ~]$ crsctl check ctss
CRS-4701: The Cluster Time Synchronization Service is in Active mode.
CRS-4702: Offset (in msec): 0


[grid@rac1 ~]$ olsnodes -n
rac1    1
rac2    2


[grid@rac1 ~]$ ocrcheck
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2528
         Available space (kbytes) :     259592
         ID                       : 1897167888
         Device/File Name         :      +DATA
                                    Device/File integrity check succeeded


                                    Device/File not configured


                                    Device/File not configured


                                    Device/File not configured


                                    Device/File not configured


         Cluster registry integrity check succeeded


         Logical corruption check bypassed due to non-privileged user
         
         
[grid@rac1 ~]$ crsctl query css votedisk
##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   a0a2f37375474f4ebfc841f46e9269aa (ORCL:DISK1) [DATA]
Located 1 voting disk(s).




19.Listener AND Tnsnames.
[oracle@rac1 admin]$ lsnrctl status


LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 24-OCT-2012 19:26:09


Copyright (c) 1991, 2009, Oracle.  All rights reserved.


Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                24-OCT-2012 18:56:46
Uptime                    0 days 0 hr. 29 min. 23 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/grid/network/admin/listener.ora
Listener Log File         /u01/gridbase/diag/tnslsnr/rac1/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.211)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.221)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM1", status READY, has 1 handler(s) for this service...
Service "szscdb" has 1 instance(s).
  Instance "szscdb1", status READY, has 1 handler(s) for this service...
Service "szscdbXDB" has 1 instance(s).
  Instance "szscdb1", status READY, has 1 handler(s) for this service...
The command completed successfully


[oracle@rac2 admin]$ lsnrctl stauts


LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 24-OCT-2012 19:27:23


Copyright (c) 1991, 2009, Oracle.  All rights reserved.


NL-00853: undefined command "stauts".  Try "help"
[oracle@rac2 admin]$ lsnrctl status


LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 24-OCT-2012 19:27:27


Copyright (c) 1991, 2009, Oracle.  All rights reserved.


Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                24-OCT-2012 18:57:09
Uptime                    0 days 0 hr. 30 min. 18 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/grid/network/admin/listener.ora
Listener Log File         /u01/gridbase/diag/tnslsnr/rac2/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.212)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.222)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM2", status READY, has 1 handler(s) for this service...
Service "szscdb" has 1 instance(s).
  Instance "szscdb2", status READY, has 1 handler(s) for this service...
Service "szscdbXDB" has 1 instance(s).
  Instance "szscdb2", status READY, has 1 handler(s) for this service...
The command completed successfully




[oracle@rac1 ~]$ cd $TNS_ADMIN    #tnsname配置信息
[oracle@rac1 admin]$ more tnsnames.ora 
# tnsnames.ora Network Configuration File: /u01/oracle/db/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.






SZSCDB =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.211)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.212)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.221)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = szscdb)
    )
  )


SZSCDB1 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.211)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.221)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = szscdb)
    )
  )


SZSCDB2 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.212)(PORT = 1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.221)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = szscdb)
    )
  )




11gRAC的监听好像和10g不一样了,还在研究当中。

你可能感兴趣的:(Oracle)