SURESH.V ORACLE ENTERPRISE LINUX 5.x 64bit 11.1.0.6.0 16.09.2010
1
ORAFACT
Adding Node to RAC
Table of Contents Adding Node to 11g RAC...............................................................................................................................3 1.1 Configuring OS and hardware for new node.......................................................................................3 1.2 Adding Oracle Clusterware to the new node.......................................................................................7 1.3 Configuring ONS for the new node...................................................................................................10 1.4 Adding RAC home to the new node..................................................................................................10 1.5 Adding a listener to the new node......................................................................................................13 1.6 Adding a ASM instance to the new node...........................................................................................18 1.7 Adding a database instance to the new node......................................................................................20
2
ORAFACT
Adding Node to RAC
Adding Node to 11g RAC 1.1 Configuring OS and hardware for new node Server Configuration Name : rac3.orafact.com Hardware : Intel Core i3 Processor RAM : 2GB Swap : 4GB Platform : Oracle Enterprise Linux 5 – 64bit Network Card : Two (eth0, eth1) Network Setting host name : IP Address eth0 : Default Subnet Mask : Default Gateway eth0 : Primary DNS : IP Address eth1 : Default Subnet Mask : Default Gateway eth1 :
Adding Node to RAC Making Directories (Node RAC3) [root@rac3 ~]# mkdir /u01/crs/11.1.0.6 [root@rac3 ~]# mkdir /u01/db/11.1.0.6 [root@rac3 ~]# chown -R oracle:oinstall /u01 [root@rac3 ~]# chmod -R 775 /u01 Editing bash profile (Node RAC3) [oracle@rac3 ~]# vi .bash_profile export TMP=/tmp export TMPDIR=/tmp export ORACLE_HOSTNAME=rac3.orafact.com if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi Creating Environment files (From Node RAC3 for Cluster, ASM and Database) [oracle@rac3 ~]# vi crs.env export ORACLE_BASE=/u01/crs export ORACLE_HOME=$ORACLE_BASE/11.1.0.6 export ORACLE_SID=racdb export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib export PATH=$ORACLE_HOME/bin:$PATH [oracle@rac3 ~]# vi asm.env export ORACLE_BASE=/u01/db export ORACLE_HOME=$ORACLE_BASE/11.1.0.6 export ORACLE_SID=+ASM3 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib export PATH=$ORACLE_HOME/bin:$PATH [oracle@rac3 ~]# vi racdb.env export ORACLE_BASE=/u01/db export ORACLE_HOME=$ORACLE_BASE/11.1.0.6 export ORACLE_SID=racdb3 export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib export PATH=$ORACLE_HOME/bin:$PATH 6
ORAFACT
Adding Node to RAC Verifying Configuration information [oracle@rac1 ~]$ /stage/database/runcluvfy.sh stage -pre crsinst -n rac1,rac2,rac3 -verbose > preclust_veri.txt
1.2 Adding Oracle Clusterware to the new node [oracle@rac1 ~]$ cd /u01/crs/11.1.0.6/oui/bin/ [oracle@rac1 bin]$ ./addNode.sh Starting Oracle Universal Installer... Checking swap space: must be greater than 500 MB. Actual 3872 MB Passed Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed Oracle Universal Installer, Version 11.1.0.6.0 Production Copyright (C) 1999, 2007, Oracle. All rights reserved. Welcome Screen. Click Next
7
ORAFACT
Adding Node to RAC Specify Cluster node to add to install and Click Next
Click Install
8
ORAFACT
Adding Node to RAC Clusterware Installation ongoing on Node-3....
As per the message run the scripts as root user respectively [root@rac3 ~]# /u01/oraInventory/orainstRoot.sh Changing permissions of /u01/oraInventory to 770. Changing groupname of /u01/oraInventory to oinstall. The execution of the script is complete [root@rac1 ~]# /u01/crs/11.1.0.6/install/rootaddnode.sh clscfg: EXISTING configuration version 4 detected. clscfg: version 4 is 11 Release 1. Attempting to add 1 new nodes to the configuration Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897. node : node 3: rac3 rac3-priv rac3 Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. /u01/crs/11.1.0.6/bin/srvctl add nodeapps -n rac3 -A rac3-vip/255.255.255.0/eth0 [root@rac3 ~]# /u01/crs/11.1.0.6/root.sh WARNING: directory '/u01/crs' is not owned by root WARNING: directory '/u01' is not owned by root Checking to see if Oracle CRS stack is already configured 9
ORAFACT
Adding Node to RAC /etc/oracle does not exist. Creating it now. OCR LOCATIONS = /dev/sdb1 OCR backup directory '/u01/crs/11.1.0.6/cdata/rac_cluster' does not exist. Creating now Setting the permissions on OCR backup directory Setting up Network socket directories Oracle Cluster Registry configuration upgraded successfully The directory '/u01/crs' is not owned by root. Changing owner to root The directory '/u01' is not owned by root. Changing owner to root clscfg: EXISTING configuration version 4 detected. clscfg: version 4 is 11 Release 1. Successfully accumulated necessary OCR keys. Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897. node : node 1: rac1 rac1-priv rac1 node 2: rac2 rac2-priv rac2 clscfg: Arguments check out successfully. NO KEYS WERE WRITTEN. Supply -force parameter to override. -force is destructive and will destroy any previous cluster configuration. Oracle Cluster Registry for cluster has already been initialized Startup will be queued to init within 30 seconds. Adding daemons to inittab Expecting the CRS daemons to be up within 600 seconds. Cluster Synchronization Services is active on these nodes. rac1 rac2 rac3 Cluster Synchronization Services is active on all the nodes. Waiting for the Oracle CRSD and EVMD to start Oracle CRS stack installed and running under init(1M)
1.3 Configuring ONS for the new node [oracle@rac1 bin]$ cat /u01/crs/11.1.0.6/opmn/conf/ons.config localport=6150 useocr=on allowgroup=true usesharedinstall=true [oracle@rac1 bin]$ ./racgons add_config rac3:6250
1.4 Adding RAC home to the new node [oracle@rac1 ~]$ cd /u01/db/11.1.0.6/oui/bin/ [oracle@rac1 bin]$ ./addNode.sh 10
ORAFACT
Adding Node to RAC Welcome Screen. Click Next
Specify Cluster Nodes to add to Install and Click Next
11
ORAFACT
Adding Node to RAC Click Install
Database Server software Installation ongoing on Node-3
12
ORAFACT
Adding Node to RAC Run the script as root user as per the message and Click OK
[root@rac3 ~]# /u01/db/11.1.0.6/root.sh Running Oracle 11g root.sh script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/db/11.1.0.6 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. Finished product-specific root actions. You have new mail in /var/spool/mail/root
1.5 Adding a listener to the new node [oracle@rac3 ~]$ . racdb.env [oracle@rac3 ~]$ netca Oracle Net Services Configuration:
13
ORAFACT
Adding Node to RAC
Select Cluster Configuration and Click Next
Select Node-3(rac3) and Click Next
14
ORAFACT
Adding Node to RAC
Select Listener Configuration and Click Next
Select Add and Click Next
15
ORAFACT
Adding Node to RAC
Specify Listener name and Click Next
Select necessary PROTOCOL and Click Next
16
ORAFACT
Adding Node to RAC Select Port number for Listener and Click Next
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.