Vous êtes sur la page 1sur 5

11gR2 RAC Commands - Oracle Quick Reference Página 1 de 5

Oracle Buscar en este sitio

Quick
Reference
Home > Reference > Oracle RAC >

11gR2 RAC Commands

SRVCTL Commands

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)

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.

https://sites.google.com/site/oracledbnote/home/reference/oraclerac/11gr2-rac-comma... 12/02/2016
11gR2 RAC Commands - Oracle Quick Reference Página 2 de 5

Commands Objects Comment


srvctl add instance The OCR is modified.
srvctl modify database
srvctl remove service
nodeapps

srvctl relocate service You can reallocate a service from one named instance to
another named instance.

srvctl start instance


srvctl stop database
srvctl status service
asm
nodeapps

srvctl disable instance enable = when the server restart the resource must be
srvctl enable database restarted
service
asm disable = when the server restart the resource must NOT
be restarted
(perhaps we are working for some maintenance
tasks)

srvctl config database Lists configuration information from the OCR (Oracle
service Cluster Registry).
asm
nodeapps

srvctl getenv instance srvctl getenv = displays the environment variables stored
srvctl setenv database in the OCR for target.
srvctl unsetenv service
nodeapps srvctl setenv = allows these variables to be set
srvctl unsetenv = llows these variables to be unset

Frequently used commands:

srvctl start database -d DBname


srvctl stop database -d DBname

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

https://sites.google.com/site/oracledbnote/home/reference/oraclerac/11gr2-rac-comma... 12/02/2016
11gR2 RAC Commands - Oracle Quick Reference Página 3 de 5

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

CRSCTL Commands

Dual Environment CRSCTL Commands:


Commands

    crsctl add resource


    crsctl add type
    crsctl check css
    crsctl delete resource
    crsctl delete type
    crsctl get hostname
    crsctl getperm resource
    crsctl getperm type
    crsctl modify resource
    crsctl modify type
    crsctl setperm resource
    crsctl setperm type
    crsctl start resource
    crsctl status resource
    crsctl status type
    crsctl stop resource

Oracle RAC Environment CRSCTL Commands:


The commands listed in this section manage the Oracle Clusterware stack in an
Oracle RAC environment, which consists of the following:

Oracle Clusterware, the member nodes and server pools


Oracle ASM (if installed)
Cluster Synchronization Services
Cluster Time Synchronization Services

    crsctl add crs administrator


    crsctl add css votedisk

https://sites.google.com/site/oracledbnote/home/reference/oraclerac/11gr2-rac-comma... 12/02/2016
11gR2 RAC Commands - Oracle Quick Reference Página 4 de 5

    crsctl add serverpool


    crsctl check cluster
    crsctl check crs
    crsctl check resource
    crsctl check ctss
    crsctl config crs
    crsctl delete crs administrator
    crsctl delete css votedisk
    crsctl delete node
    crsctl delete serverpool
    crsctl disable crs
    crsctl enable crs
    crsctl get css
    crsctl get css ipmiaddr
    crsctl get nodename
    crsctl getperm serverpool
    crsctl lsmodules
    crsctl modify serverpool
    crsctl pin css
    crsctl query crs administrator
    crsctl query crs activeversion
    crsctl query crs releaseversion
    crsctl query crs softwareversion
    crsctl query css ipmidevice
    crsctl query css votedisk
    crsctl relocate resource
    crsctl relocate server
    crsctl replace discoverystring
    crsctl replace votedisk
    crsctl set css
    crsctl set css ipmiaddr
    crsctl set css ipmiadmin
    crsctl setperm serverpool
    crsctl start cluster
    crsctl start crs
    crsctl status server
    crsctl status serverpool
    crsctl stop cluster
    crsctl stop crs
    crsctl unpin css
    crsctl unset css

Oracle Restart Environment CRSCTL Commands:


Commands
The commands listed in this section control Oracle High Availability Services.

    crsctl check has


    crsctl config has

https://sites.google.com/site/oracledbnote/home/reference/oraclerac/11gr2-rac-comma... 12/02/2016
11gR2 RAC Commands - Oracle Quick Reference Página 5 de 5

    crsctl disable has


    crsctl enable has
    crsctl query has releaseversion
    crsctl query has softwareversion
    crsctl start has
    crsctl stop has

ATTENTION:
The following commands are deprecated in Oracle Clusterware 11g release 2
(11.2):

crs_stat
crs_register
crs_unregister
crs_start
crs_stop
crs_getperm
crs_profile
crs_relocate
crs_setperm

crsctl check crsd


crsctl check cssd
crsctl check evmd
crsctl debug log
crsctl set css votedisk
crsctl start resources
crsctl stop resources

Iniciar sesión | Actividad reciente del sitio | Informar de uso inadecuado | Imprimir página | Con la tecnología de
Google Sites

https://sites.google.com/site/oracledbnote/home/reference/oraclerac/11gr2-rac-comma... 12/02/2016

Vous aimerez peut-être aussi