This article contains information about srvctl commands in oracle rac environments. SRVCTL is a service manager for controlling, adding, removing, relocating different crs services or components in database installed as RAC. I’ll add the commands we need the most here.
SRVCTL Service Start Commands
1 2 3 |
srvctl start database -d ABUZERDB -o nomount srvctl start database -d ABUZERDB -o mount srvctl start database -d ABUZERDB -o open |
SRVCTL Service Stop Commands
1 2 3 4 |
srvctl stop database -d ABUZERDB -o normal srvctl stop database -d ABUZERDB -o immediate srvctl stop database -d ABUZERDB -o transactional srvctl stop database -d ABUZERDB -o abort |
SRVCTL Start Instance Command
1 |
srvctl start instance -d ABUZERDB -i ABUZERDB1 |
SRVCTL Stop Instance Command
1 |
srvctl stop instance -d ABUZERDB -i ABUZERDB1 |
SRVCTL Add Database Command
1 |
srvctl add database -d ABUZERDB -o /u01/app/oracle/product/11.2.0.4/dbhome_1 -p +DATA/ABUZERDB/parameterfile/spfileABUZERDB .ora |
SRVCTL Remove Database Command
1 |
srvctl remove database -d ABUZERDB -f -y |
SRVCTL Add Instance Command
1 |
srvctl add instance -d ABUZERDB - i ABUZERDB1 -n rachost1 |
SRVCTL Enable or Disable Instance Configuration
1 2 |
srvctl enable instance -d DB_ABUZERDB -i ABUZERDB1 srvctl disable instance -d ABUZERDB -i ABUZERDB1 |
SRVCTL Enable or Disable Database Configuration
1 2 |
srvctl enable database -d ABUZERDB srvctl disable database -d ABUZERDB |
SRVCTL Check Listener Configuration
1 |
srvctl config database -d ABUZERDB -t |
SRVCTL Check Database Configuration
1 |
srvctl config database -d ABUZERDB -a |