About Me.

My self Adinarayana working as Implementation Application DBA with advanced technologies like RAC/PCP,OID/SSO,DMZ,Exadata and Fusion Middleware i.e Demantra,Application Server,SOA,FMW,BPEL and UPK. Created this blog to share the useful information related to DBA and Application DBA Your comments and suggestions are most welcome. Disclaimer: Please note all the views and opinions expressed in this site are my own. It's not recommend to use the fixes/suggestions provided in this site directly in production instance, please test them before implementing.

Monday, July 22, 2013

Starting and Stopping RAC Services

Stoping RAC Services
=====================

Lnx01:

$export ORACLE_SID=hrms1

$emctl stop dbconsole


Lnx02:

$export ORACLE_SID=hrms2

$emctl stop dbconsole

Lnx01:

$srvctl stop service -d hrms

$srvctl stop database -d hrms


$srvctl stop asm -n lnx01

$srvctl stop asm -n lnx02

$srvctl stop nodeapps -n lnx01

$srvctl stop nodeapps -n lnx02


To check the status:


$srvctl status nodeapps -n lnx01

NOTE:
Nodeapps includes-
1: GSD (Global Service Domain)
2: ONS (Oracle Notification Service)
3: VIP (Virtual IP)
4: Listener

STOPPING CLUSTER

(Require Root privilege but in industry we will use pseudo)


Two methods to stop
===================

lnx01:

$cd /etc/init.d

#./init.crs stop

lnx02:

STOP CLUSTER BY USING DIFFERENT COMMAND

#cd /u01/app/oracle/product/10.2.0/crs_home/bin

#./crsctl check crs

#./crsctl stop crs

STARTING CLUSTER

lnx01:

#cd /etc/init.d

#./init.crs start

lnx02:

#cd /u01/app/oracle/product/10.2.0/crs_home/bin

#./crsctl start crs

First we have to shutdown  the first node


Lnx01 #init 0

Lnx02 #init 0

 ./crsctl stat res -t
 ./crsctl check crs


Then stop the storage

If you do not have root password, we can login as oracle user & do, with the help of sudo.



$sudo /etc/init.d/init.crs start/stop


It will ask for password, i.e., Oracle Password.

No comments:

Post a Comment