ON CALL DBA SUPPORT

— Database blog

SRVCTL COMMAND LIST

Posted by ssgottik on 13/11/2013

HELP

$srvctl ACTION PROCESS – h –> -h Stands for help, this command will give you the details about the command which we can use:

example:

$srvctl stop instance -h

$srvctl -V

srvctl version: 11.0.0.0.0

INSTANCE :

$srvctl stop instance -i orcl1 -d orcl -o immediate

$srvctl start instance -i orcl1 -d orcl

$srvctl status instance -i orcl1 -d orcl

Few other options
—————–
-f                  Include disabled applications
-v                Verbose output
-S                 <level> Additional information for EM Console

ASM INSTANCE :

$srvctl status asm -n vmlinux1

$srvctl start asm -n vmlinux1 -i +ASM1 -o open

-o open, mount, or nomount

$srvctl stop asm -n vmlinux1 -i +ASM1 -o normal

-o normal, transactional, immediate, or abort

SERVICE :

srvctl status service -d orcl

srvctl add service -d orcl -s orcldb -r orcl1 -a orcl2

–Relocating the serivce from one node to another ( In this example ORCL2 to ORCL1)

srvctl relocate service -d ngprod -s orcldb -i orcl2 -t orcl1

SCAN LISTENER :

$srvctl config scan

$srvctl status scan_listener

$srvctl status scan_listener -i 1

-i 1 or 2 or 3 as we can have up to 3 scan listeners

$ srvctl relocate scan_LISTENER -i 2 -n orcl1

$srvctl start scan_listener -i 1 -n vmlinux1

$srvctl stop scan_listener -i 1 -n vmlinux1

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: