Startup and shutdown of Oracle 11g RAC

Source: Internet
Author: User


CRS Resource in Oracle 10g includes GSD (Global serveice Daemon), ONS (Oracle Notification Service), VIP, Database, Instance and service

When you start the CRS in the 11GR2, you will be prompted that OHASD has been started. So what resources does this ohasd contain?
[[email protected] ~]# crsctl Status resource- T--------------------------------------------------------------------------------NAME TARGET State SERVE R state_details--------------------------------------------------------------------------------Lo  Cal Resources--------------------------------------------------------------------------------ORA.ARCH.DG ONLINE                                     Online racnode1 Online Online racnode2 Ora.       DATA.DG Online online racnode1 online online Racnode2 Ora. Listener.lsnr Online online racnode1 online onlin E racnode2 ora.asm Online online racnode1 S                      tarted      Online online racnode2 Started ora.gsd OFFLINE OFFLINE Racnode 1 OFFLINE OFFLINE Racnode2 ora . net1.network Online Online racnode1 online onlin                                                    E racnode2 ora.ons Online online racnode1               Online online Racnode2 Ora.registry.acfs                                     Online online racnode1 Online online racnode2  --------------------------------------------------------------------------------Cluster Resources--------------------------------------------------------------------------------Ora.listener_    Scan1.lsnr 1 Online Online   Racnode1 ORA.CVU 1 Online online racnode1        ora.oc4j 1 Online online racnode1 ora.prod.db 1                 Online online racnode1 Open 2 online online racnode2                                     Open ora.racnode1.vip 1 Online online racnode1      ORA.RACNODE2.VIP 1 Online Online racnode2 ORA.SCAN1.VIP 1 Online Online Racnode1

If you want to close the RAC can no longer pass the Crs_stop-all, this command is used by 10g, in 11g due to CRS information is also placed in the ASM instance, so to close ASM, must be closed CRS, the oracle11g RAC architecture is as follows

To shut down a RAC, you need to configure root in 2 nodes. Bash_profile
Export Oracle_home=/u01/grid/product/11gr2export path= $ORACLE _home/bin: $PATH
Turn off RAC
[[email protected] ~]# crsctl stop has[[email protected] ~]# crsctl stop has
Start RAC
[[email protected] ~]# crsctl start has[[email protected] ~]# crsctl start has
Crsctl other options, the following command only needs to be started on one node to turn off RAC Racnode1 is the host name of the node
[[email protected] ~]# crsctl stop cluster-n racnode1 racnode2
Start RAC
[Email protected] ~]# crsctl start cluster-n racnode1 racnode2
When the cluster is stopped directly, the associated resource will also be stopped. In practice, however, we operate more on the startup or shutdown of certain resources. Specifically, the SRVCTL command is used. This command is often forgotten, so you can use the Help option –h to view command help: [email protected] ~]$ srvclt–h This command shows the result is too long, not good to see, you can further view the help: [email protected] ~]$ Srvctl start-hClose the database directly with the following command to see other related actions by using the help command above
[Email protected] ~]# srvctl stop database-d PROD
the CRS_CTL-T command is still available, and the 11g RAC has a bug instance that starts normally, but the status is offline
[Email protected] ~]# crs_stat-tname Type Target State Host-------------------------- ----------------------------------Ora. ARCH.DG ora....up.type Online online racnode1 ora. DATA.DG ora....up.type online online racnode1 ora .... Er.lsnr ora....er.type online online racnode1 ora .... N1.lsnr ora....er.type Online online racnode1 ora.asm ora.asm.type online online racnode1 ora.c Vu ora.cvu.type Online online racnode1 ora.gsd ora.gsd.type OFFLINE OFFLINE ora .... network Ora....rk.type Online online racnode1 ora.oc4j ora.oc4j.type online OFFLINE o Ra.ons ora.ons.type Online Online racnode1ora.prod.db ora....se.type ONLINE OFFLINEOra .... Sm1.asm application online online racnode1 ora .... E1.lsnr application Online Online racnode1 ora....de1.gsd application OFFLINE OFFLINE ora. .. De1.ons application Online online racnode1 ora....de1.vip ora....t1.type online online racnode1 ora. .. Sm2.asm application online online racnode2 ora .... E2.lsnr application Online Online racnode2 ora....de2.gsd application OFFLINE OFFLINE ora. .. De2.ons application Online online racnode2 ora....de2.vip ora....t1.type online online racnode2 ora. .. Ry.acfs ora....fs.type Online online racnode1 ora.scan1.vip ora....ip.type online online racnode1
Try to specify the node to start again
Srvctl Start instance-d prod-i prod1
Check Again
[[email protected] ~]# crs_stat-tname Type Target State Host--------------------- ---------------------------------------Ora. ARCH.DG ora....up.type Online online racnode1 ora. DATA.DG ora....up.type online online racnode1 ora .... Er.lsnr ora....er.type online online racnode1 ora .... N1.lsnr ora....er.type Online online racnode1 ora.asm ora.asm.type online online racnode1 ora.c Vu ora.cvu.type Online online racnode1 ora.gsd ora.gsd.type OFFLINE OFFLINE ora .... network Ora....rk.type Online online racnode1 ora.oc4j ora.oc4j.type online online racnode1 o    Ra.ons ora.ons.type Online online racnode1 ora.prod.db ora....se.type online online racnode1 Ora .... Sm1.asm application online online racnode1 ora .... E1.lsnr application Online Online racnode1 ORA....DE1.GSD application OFFLine OFFLINE ora....de1.ons application online online racnode1 ora....de1.vip ora....t1.type O NLINE ONLINE racnode1 ora .... Sm2.asm application online online racnode2 ora .... E2.lsnr application Online Online racnode2 ora....de2.gsd application OFFLINE OFFLINE ora. .. De2.ons application Online online racnode2 ora....de2.vip ora....t1.type online online racnode2 ora. .. Ry.acfs ora....fs.type Online online racnode1 ora.scan1.vip ora....ip.type online online racnode1

  

Startup and shutdown of Oracle 11g RAC

Related Article

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.