Để start/stop DB, instance, nodeapp, service
1. Help
2. Start/Stop DB
- Start
$ srvctl start database -d crmdb -o open
(-o: open hoặc mount hoặc nomount)
- Stop
$ srvctl stop database -d crmdb - o immediate
- Status
srvctl status instance -d crm
3. Start/Stop instance
- Start
srvctl start instance -d crmdb -i "crm1,crm4"
(-I theo sau là d/s instance)
- Stop
srvctl stop instance -d crmdb -i crm1 -o immediate
srvctl stop instance -d gold -i db1
4. Start/Stop/Status nodeapps
Nodeapp gồm các service VIP, ONS, GSD, TNS listener
- srvctl start nodeapps -n mynode1
- srvctl stop nodeapps -n mynode1
- srvctl status nodeapps
5. Start/Stop service
-- Stop service VIP trên DB (mọi node)
srvctl stop service -d crmdb -s VIP
-- Stop service VIP trên instance crm2
srvctl stop service -d crmdb -s VIP -i crm2
6. Start/Stop/Status listener
- srvctl start listener -n crmdb1
(tương đương trên node 1: lsnrctl start)
- srvctl stop listener -n crmdb1
- srvctl status listener