Oracle CRS start and stop steps and srvctl crsctl command usage ____oracle

Source: Internet
Author: User
oracle10g RAC Shutdown and Boot Step 1: db (all instances), OS and server need to be shut down. A. First stop oracle10g Environment $ lsnrctl Stop (stops listening on each node, also can operate with Srvctl)
Or
$ srvctl Stop listener-n host1 (Stop listening on Node 1) $ emctl Stop dbconsole (stop dbconsole per node) $ srvctl Stop database-d ORCL (Stop the database There are instances) $ srvctl Stop nodeapps-n host1 (Stop Node 1 service) $ srvctl Stop nodeapps-n host2 (Stop Node 2 service) #/etc/init.d/init.crs Stop (Root stop C Luster software) shutdown sequence for, first stop listening to-> instance-> service->cluster software or use $ crs_stop-all b. Then # init 0 shuts down the server, or if you restart #init 6 C. Power off. D. Open the server, start the oracle10g database and services, etc. (if the OS reboots, all of the following services are automatically opened "except Dbconsole" without manual execution). $ srvctl Start nodeapps-n gnd-rac01 (Stop Node 1 service) $ srvctl start nodeapps-n GND-RAC02 (Stop Node 2 service) #/etc/init.d/init.crs Start ( Root stop cluster software) or use $ Crs_start–all $ srvctl Start database-d TPC (Stop database all instances) $ lsnrctl start (stop listening on each node, or use Srvctl to operate) $ Emctl start Dbconsole (stop dbconsole per node) Note: Srvctl can also be used to close an instance: Srvctl stop instance-d orcl-i Orcl2 the Srvctl turn off listener: Srvctl St Op listener-n Orcl2 srvctl start listener-n Orcl2 simplest downtime method: $crs _stop-all
$crs _stat-t See if it's all offline
Root user execution: # crsctl Stop CRS
Init 0 or Init 6 boot method: # Crsctl Start CRS
$ crs_start–all
$ crs_stat-t Situation 2: When adjusting database parameters, only all node instances are closed and the OS and server are not restarted. A. First stop oracle10g Environment $ lsnrctl Stop (stops listening on all nodes or SRVCTL) $ srvctl Stop database-d ORCL (stop all instances of database) B. Then open all instances and listeners. $ srvctl Start database-d ORCL (open all instances of database) $ lsnrctl start (turn on all nodes to monitor or use Srvctl to turn on listening) Case 3: Shutdown without shutting down the operating system due to problem points or adjustments to certain services Then open some service programs and so on. When some services are turned off, it is also necessary to close the database instance as it relates to RAC operations, similar to the first.
CRS Command Usage 1: For CRSCTL start CRS and CRSCTL stop CRS must be root user to execute. Demo of common commands for CRS and related services 1, view status commands # su–oracle -First switch to Oracle user $ crs_stat-t-View the status of CRS and all service $ crs_stat-this command can view the individual resource's Full service Name $ CRSCTL Check CRS--Use the CRSCTL command to check the status of CRS-related services $ srvctl status Nodeapps-n host1 (HOST2)--use SRVCTL to see if services on all nodes are normal $ sr Vctl status Database-d DB--use Srvctl to view the database status   start and close the associated services command #crsctl start crs   to open the Cluster CRS command program #crsctl stop CR s    shutdown   Oracle user command path: $ORA _crs_home/bin/# su–oracle $ crs_start-all-Start all CRS services $ crs_stop-al L--Stop all CRS services $ CRSCTL Start CRS-start CRS service $ crsctl Stop CRS-stop CRS service $ srvctl start nodeapps-n host1 (host2)-Start all on a node The application of $ srvctl Stop nodeapps-n host1 (HOST2)--Stop all applications on a node $ srvctl start listener-n host1 (host2)--Start listener $ srvct for a node L Stop listener-n host1 (HOST2)-Stop a node listener $ srvctl Start instance-d db-i host1 (host2)--Start a instance $ srvctl St Op instance-d db-i host1 (host2)-Stop a instance $ srvctl start database-d db-Start database $ Srvctl Stop database-d DB-stop database $crs _stop  resource name (ora. ORCL. ORATEST.cs) to stop a resource that can be stopped to a resource with a resource state of unknown.     attached oracle10g RAC Check command: The Nodeapps of the----------------------------------------------oracle10g RAC database has VIP, GSD, Listener, ONS. $ srvctl Status nodeapps–n host1 (check VIP, gsd,ons, listener etc (all nodes)) VIP is running on Node:host1 GSD are not running on No De:host1 Listener is isn't running on Node:host1 ONS daemon are not running on Node:host1 gnd-rac01$crsctl check CRS (check or Acle cluster Status: CSS, CRS, EVM.) CSS appears healthy CRS appears healthy EVM appears healthy gnd-rac01$ crs_stat-t (full-check status) Nametypetargetstatehost┅┅┅┅┅┅ ┅┅┅ora ..... 01.lsnr application Online Online host1 ora....c01.gsd application online online host1 ora....c01.ons application ONLINE O The nline host1     SRVCTL Command introduces the SRVCTL command to control Instance,listener and services in the RAC database. Typically, SRVCTL is performed under Oracle users. Now 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, listing all $ srvctl config database-d   4, Start/stop/check all n under current RAC Odeapps, 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, you can get all the environmental information: $ srvctl getenv database-d [-i ]   7, set Global environment and variables: $ srvctl setenv database-d -t   8, remove existing database from OCR: $ srvctl Remove database-d   9, add a database to OCR: $ Srvctl add database-d -o [-m ] [P] [-a /netmask] [-r] [PRIMARY | Physical_standby | Logical_standby}] [-s&nbsp]   10, adding an instance of a database to OCR: $ srvctl Add instance-d -i -n $ srvctl Add instance-d& Nbsp;-i -n   11, add an ASM instance to OCR: $ srvctl Add asm-n -i -o   12, add a service $ srvctl add service- d 
$ORA _crs_home/bin/crsctl Check CRS is used to check background process status $ORA _crs_home/bin/crsctl start resources to start the CRS resource $ORA _crs_home/bin/ Crsctl start CRS starts CRS and requires superuser action. $ORA _crs_home/bin/crsctl stop CRS shuts down CRS and requires superuser action. $ORA _crs_home/bin/crs_unregister Cancel the registration CRS $ORA _crs_home/bin/ocrcheck Check OCR settings information with Ocrcheck $ORA _crs_home/bin/crsctl Query CSS votedisk check disk vote 2: Cluster log: $ORA _crs_home/log/node host name (RACHOST01)/RACG
$ORA _crs_home/log/Node host name (RACHOST01)/CRSD
$ORA _crs_home/crs/init
$ORA _crs_home/css/log
$ORA _crs_home/css/init
$ORA _crs_home/evm/log
$ORA _crs_home/evm/init
$ORA _crs_home/srvm/log

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.