Oracle
Server Control SRVCTL Utility Commands
Oracle Tips by Burleson Consulting
Oracle 11g Grid & Real Application Clusters by Rampant
TechPress is written by four of the top Oracle database experts
(Steve Karam, Bryan Jones, Mike Ault and Madhu Tumma). The
following is an excerpt from the book.
Summary of srvctl Commands
-
add
- add nodeapps, databases, instances, ASM,
or services
-
remove
- remove nodeapps, databases, instances,
ASM, or services
-
config
- lists configuration for nodeapps,
databases, ASM, or services
-
enable
- enables a database, instance, ASM, or
services
-
disable
- disables a database, instances, ASM, or
services
-
start
- start nodeapps, databases, instances, ASM,
or services
-
stop
- stop nodeapps, databases, instances, ASM,
or services
-
modify
- changes nodeapps, databases, instances, or
services
-
relocate
- moves services between instances
-
status
-
prints status of nodeapps, databases,
instances, ASM, or services
-
getenv
- displays environment variables in the
configuration of nodeapps, databases,
instances, or services
-
setenv
- sets environment variables in the
configuration of nodeapps, databases,
instances, or services
-
unsetenv
- unsets environment variables in the
configuration of nodeapps, databases,
instances, or services
Starting and stopping services
It is very common to require a complete shutdown
of all RAC services on a node and then
post-maintenance to require them to all be
brought back online.
These commands will accomplish that task:
Stopping
$ srvctl stop instance -d
db_name -i instance_name
$ srvctl stop asm -n
node_name
$ srvctl stop nodeapps -n
node_name
Starting
$ srvctl start nodeapps -n
node_name
$ srvctl start asm -n
node_name
$ srvctl start instance -d
db_name -i instance_name
Changing the VIP IP address
Unfortunately, there are times when setup
changes or some other requirement causes a DBA
to have to reconfigure the cluster.
One common change is the Virtual IP.
If the public subnet changes or the IP
addresses being used by the VIPs are required,
the DBA may be required to migrate the VIPs to
another node.
|
|
|