Amazon books

Thursday, November 5, 2009

Oracle Services - SRVCTL Command

################################################
############SRVCTL Command Examples#############
################################################
--Stopping an instance
srvctl stop instance -d capdb14p -i capdb14p1

--Database status
srvctl status database -d BWEBTST

--Creating Services
srvctl add service -d database_unique_name -s service_name -r preferred_list[-a
available_list] [-P TAF_policy]

--Stopping and Starting databases
srvctl start service -d database_unique_name [-s service_name_list] [-i inst_name]
[-o start_options] [-c connect_str | -q]

srvctl stop service -d database_unique_name -s service_name_list [-i inst_name]
[-o start_options] [-c connect_str | -q]

--Enable/Disable Services
srvctl enable service -d database_unique_name -s service_name_list [-i inst_name]
srvctl disable service -d database_unique_name -s service_name_list [-i inst_name]

--Relocating Services
srvctl relocate service -d apps -s crm -i apps1 -t apps3

--Services Status
srvctl status service -d BWWMSPR -s crm

--Checking Services
srvctl config service -d BWWMSPR -s crm -a

--Check services status deep info
srvctl status service -d BWSLPR -s SERV1,SERV2,SERV3,SERVxxx -v -S 9 -f

No comments:

Post a Comment