Common Management of Oracle 11g RAC

Source: Internet
Author: User


Common Management of Oracle 11g RAC is in Oracle 11g RAC. The main management tools are srvctl and crsctl. Srvctl (Server Control) is a command line tool used to manage resources defined on the Oracle Cluster Registry (OCR. Www.2cto.com these resources include node applications, which constitute Oracle Cluterware and include the Oracle Notification Service (ONS), the Global Services Daemon (GSD ), and the Virtual IP (VIP ).
Other resources can also be managed by SRVCTL, such as databases, instances, listeners, services, and applications. SRVCTL allows you to start or stop nodeapps, databases, instances, listeners, and services, delete or remove instances and services, add services, and manage configuration information. Crsctl (Cluster Ready Services Control) is a command line tool that can be used to manage Oracle Clusterware daemons (daemon, also known as daemon and background processes, whose names end with a letter d ). These daemon include Cluster Synchronization Services (CSS), Cluster-Ready Services (CRS), and Event Manager (EVM ).
With CRSCTL, you can start or stop an Oracle Cluster to determine the current status of Oracle Clusterware. Through these two tools, we can manage Oracle 11g RAC. 1. To view the status of each resource (nodeapps node application, ASM instance, database instance, etc.), execute these commands under the grid user. Crs_stat-t this is a tool compatible with 10 Gb. Trc code/home/grid @ serv1 => + ASM1 $ crs_stat-t Name Type Target State Host ---------------------------------------------------------- ora. DATA. dg ora .... up. type ONLINE serv1 ora .... ER. lsnr ora .... er. type ONLINE serv1 ora .... n1.lsnr ora .... er. type ONLINE serv2 ora. WEBDG. dg ora .... up. type ONLINE serv1 ora. asm ora. asm. type ONLINE serv1 ora. elvdb. db ora .... se. type ONLINE ONLINE serv1 ora. eons ora. eons. type ONLINE serv1 ora. gsd ora. gsd. type OFFLINE ora .... network ora .... rk. type ONLINE serv1 ora. in the left-side navigation pane. for more information, see <G id = "1"> overview </G>. type OFFLINE ora. ons ora. ons. type ONLINE serv1 ora .... ry. acfs ora .... fs. type ONLINE serv1 ora. scan1.vip ora .... ip. type ONLINE serv2 ora .... SM1.asm application ONLINE serv1 ora .... v1.lsnr application ONL Ine online serv1 ora. serv1.gsd application OFFLINE ora. serv1.ons application ONLINE serv1 ora. serv1.vip ora .... t1.type ONLINE serv1 ora .... SM2.asm application ONLINE serv2 ora .... v2.lsnr application ONLINE serv2 ora. serv2.gsd application OFFLINE ora. serv2.ons application ONLINE serv2 ora. serv2.vip ora .... t1.type ONLINE serv2 ora. servdb. db Pplication ONLINE serv1 ora... b1.inst application ONLINE serv1 ora... b2.inst application ONLINE serv2 www.2cto.com crsctl stat resource-t this is a tool to replace 10 Gb crs_stat. Trc code/home/grid @ serv1 => + ASM1 $ crsctl status resource-t alias name target state server STATE_DETAILS extends Local Resources within ora. DATA. dg ONLINE serv1 ONLINE s Erv2 ora. LISTENER. lsnr ONLINE serv1 ONLINE serv2 ora. WEBDG. dg ONLINE serv1 ONLINE serv2 ora. asm ONLINE serv1 Started ONLINE serv2 ora. eons ONLINE serv1 ONLINE serv2 ora. gsd OFFLINE serv1 OFFLINE serv2 ora. net1.network ONLINE serv1 ONLINE serv2 ora. ons ONLINE serv1 ONLINE serv2 ora. registry. acfs ONLI Ne online serv1 ONLINE serv2 available Cluster Resources ---------------------------------------------------------------------------------- ora. LISTENER_SCAN1.lsnr 1 ONLINE serv2 ora. elvdb. db 1 ONLINE serv1 Open 2 ONLINE serv2 Open ora. for more information, see <G id = "1"> </G>. scan1.vip 1 ONLINE serv2 ora. serv 1. vip 1 ONLINE serv1 ora. serv2.vip 1 ONLINE serv2 ora. servdb. db 1 ONLINE serv1 ora. servdb. servdb1.inst 1 ONLINE serv1 ora. servdb. servdb2.inst 1 ONLINE serv2/home/grid @ serv1 => + ASM1 $ in 11g R2, by default, the resources of the sum of the values of the sum of X and the sum of x and X are disable, WLM is available in 11.2.0.2. gsd is a module used by CRS to communicate with 9i RAC. It is retained for backward compatibility and does not affect performance, do not try to enable them. Just ignore them. 2. To check the cluster running status, run these commands under the grid user. Trc code/home/grid @ serv1 => + ASM1 $ crsctl check-h Usage: crsctl check crs Check status of OHAS and CRS stack crsctl check cluster [[-all] | [-n <server> [...] check status of CRS stack crsctl check ctss Check status of Cluster Time Synchronization Services crsctl check resource {<resName> [...] |-w <filter >}[-n <server>] [-k <cid>] [-d <did>] Check status of resource (s) crsctl check css Check status Cluster Synchronization Services 3. Check the nodeapps status www.2cto.com and execute these commands under the grid user. Trc code/home/grid @ serv1 => + ASM1 $ srvctl status nodeapps VIP serv1-vip is enabled VIP serv1-vip is running on node: serv1 VIP serv2-vip is enabled VIP serv2-vip is running on node: serv2 Network is enabled Network is running on node: serv1 Network is running on node: serv2 GSD is disabled GSD is not running on node: serv1 GSD is not running on node: serv2 ONS is enabled ONS daemon is running on node: s Erv1 ONS daemon is running on node: serv2 eONS is enabled eONS daemon is running on node: serv1 eONS daemon is running on node: serv2/home/grid @ serv1 => + ASM1 $4. to check the database status, run these commands under the grid user. Trc code/home/grid @ serv1 => + ASM1 $ srvctl status database-d elvdb Instance elvdb1 is running on node serv1 Instance elvdb2 is running on node serv2 5. Check the asm status in run these commands under the grid user. /Home/grid @ serv1 => + ASM1 $ srvctl status asmASM is running on serv1, serv2 6. Run these commands under the root user to start and close the cluster. [Root @ serv1 bin] #. /crsctl stop cluster-n serv1 [root @ serv1 bin] #. /crsctl stop cluster-all [root @ serv1 bin] #. /crsctl stop cluster-n serv1-f force disable [root @ serv1 bin] #. /crsctl start cluster-n serv1 www.2cto.com disable CRS system restart and automatic start [root @ serv1 bin] #. /crsctl disable crsCRS-4621: Oracle High Availability Services autostart is disabled. check whether the crs is configured to automatically start [root @ serv1 bin] #. /crsctl config crsCRS-4621: Orac Le High Availability Services autostart is disabled. enable the CRS system to restart and automatically start [root @ serv1 bin] #. /crsctl enable crsCRS-4622: Oracle High Availability Services autostart is enabled. [root @ serv1 bin] #. /crsctl config crsCRS-4622: Oracle High Availability Services autostart is enabled. 7. The ocr and votedisk checks require you to run these commands under the grid user, crsctl query css votedisk and ocrcheck. Trc code/home/grid @ serv1 => + ASM1 $ crsctl query css votedisk # STATE File Universal Id File Name Disk group -- ----- ----------------- --------- 1. ONLINE 7243adef0dbe4f3fbff361afb2c9d1a3 (/dev/raw/raw1) [DATA] Located 1 voting disk (s ). www.2cto.com Trc code/home/grid @ serv1 => + ASM1 $ ocrcheck Status of Oracle Cluster Registry is as follows: Version: 3 Total space (kbytes): 262120 Used space (kbytes ): 2964 Available space (kbytes): 259156 ID: 43827983 Device/File Name: + DATA Device/File integrity check succeeded Device/File not configured Cluster registry integrity check succeeded Logical authentication uption check bypassed due to non -privileged user

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.