1. 程式人生 > >RAC 資料庫不能隨叢集自動啟動

RAC 資料庫不能隨叢集自動啟動

新安裝的RAC,RDBMS11.2.0.4 兩個節點的。重啟伺服器後,發現節點1上的資料庫可以隨系統(叢集)啟動而啟動,

節點2上的資料庫不能隨著系統(叢集)啟動而啟動。

解決思路

1 讓資料庫隨著系統的啟動而啟動,使用命令如下。

Usage: srvctl enable database -d <db_unique_name> [-n <node_name>]

設定後,重啟兩個節點的伺服器,沒有效果。

2 設定DB resoruce的屬性,使自動啟動為always 命令如下:

crsctl modify resource ora.racdb.db -attr "AUTO_START=always"

修改後,重啟伺服器,DB狀態為自動啟動。

參考文件:https://docs.oracle.com/cd/E11882_01/rac.112/e41959/resatt.htm#CHDFFEHJ

AUTO_START

Indicates whether Oracle Clusterware automatically starts a resource after a cluster server restart. Valid AUTO_START values are:

  • always: Restarts the resource when the server restarts regardless of the state of the resource when the server stopped.

  • restore: Restores the resource to the same state that it was in when the server stopped. Oracle Clusterware attempts to restart the resource if the value of TARGET was ONLINE before the server stopped.

  • never: Oracle Clusterware never restarts the resource regardless of the state of the resource when the server stopped.

End