You are on page 1of 4

RESTARTING DATABASE RAC NODES STOPPING DB & SERVICES IN EHIS RAC NODES

NODE1: 1. Stop Oracle Instance $ export ORACLE_SID= $ echo $ORACLE_SID (to check whether the value is set properly)

$ echo $ORACLE_HOME ( to check whether ORACLE_HOME is set. ORACLE_HOME is already set in users .bash_profile. So setting ORACLE_HOME may not be required. If ORACLE_HOME is not set use the following command for setting it) $ export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1 $ sqlplus / as sysdba SQL> shutdown immediate; 2. Stop ASM $ srvctl stop ASM -n DB1 (DB1 is node name) 3. Stop node applications $ srvctl stop nodeapps -n DB1 4. Check status of all the services in DB1, whether they are offline $ crsstat t (or) crs_stat -t 5. Now reboot the nodes from OS commands # init 6

1 | Page

NODE 2:

1. Stop Oracle Instance $ export ORACLE_SID $ echo $ORACLE_SID (to check whether the value is set properly)

$ echo $ORACLE_HOME ( to check whether ORACLE_HOME is set. ORACLE_HOME is already set in users .bash_profile. So setting ORACLE_HOME may not be required. If ORACLE_HOME is not set use the following command for setting it) $ export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1 $ sqlplus / as sysdba SQL> shutdown immediate;

3. Stop ASM
$ srvctl stop ASM -n DB2

4. Stop node applications


$ srvctl stop nodeapps -n DB2

5. Check if all the services in EH-DB2, whether they are offline


$ crsstat -t

6. Now reboot the nodes from OS commands


# init 6

2 | Page

STARTING DB & SERVICES IN EHIS RAC NODES


Once the node restarts, all the services automatically restart. Check whether all the services are started using the following command $ crsstat -t If any of the services failed to restart, use the steps given below for starting them. After every restart of a service check the status of the services again using the above command.

EH-DB1 (10.40.8.8):
1. CRS automatically starts if not then Start crs (as a root user) # crsctl start crs # crsctl check crs -- Check the status of crs

2. Nodeapps automatically starts, if not then start manually $ srvctl start nodeapps -n DB1 (Starting nodeapps starts all the services on the node. Check whether all the services are started. If not then use the commands given in the subsequent steps to start particular service) 3. Starting listener: $ srvctl start listener -n DB1 4. Starting ASM $ srvctl start ASM -n DB1 5. Starting the instances: $ export ORACLE_SID= $ sqlplus / as sysdba $ startup

EH-DB2 (10.40.8.9):
1. CRS automatically starts if not then Start crs (as a root user) # crsctl start crs # crsctl check crs -- Check the status of the crs

3 | Page

2. Nodeapps automatically starts, if not then start manually $ srvctl start nodeapps -n DB2 (Starting nodeapps starts all the services on the node. Check whether all the services are started. If not then use the commands given in the subsequent steps to start particular service) 3. Starting listener: $ srvctl start listener -n DB2

4. Starting ASM $ srvctl start ASM -n DB2 5. Starting the database and instances:

$ export ORACLE_SID= $ sqlplus / as sysdba $ startup

commands:

csrsctl disable crs crsctl enable crs

4 | Page

You might also like