SRVCTL Command
SRVCTL Command
commands: enable|disable|start|stop|relocate|status|add|remove|modify|getenv|setenv|
unsetenv|config
targets: database/db|instance/inst|service/serv|nodeapps|asm|listener
targets: database/db|instance/inst|service/serv|nodeapps|asm|listener |diskgroup|home|
ons|eons|filesystem|gns|oc4j|scan|scan_listener |srvpool|server|VIP -- From
Oracle
11g R2
srvctl -help or srvctl -v
srvctl -V -- prints version
srvctl version: 10.2.0.0.0 (or) srvctl version: 11.2.0.1.0
srvctl -h -- print usage
srvctl status service h
Database:
srvctl add database -d db_name -o ORACLE_HOME [-m domain_name][-p spfile] [-A name|
ip/netmask]
[-r {PRIMARY|PHYSICAL_STANDBY|LOGICAL_STANDBY|SNAPSHOT_STANDBY}]
[-s start_options] [-n db_name] [-y {AUTOMATIC|MANUAL}]
srvctl add database -d prod -o /u01/oracle/product/102/prod
Download Pdf
Oracle Rac
Oracle
srvctl remove database -d db_name [-f]
srvctl remove database -d prod
srvctl
srvctl
srvctl
srvctl
start
start
start
start
database
database
database
database
-d
-d
-d
-d
db_name
db_name
db_name
db_name
config
config
config
config
database
database -d db_name [-a] [-t]
database
database -d HYD -a
srvctl modify database -d db_name [-n db_name] [-o ORACLE_HOME] [-m domain_name]
[-p spfile]
[-r {PRIMARY|PHYSICAL_STANDBY|LOGICAL_STANDBY|SNAPSHOT_STANDBY}] [-s
start_options] [-y {AUTOMATIC|MANUAL}]
srvctl modify database -d hrms -r physical_standby
srvctl modify db -d RAC -p /u03/oradata/RAC/spfileRAC.ora -- moves p file
srvctl modify database d HYD o /u01/app/oracle/product/11.1/db s open
srvctl getenv database -d db_name [-t name_list]
srvctl getenv database -d prod
srvctl setenv database -d db_name {-t name=val[,name=val,...]|-T name=val}
srvctl setenv database d HYD t
TNS_ADMIN=/u01/app/oracle/product/11.1/asm/network/admin
srvctl setenv db -d prod -t LANG=en
srvctl unsetenv database -d db_name [-t name_list]
srvctl unsetenv database -d prod -t CLASSPATH
Instance:
srvctl add instance d db_name i inst_name -n node_name
srvctl add instance -d prod -i prod01 -n linux01
Interview Questions
Service:
srvctl add service -d db_name -s service_name -r pref_insts [-a avail_insts] [-P TAF_policy]
srvctl add service -d db_name -s service_name -u {-r "new_pref_inst" | -a
"new_avail_inst"}
srvctl add service -d RAC -s PRD -r RAC01,RAC02 -a RAC03,RAC04
srvctl add serv -d CRM -s CRM -r CRM1 -a CRM3 -P basic
service
service
service
service
-d
-d
-d
-d
db_name
db_name
db_name
db_name
-s
-s
-s
-s
service_name
service_name
service_name
service_name
Nodeapps:
#srvctl add nodeapps -n node_name -o ORACLE_HOME -A name|ip/netmask[/if1[|if2|...]]
#srvctl add nodeapps -n lnx02 -o $ORACLE_HOME -A 192.168.0.151/255.255.0.0/eth0
#srvctl remove nodeapps -n node_names [-f]
#srvctl start nodeapps -n node_name
#srvctl stop nodeapps -n node_name [-r] -- Stops GSD, VIP, listener & ONS
#srvctl status nodeapps -n node_name
#srvctl config nodeapps -n node_name [-a] [-g] [-o] [-s] [-l]
-a Display VIP configuration
-g Display GSD configuration
-s Display ONS daemon configuration
-l Display listener configuration
#srvctl modify nodeapps -n node_name [-A new_vip_address]
#srvctl modify nodeapps -n lnx06 -A 10.50.99.43/255.255.252.0/eth0
#srvctl getenv nodeapps -n node_name [-t name_list]
#srvctl setenv nodeapps -n node_name {-t "name=val[,name=val,...]"|-T "name=val"}
#srvctl setenv nodeapps n adcracdbq3 t
TNS_ADMIN=/u01/app/oracle/product/11.1/asm/network/admin
#srvctl unsetenv nodeapps -n node_name [-t name_list]
ASM:
srvctl add asm -n node_name -i asminstance -o ORACLE_HOME [-p spfile]
srvctl remove asm -n node_name [-i asminstance] [-f]
srvctl remove asm -n db6
srvctl
srvctl
srvctl
srvctl
srvctl
start
start
start
start
start
asm
asm
asm
asm
asm
-n
-n
-n
-n
-n
node_name
node_name
node_name
node_name
linux01
[-i
[-i
[-i
[-i
asminstance]
asminstance]
asminstance]
asminstance]
srvctl
srvctl
srvctl
srvctl
srvctl
srvctl
srvctl
stop
stop
stop
stop
stop
stop
stop
asm
asm
asm
asm
asm
asm
asm
-n
-n
-n
-n
-n
-n
-n
Listener:
srvctl add listener -n node_name -o ORACLE_HOME [-l listener_name] --
R1 command
11g
-- 11g
11g Release 2
Diskgroup:
srvctl remove diskgroup -g diskgroup_name [-n node_list] [-f]
srvctl remove diskgroup -g DG1 -f
srvctl start diskgroup -g diskgroup_name [-n node_list]
srvctl start diskgroup -g diskgroup1 -n node1,node2
srvctl stop diskgroup -g diskgroup_name [-n node_list] [-f]
srvctl stop diskgroup -g ASM_FRA_DG
srvctl stop diskgroup -g dg1 -n node1,node2 -f
srvctl status diskgroup -g diskgroup_name [-n node_list] [-a]
srvctl status diskgroup -g dg_data -n node1,node2 -a
srvctl enable diskgroup -g diskgroup_name [-n node_list]
srvctl enable diskgroup -g diskgroup1 -n node1,node2
srvctl disable diskgroup -g diskgroup_name [-n node_list]
srvctl disable diskgroup -g dg_fra -n node1, node2
Home:
srvctl start home -o ORACLE_HOME -s state_file [-n node_name]
srvctl start home -o /u01/app/oracle/product/11.2.0/db_1 -s ~/state.txt
srvctl stop home -o ORACLE_HOME -s state_file [-t stop_options] [-n node_name] [-f]
srvctl stop home -o /u01/app/oracle/product/11.2.0/db_1 -s ~/state.txt
srvctl status home -o ORACLE_HOME -s state_file [-n node_name]
srvctl status home -o /u01/app/oracle/product/11.2.0/db_1 -s ~/state.txt
EONS
srvctl add eons [-p portnum] [-m multicast-ip-address] [-e eons-listen-port] [-v]
#srvctl add eons -p 2018
srvctl remove eons [-f] [-v]
srvctl remove eons -f
srvctl start eons [-v]
srvctl start eons
srvctl stop eons [-f] [-v]
srvctl stop eons -f
srvctl status eons
srvctl enable eons [-v]
srvctl enable eons
srvctl disable eons [-v]
srvctl disable eons
srvctl config eons
srvctl modify eons [-m multicast_ip_address] [-p multicast_port_number] [-e
eons_listen_port] [-v]
srvctl modify eons -p 2018
FileSystem:
srvctl add filesystem -d volume_device -v volume_name -g diskgroup_name [-m
mountpoint_path] [-u user_name]
srvctl add filesystem -d /dev/asm/d1volume1 -v VOLUME1 -d RAC_DATA -m
/oracle/cluster1/acfs1
srvctl remove filesystem -d volume_device_name [-f]
srvctl remove filesystem -d /dev/asm/racvol1
srvctl start filesystem -d volume_device_name [-n node_name]
srvctl start filesystem -d /dev/asm/racvol3
Server:
srvctl status server -n "server_name_list" [-a]
srvctl status server -n server11 -a
srvctl relocate server -n "server_name_list" -g server_pool_name [-f]
srvctl relocate server -n "linux1, linux2" -g sp2
Scan_listener:
srvctl add scan_listener [-l lsnr_name_prefix] [-s] [-p "[TCP:]port_list[/IPC:key]
[/NMP:pipe_name][/TCPS:s_port] [/SDP:port]"]
#srvctl add scan_listener -l myscanlistener
srvctl remove scan_listener [-f]
srvctl remove scan_listener
srvctl remove scan_listener -f
srvctl start scan_listener [-n node_name] [-i ordinal_number]
srvctl start scan_listener
srvctl start scan_listener -i 1
srvctl stop scan_listener [-i ordinal_number] [-f]
srvctl stop scan_listener -i 3
commands RAC
Faqs
Move
Transactional
Disable
Utilities
Download Pdf
Oracle Rac
Oracle
Email ThisBlogThis!Share to TwitterShare to FacebookShare to Pinterest
Reactions:
Newer PostOlder PostHome
Subscribe to: Post Comments (Atom)
Oracle Interview Questions/FAQs
Oracle
Oracle
Oracle
Oracle
Oracle
Oracle
Oracle
Oracle
Oracle
Oracle
Oracle
crs_stat
Select Language
My Articles
Background processes in RAC
clscfg commands in RAC
cluvfy commands in RAC
crs_profile crs_register crs_unregister crs_setperm crs_getperm crs_start crs_stop
C
crs_stat commands in RAC
crsctl commands in RAC
dd commands
diagcollection.pl commands in RAC
gsdctl commands in RAC
init parameters in RAC
O2CB commands
ocrcheck commands in RAC
ocrconfig commands in RAC
ocrdump commands in RAC
oifcfg commands in RAC
olsnodes commands in RAC
onsctl commands in RAC
Oracle RAC (1Z0-048) Certification
Oracle RAC 10g (1Z0-048) Dumps
Oracle RAC Interview Questions Part1
Oracle RAC Interview Questions Part2
Oracle RAC Interview Questions Part3
Oracle RAC Interview Questions Part3
RACcheck utility
racgons commands in RAC
racone omotion in RAC
RAID
SCAN in RAC
srvconfig commands in RAC
srvctl commands in RAC
Virtual IP (VIP) in RAC
Wait Events in Oracle RAC
What's new in Oracle 12c RAC
What's new in Oracle 9i/10g/11g RAC
Followers
Follow by Email
Submit
Popular Posts
srvctl commands in Oracle RAC
crsctl commands in Oracle RAC