Академический Документы
Профессиональный Документы
Культура Документы
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
2 | Page
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:
commands:
4 | Page