Tuesday, May 3, 2011

srvctl commands in oracle rac 11g Database

srvctl commands in oracle rac 11g Database

==============================


SRVCTL commands Chart


Commands Objects Comment

srvctl add
srvctl modify
srvctl remove

instance

database
service
nodeapps

The OCR is modified.

srvctl relocate

service

You can reallocate a service from one named instance to another named instance.

srvctl start
srvctl stop

srvctl status

instance

database
service
asm

nodeapps


srvctl disable
srvctl enable

instance

database
service
asm

enable = when the server restart the resource must be restarted

disable = when the server restart the resource must NOT be restarted

(perhaps we are working for some maintenance tasks)

srvctl config

database
service
asm

nodeapps

Lists configuration information from the OCR (Oracle Cluster Registry).

srvctl getenv
srvctl setenv
srvctl unsetenv

instance

database
service
nodeapps

srvctl getenv = displays the environment variables stored in the OCR for target.

srvctl setenv = allows these variables to be set

srvctl unsetenv = llows these variables to be unset

The most SRVCTL commands are:

=========================

srvctl start database -d DBname
srvctl stop database -d DBname

srvctl start instance -d DBname -i INSTANCEname
srvctl stop instance -d DBname -i INSTANCEname

srvctl start instance -d DBname -i INSTANCEname
srvctl stop instance -d DBname -i INSTANCEname

srvctl status database -d DBname

srvctl status instance -d DBname -i INSTANCEname

srvctl status nodeapps -n NODEname

srvctl enable database -d DBname

srvctl disable database -d DBname

srvctl enable instance -d DBname -i INSTANCEname

srvctl disable instance -d DBname -i INSTANCEname

srvctl config database -d DBname -> to get some information about the database from OCR.

srvctl getenv nodeaps

1 comment:

Oracle DBA said...

For Complete RAC overview : http://chandu208.blogspot.com/2011/04/oracle-rac-overview.html