Oracle   Home  

 

Oracle Database 9i, 10g, 11g

Oracle Data Warehouse & BI

Oracle Applications EBS 11i, R12

 Oracle Middleware

SQL & PL/SQL

UNIX/ Linux

   Home  >  Oracle Database Administration (DBA)  >  RAC  >  Oracle RAC SRVCTL command (11gR2)

 

Oracle 10g, 11g Database Administration (DBA): RAC

Oracle RAC SRVCTL command (11gR2)

 

 

SRVCTL is used to manage the following resources (components):

 

Component             Abbreviation                 Description
asm                         asm                                Oracle ASM instance
database                 db                                  Database instance
diskgroup               dg                                  Oracle ASM disk group
filesystem               filesystem                       Oracle ASM file system
home                       home                             Oracle home or Oracle Clusterware home
listener                     lsnr                                Oracle Net listener
service                     serv                               Database service
ons, eons                 ons, eons                       Oracle Notification Services (ONS)

 

Oracle entities (such as resources, resource types, and server pools) that have names beginning with ora are managed only by SRVCTL (and not by CRSCTL) unless you are directed to do so by Oracle Support. The cluster specific commands are generally managed by CRSCTL.

 

Syntax:

srvctl  command object options

 

 

The available commands used with SRVCTL are:

 

Command       Description
add                 Adds a component to the Oracle Restart configuration.
config            Displays the Oracle Restart configuration for a component.
disable           Disables management by Oracle Restart for a component.
enable            Reenables management by Oracle Restart for a component.
getenv            Displays environment variables in the Oracle Restart configuration for a database, Oracle ASM instance, or listener.
modify           Modifies the Oracle Restart configuration for a component.
remove           Removes a component from the Oracle Restart configuration.
setenv             Sets environment variables in the Oracle Restart configuration for a database, Oracle ASM instance, or listener.
start                Starts the specified component.
status              Displays the running status of the specified component.
stop                 Stops the specified component.
unsetenv        Unsets environment variables in the Oracle Restart configuration for a database, Oracle ASM instance, or listener.

 

 

For more information go to the Oracle DBA Guide

 

 

Here are a matrix of commands/ object combination:

 

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

 

If you don't know the DBname you might run  select name from v$database;

 

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

 

 

More information about  this subject ( Oracle RAC SRVCTL command (11gR2) ) you can get from  www.in-oracle.com

 

 

 

Oracle Database 9i, 10g, 11g

Oracle Data Warehouse & BI Oracle Applications EBS 11i, R12  Oracle Middleware

SQL & PL/SQL

UNIX/ Linux

   Home  >  Oracle Database Administration (DBA)  >  RAC  >  Oracle RAC SRVCTL command (11gR2)

 

 

Different Romanian Links/ Linkuri romanesti diferite

  1. Gramatica Limbii Engleze (Learn English language if you are Romanian)

  2. Translator Englez - Roman           Translator Roman- Englez

  Doresti un proiect de arhitectura ieftin (pentru zonele Buzau, Bucuresti sau Prahova) ?

Disclaimer: The views expressed on this web site are my own and do not reflect the views of Oracle Corporation. You may use the information from this site only at your risk. Copyright (c) 2009-2011 Paul Catalin Tomoiu. All rights reserved.