Add two-node cluster to config
srvctl add database -d db9i -o /u01/app/oracle/product/9.2.0.1.0
srvctl add instance -d db9i -i db9i1 -n server01
srvctl add instance -d db9i -i db9i2 -n server02
# remove instance from cluster
srvctl remove instance -d db9i -i db9i2
# Start and stop cluster
srvctl start database -d db9i
srvctl stop database -d db9i
# Start and stop individual instance
srvctl start instance -d db9i -i db9i1
srvctl stop instance -d db9i -i db9i1
# Get status of whole database or specific instance
srvctl status database -d db9i
srvctl status instance -d db9i -i db9i1
# Get current database config
srvctl config database -d db9i
===================================================================================
[oratest@ndxdevr1 ~]$ srvctl add instance -d TEST -i TEST1 -n ICndxdevr1
[oratest@ndxdevr1 ~]$ srvctl add instance -d TEST -i TEST2 -n ICndxdevr2
[oratest@ndxdevr1 ~]$ srvctl config database -d TEST
ICndxdevr1 TEST1 /u02/app/TEST/testdb/ORA920
ICndxdevr2 TEST2 /u02/app/TEST/testdb/ORA920
[oratest@ndxdevr1 ~]$ srvctl getenv instance -d TEST -i TEST1
[oratest@ndxdevr1 ~]$ srvctl status
Usage: srvctl verb noun [options]
verbs: start|stop|status|add|remove|modify|getenv|setenv|unsetenv|config
nouns: database|instance
For detailed help on each verb and noun and its options use:
srvctl verb noun -h
[oratest@ndxdevr2 bdump]$ srvctl status database -d TEST
Instance TEST1 is running on node ICndxdevr1
Instance TEST2 is running on node ICndxdevr2
===================================================================================
srvctl start instance -d orcl -i orcl2 :Start an instance
srvctl start database -d orcl :Start all instances
srvctl stop database -d orcl :Stop all instances and close database
srvctl stop instance -d orcl -i orcl2 :Stop an instance
srvctl start service -d orcl -s rac :Start a service
srvctl stop service -d orcl -s rac :Stop a service
srvctl status service -d orcl :Check status of a service
srvctl status instance -d orcl -i orcl1 :Check an individual instance
srvctl status database -d orcl :Check status of all instances
srvctl start nodeapps -n server1 :Start gsd, vip, listener, and ons.
srvctl stop nodeapps -n server2 :Stop gsd, vip, listener, and ons
Monday, October 13, 2008
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment