Commonly used srvctl commands | Oracle Examples https://oracleexamples.wordpress.com/2010/01/22/most-used-srvctl-co...
Oracle Examples
Commonly used srvctl commands
Posted on January 22, 2010
What is srvctl? it is the Server Control Utility, we use SRVCTL to start and stop the database and instances,
manage configuration information, and to add, move or remove instances and services.
These are some of the srvctl commands I frequently use, this is not a complete reference guide.
I organized the commands as follow:
To start a rac database
To stop a rac database
To check status and configurations
To start and stop instances
To start, stop and manage services
Start a rac database (order: nodeapps – asm – database)
srvctl start nodeapps -n nodename
srvctl start asm -n nodename
srvctl start database -d dbname
options are: srvctl start database -d dbname -o open | -o mount | -o nomount
Stop a rac database (order: database – asm – nodeapps)
srvctl stop database -d dbname -o immediate
options are: srvctl stop database -d dbname -o normal | -o transactional | -o immediate | -o abort
srvctl stop asm -n nodename
options are: srvctl stop asm -n nodename -o immediate
srvctl stop nodeapps -n nodename
To check status and configurations
Nodeapps:
srvctl status nodeapps -n nodename
srvctl config nodeapps -n nodename
ASM:
srvctl status asm -n nodename
srvctl config asm -n nodename
1 de 4 19/03/2016 06:12 p.m.
Commonly used srvctl commands | Oracle Examples https://oracleexamples.wordpress.com/2010/01/22/most-used-srvctl-co...
Database:
srvctl status database -d dbname
srvctl config database -d dbname (shows instances name, node and oracle home)
Instance:
srvctl status instance -d dbname -i instancename
Services:
srvctl status service -d dbname
To start and stop instances
srvctl start instance -d dbname -i instancename
srvctl stop instance -d dbname -i instancename
To start, stop and manage services
srvctl status service -d dbname
srvctl config service -d dbname
srvctl start service -d dbname -s servicename
srvctl stop service -d dbname -s servicename
srvctl relocate service -d dbname -s servicename -i instancename -t newinstancename [-f]
srvctl documentation for Oracle 10G R2 and 11G
One blogger likes this.
Related
Run jobs in a particular instance using ORA-00119: invalid specification for system Exadata workshop - impressions and notes
services parameter LOCAL_LISTENER
This entry was posted in High-Availability, Linux/Unix, Oracle Server and tagged asm, instance, nodeapps, Oracle Server, RAC, rac commands, service, srvctl, srvctl commands,
start rac database, stop rac database. Bookmark the permalink.
Follow
2 de 4 19/03/2016 06:12 p.m.
Commonly used srvctl commands | Oracle Examples https://oracleexamples.wordpress.com/2010/01/22/most-used-srvctl-co...
9 Responses to Commonly used srvctl commands
Rahul says:
February 12, 2010 at 3:06 am
Hi,
Excellent article. Thanks a lot for sharing. Kindly show difference between 9i RAC,10g RAC and 11g RAC commands.
Reply
Carlos Acosta says:
February 12, 2010 at 12:50 pm
Hi,
Thanks for your comment, right now I don’t have plans for an article about the differences between the versions,
but I can tell you that srvctl in both 10g and 11g are very similar. You can find at the end of the post the links with
the official documentation for both versions. Good luck.
Reply
Shadab Alam says:
March 28, 2011 at 11:57 pm
Thats Great!!!!!!!!!!!!!!!!!!
Shadab Alam
Reply
Adarsh Kumar says:
March 30, 2011 at 10:49 pm
Excellent Job
Reply
SUNIL KUMAR SHARMA says:
July 18, 2013 at 3:11 pm
awesome job
Reply
Sam says:
December 3, 2013 at 2:53 pm
good
Reply
hasham says:
December 10, 2013 at 5:49 pm
Follow
3 de 4 19/03/2016 06:12 p.m.
Commonly used srvctl commands | Oracle Examples https://oracleexamples.wordpress.com/2010/01/22/most-used-srvctl-co...
great work
Reply
bronx says:
July 7, 2014 at 1:46 am
Very Informative! Thanks
Reply
Mike says:
September 2, 2014 at 4:48 pm
Thanks, I have used this a copy of times already…
Reply
Oracle Examples
The Twenty Ten Theme. Blog at WordPress.com.
Follow
4 de 4 19/03/2016 06:12 p.m.