前言:
眼前小伙伴们对“oracle crsctl status res 1 2”大体比较关心,姐妹们都需要了解一些“oracle crsctl status res 1 2”的相关内容。那么小编在网络上汇集了一些有关“oracle crsctl status res 1 2””的相关资讯,希望兄弟们能喜欢,姐妹们一起来学习一下吧!第二步:停止集群资源(在一个节点执行即可)
1.停止数据库
#查看数据库配置情况
[root@rac2 ~]# srvctl config database -d racdb
Database unique name: racdb
Database name: racdb
Oracle home: /u01/app/oracle/product/11.2.0/db_1
Oracle user: oracle
Spfile: +DATA/racdb/spfileracdb.ora
Domain:
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: racdb
Database instances: racdb1,racdb2
Disk Groups: DATA,OCR
Mount point paths:
Services:
Type: RAC
Database is administrator managed
#停止数据库并禁止数据库随CRS一起启动
[root@rac1 ~]# srvctl stop database -d racdb -o immediate
[root@rac1 ~]# srvctl disable database -d racdb
#查看数据库停止情况
[root@rac1 ~]#crsctl stat res -t
应该看到:
ora.racdb.db
1 OFFLINE OFFLINE Instance Shutdown
2 OFFLINE OFFLINE Instance Shutdown
[root@rac1 ~]# srvctl status database -d racdb
Instance racdb1 is not running on node rac1
Instance racdb2 is not running on node rac2
2.停止数据库监听
srvctl stop listener
srvctl disable listener
或者:
srvctl stop listener -n rac1
srvctl stop listener -n rac2 #一个一个停止
[root@rac1 ~]# srvctl stop listener
[root@rac1 ~]# srvctl disable listener
PRCC-1012 : LISTENER was already disabled
PRCR-1003 : Resource ora.LISTENER.lsnr is already disabled
[root@rac1 ~]# crsctl stat res -t
ora.LISTENER.lsnr
OFFLINE OFFLINE rac1
OFFLINE OFFLINE rac2 已经offline状态