Oracle SRVCTL Command

Source: Internet
Author: User

The SRVCTL command can control Instance,listener and services in the RAC database. Typically SRVCTL is executed under Oracle user. Let's introduce the SRVCTL command. 1, through the SRVCTL command to Start/stop/check all instances: $ srvctl start|stop|status database-d 2. Start/stop specified instance: $ srvctl start|stop|status instance-d -I. 3. List all databases under current RAC $ srvctl config database-d 4, Start/stop/check all the Nodeapps, such as: VIP, GSD, Listener, ons:$ srvctl start|stop|status nodeapps-n 5, if you use Asm,srvctl can also start/stop ASM instance: $ srvctl start|stop asm-n [-I.] [-O ]6, can get all the environment information: $ srvctl getenv database-d [-I. ]7, setting Global environment and variables: $ srvctl setenv database-d -T Lang=en8, removing an existing database from OCR: $ srvctl Remove database-d 9. Adding a database to OCR: $ srvctl Add database-d -O [-M ] [-P ] [-A /netmask] [-r {PRIMARY | Physical_standby | Logical_standby}] [-S ]10, adding an instance of a database to OCR: $ srvctl Add instance-d -I. -N $ srvctl Add instance-d -I. -N 11. Add an ASM instance to OCR: $ srvctl Add asm-n -i-o 12. Add a service$ srvctl add service-d -S -R [-A] [-P ] [-u]13, modify service$ on other nodes srvctl modify service-d -S -I. -T 14. Relocate a node's service to other nodes Srvctl relocate service-d Demo of common commands for -s -I CRS and related services 1, view status Command # su-oracle--Switch to Oracle user $ crs_stat-t First--View CRS and all service's Status $ crsctl Check CRS--use CRSCTL command to check the status of CRS related services $ srvctl status Nodeapps-n db01 (DB02)--use SRVCTL to see if the services on all nodes are normal $ srvctl stat US database-d db--use Srvctl to view the database status $ srvctl status asm-n pnode--use Srvctl to view ASM status start and close commands for related services # su-oracle$ Crs_start-all --Start all CRS Services $ crs_stop-all-Stop all CRS services $ CRSCTL Start CRS--Start CRS service $ crsctl Stop CRS--stop CRS service $ srvctl start Nodeapps-n D B01 (DB02)--Start all applications on a node $ srvctl stop nodeapps-n db01 (DB02)-Stop all apps on a node $ srvctl start listener-n db01 (DB02)--Li to start a node stener$ srvctl Stop Listener-n db01 (DB02)-Stop a node listener$ srvctl start instance-d db-i db01 (DB02)-Start a instance$ srvc TL Stop instance-d db-i db01 (DB02)-Stop a instance$ srvctl start database-d db-Start database $ srvctl Stop database-d DB-Stop database repair Change Vipsrvctl Modify Nodeapps-n xxx1-a 192.10.0.1/255.255.255.0

Oracle srvctl command

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.