Skills for oracle grid infrastructure clusterware

本文介绍如何使用Oracle CRS版本11.2.0.1进行集群和守护进程状态检查,并提供手动启动或停止Oracle集群软件以及资源管理的详细步骤。此外,还阐述了srvctl工具的使用及其提供的多种命令选项,用于管理Oracle Grid Infrastructure集群软件。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


The article records some skills for oracle crs.

oracle version 11.2.0.1


To find out cluster and daemon status

su - grid

$GRID_HOME/bin/crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online

$GRID_HOME/bin/crsctl stat res -t -init
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.asm
      1        ONLINE  ONLINE       rac1                  Started
ora.crsd
      1        ONLINE  ONLINE       rac1
ora.cssd
      1        ONLINE  ONLINE       rac1
ora.cssdmonitor
      1        ONLINE  ONLINE       rac1
ora.ctssd
      1        ONLINE  ONLINE       rac1                  OBSERVER
ora.diskmon
      1        ONLINE  ONLINE       rac1
ora.drivers.acfs
      1        ONLINE  ONLINE       rac1
ora.evmd
      1        ONLINE  ONLINE       rac1
ora.gipcd
      1        ONLINE  ONLINE       rac1
ora.gpnpd
      1        ONLINE  ONLINE       rac1
ora.mdnsd
      1        ONLINE  ONLINE       rac1



To start one offline daemon if ora.asm offline

crsctl start resource ora.asm -init

To manually start or stop oracle clusterware for all nodes by executing the following commands:

crsctl start cluster -all
crsctl stop cluster -all

And we can manage resources with srvctl tool.

srvctl manages six objects types which are asm, database, instance, services, node applications and listeners. And oracle 11gR2 adds an additional ten object types which are GNS, VIPAddresses, scan vip addresses, scan listeners, oracle homes, oc4j, servers, server pools, asm diskgroups and asm file systems.

srvctl provides alternative commands of

enable,disable, start, stop, relocate, status, add, remove, modify, config, getenv, setenv, and unsetenv to manager oracle grid infrastructure clusterware. And we can know these commands details by srvctl --h on operation system.

For example:

 to start a service name raymond

srvctl start service -d ray -s raymond -n rac1

Another useful command to know is srvctl’s config option. This option retrieves information abouta system, reporting all database resources if no additional arguments are provided. If an object such as adatabase, asm, scans, or scan listener is passed, then this option provides detailed information about thespecified resource. This functionality is essential for deployments that GNS where DHCP is responsiblefor assigning network addresses. For example, you could use the following to find out which IP addressesare used for the SCAN:

srvctl config scan








评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值