Documente Academic
Documente Profesional
Documente Cultură
Alejandro Vargas
Oracle Support Israel
June 04, 2006
Index
Alejandro Vargas
www.oracle.com Principal Support Consultant
Steps In Brief
Pre-Rac Install: OS install and Hardware preparation
Install Oracle Clusterware on the new node
Install Oracle RDBMS on the new node
Add a Database Instance to the Cluster on the new node with Database Control.
Alejandro Vargas
www.oracle.com Principal Support Consultant
Install Oracle Clusterware on the new node
The Oracle Clusterware Install needs to be executed from node 1.
Login as the Oracle user and set the CRS_HOME to the Oracle clusterware home ( same as in the existing nodes, node1 & node2 ).
Set the DISPLAY environment variable and export it.
cd $CRS_HOME/oui/bin
./addNode.sh
Alejandro Vargas
www.oracle.com Principal Support Consultant
Alejandro Vargas
www.oracle.com Principal Support Consultant
Alejandro Vargas
www.oracle.com Principal Support Consultant
Alejandro Vargas
www.oracle.com Principal Support Consultant
Alejandro Vargas
www.oracle.com Principal Support Consultant
Alejandro Vargas
www.oracle.com Principal Support Consultant
The OUI will recognise the existing nodes and ask you to enter the new node name. Enter the 'short' node names for public, private
and VIP node names of the new node. E.g. node3, node3-priv,node3-vip
The OUI will copy the clusterware software to node3 and at the end will ask you to run few scripts as the 'root' user on node1 and
node3. Make sure that you run the scripts on the correct node as specified. Please run the scripts one after another.
cat $CRS_HOME/opmn/conf/ons.config
The above command will output the remote port along with other config info. E.g. 6200. You need to use this port in the following
command.
Alejandro Vargas
www.oracle.com Principal Support Consultant
Install Oracle RDBMS and ASM Home on the new node
The following steps need to be done on the node1, two times, one for the Database Oracle Home, and one for the ASM oracle home.
Login as the Oracle user and set the environment variables, in the first run for the Database Oracle Home, in the second run for the
ASM oracle home.
cd $ORACLE_HOME/oui/bin
./addNode.sh
Alejandro Vargas
www.oracle.com Principal Support Consultant
Select node3 from the first screen
Alejandro Vargas
www.oracle.com Principal Support Consultant
The installer will copy the database software to node3 and will ask you to run root.sh at the end. Run it on the correct node as specified.
Alejandro Vargas
www.oracle.com Principal Support Consultant
Once Finished until this point repeat for the ASM home.
Alejandro Vargas
www.oracle.com Principal Support Consultant
Configure the Listener on the new Node
The following steps need to be done on node3:
Login as the oracle user and set the environment to the database home. Remember to set the DISPLAY environment variable and
export it.
$ORACLE_HOME/bin/netca
Alejandro Vargas
www.oracle.com Principal Support Consultant
Choose ADD Choose the name as LISTENER
Alejandro Vargas
www.oracle.com Principal Support Consultant
The above steps will add a listener on node3 with the name LISTENER_node3.
Alejandro Vargas
www.oracle.com Principal Support Consultant
The following steps need to be done on node1:
Login as the Oracle user and set the environment to ASM home.
$ORACLE_HOME/bin/dbca
Alejandro Vargas
www.oracle.com Principal Support Consultant
Alejandro Vargas
www.oracle.com Principal Support Consultant
Choose RAC
Choose Instance Management
Choose Add Instance
Alejandro Vargas
www.oracle.com Principal Support Consultant
Select 'racdb' (or whatever the cluster database name you have) as the database and enter the sys username/password at the
bottom of the screen.
It will display the existing instances. Click next and on the following screen enter racdb3 as the instance name and choose node3.
This will create a database instance (racdb3 onnode3). During creation it will ask if the ASM instance should be extended to
node3. You need to choose 'Yes'.
Alejandro Vargas
www.oracle.com Principal Support Consultant
Create a Database Instance on the new node.
The following steps need to be done from Enterprise Manager Database Console:
Alejandro Vargas
www.oracle.com Principal Support Consultant
On Administration choose Add Instance On the first screen enter OS and Database Users/passwords
Alejandro Vargas
www.oracle.com Principal Support Consultant
Choose the instance to add, and press next
Alejandro Vargas
www.oracle.com Principal Support Consultant
Press View Job to start monitoring the progress
And then press on the add instance link, this will show the job log
Alejandro Vargas
www.oracle.com Principal Support Consultant
The log is displayed, to refresh it go back and forth from the previous step
Alejandro Vargas
www.oracle.com Principal Support Consultant
Checkup of RAC status using crs_stat –t
Enter password:
Alejandro Vargas
www.oracle.com Principal Support Consultant
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
INSTANCE_NAME
----------------
racdba3
INSTANCE_NAME
----------------
racdba1
racdba2
racdba3
Alejandro Vargas
www.oracle.com Principal Support Consultant