Oracle 11G R2 RAC 關閉叢集自啟資料庫

lovehewenyu發表於2014-11-26
Oracle 11G R2 RAC 關閉叢集自啟資料庫


解決辦法:srvctl disable database -d doudou 


實驗過程:


1.重啟後叢集自啟資料庫
[root@rac2 ~]# srvctl enable database -d doudou
You have mail in /var/spool/mail/root
[root@rac2 ~]# srvctl config database -d doudou -a
Database unique name: doudou
Database name: doudou
Oracle home: /oracle/app/oracle/product/11.2.0/dbhome_1
Oracle user: oracle
Spfile: +DATA/doudou/spfiledoudou.ora
Domain: 
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: doudou
Database instances: doudou1,doudou2
Disk Groups: DATA
Mount point paths: 
Services: 
Type: RAC
Database is enabled =>重啟後叢集啟動資料庫
Database is administrator managed
You have mail in /var/spool/mail/root


2.重啟後叢集不啟動資料庫
[root@rac2 ~]# srvctl disable database -d doudou 
[root@rac2 ~]# srvctl config database -d doudou -a 
Database unique name: doudou
Database name: doudou
Oracle home: /oracle/app/oracle/product/11.2.0/dbhome_1
Oracle user: oracle
Spfile: +DATA/doudou/spfiledoudou.ora
Domain: 
Start options: open
Stop options: immediate
Database role: PRIMARY
Management policy: AUTOMATIC
Server pools: doudou
Database instances: doudou1,doudou2
Disk Groups: DATA
Mount point paths: 
Services: 
Type: RAC
Database is disabled =>重啟後叢集不啟動資料庫
Database is administrator managed
You have mail in /var/spool/mail/root


3.驗證結果
crsctl stop has =>雙節點執行
crsctl start has =>雙節點執行 
crsctl stat res -t =>檢視資料庫狀態
[root@rac1 ~]# crsctl stat res -t
--------------------------------------------------------------------------------
NAME           TARGET  STATE        SERVER                   STATE_DETAILS       
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.doudou.db
      1        ONLINE  OFFLINE    =>重啟HAS後DB沒有自啟,證明了disable database;已經關閉叢集自啟資料庫                                               
      2        ONLINE  OFFLINE    =>重啟HAS後DB沒有自啟,證明了disable database;已經關閉叢集自啟資料庫      
注:僅擷取了資料庫狀態部分







來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26442936/viewspace-1347508/,如需轉載,請註明出處,否則將追究法律責任。

相關文章