啟動CRS單例項、設定自動啟動
[grid@yws ~]$ crsctl start has
CRS-4123: Oracle High Availability Services has been started.
[grid@yws ~]$
[grid@yws ~]$ crsctl check has
CRS-4638: Oracle High Availability Services is online
[grid@yws ~]$
[grid@yws ~]$ crs_stat -p ora.cssd
NAME=ora.cssd
TYPE=ora.cssd.type
ACTION_SCRIPT=
ACTIVE_PLACEMENT=0
AUTO_START=never --非自動啟動
CHECK_INTERVAL=30
DESCRIPTION="Resource type for CSSD"
FAILOVER_DELAY=0
FAILURE_INTERVAL=3
FAILURE_THRESHOLD=5
HOSTING_MEMBERS=
PLACEMENT=balanced
RESTART_ATTEMPTS=5
SCRIPT_TIMEOUT=600
START_TIMEOUT=600
STOP_TIMEOUT=900
UPTIME_THRESHOLD=1m
[grid@yws ~]$ crs_stat -p ora.diskmon
NAME=ora.diskmon
TYPE=ora.diskmon.type
ACTION_SCRIPT=
ACTIVE_PLACEMENT=0
AUTO_START=never
CHECK_INTERVAL=3
DESCRIPTION="Resource type for Diskmon"
FAILOVER_DELAY=0
FAILURE_INTERVAL=3
FAILURE_THRESHOLD=5
HOSTING_MEMBERS=
PLACEMENT=balanced
RESTART_ATTEMPTS=10
SCRIPT_TIMEOUT=60
START_TIMEOUT=600
STOP_TIMEOUT=60
UPTIME_THRESHOLD=5s
修改為隨著系統自動啟動
[grid@yws ~]$ crsctl modify resource "ora.cssd" -attr "AUTO_START=1"
[grid@yws ~]$ crsctl modify resource "ora.diskmon" -attr "AUTO_START=1"
[grid@yws ~]$ crs_stat -p ora.diskmon
NAME=ora.diskmon
TYPE=ora.diskmon.type
ACTION_SCRIPT=
ACTIVE_PLACEMENT=0
AUTO_START=1
CHECK_INTERVAL=3
DESCRIPTION="Resource type for Diskmon"
FAILOVER_DELAY=0
FAILURE_INTERVAL=3
FAILURE_THRESHOLD=5
HOSTING_MEMBERS=
PLACEMENT=balanced
RESTART_ATTEMPTS=10
SCRIPT_TIMEOUT=60
START_TIMEOUT=600
STOP_TIMEOUT=60
UPTIME_THRESHOLD=5s
取消自動啟動
crsctl modify resource "ora.cssd" -attr "AUTO_START=never"
crsctl modify resource "ora.diskmon" -attr "AUTO_START=never"
CRS-4123: Oracle High Availability Services has been started.
[grid@yws ~]$
[grid@yws ~]$ crsctl check has
CRS-4638: Oracle High Availability Services is online
[grid@yws ~]$
[grid@yws ~]$ crs_stat -p ora.cssd
NAME=ora.cssd
TYPE=ora.cssd.type
ACTION_SCRIPT=
ACTIVE_PLACEMENT=0
AUTO_START=never --非自動啟動
CHECK_INTERVAL=30
DESCRIPTION="Resource type for CSSD"
FAILOVER_DELAY=0
FAILURE_INTERVAL=3
FAILURE_THRESHOLD=5
HOSTING_MEMBERS=
PLACEMENT=balanced
RESTART_ATTEMPTS=5
SCRIPT_TIMEOUT=600
START_TIMEOUT=600
STOP_TIMEOUT=900
UPTIME_THRESHOLD=1m
[grid@yws ~]$ crs_stat -p ora.diskmon
NAME=ora.diskmon
TYPE=ora.diskmon.type
ACTION_SCRIPT=
ACTIVE_PLACEMENT=0
AUTO_START=never
CHECK_INTERVAL=3
DESCRIPTION="Resource type for Diskmon"
FAILOVER_DELAY=0
FAILURE_INTERVAL=3
FAILURE_THRESHOLD=5
HOSTING_MEMBERS=
PLACEMENT=balanced
RESTART_ATTEMPTS=10
SCRIPT_TIMEOUT=60
START_TIMEOUT=600
STOP_TIMEOUT=60
UPTIME_THRESHOLD=5s
修改為隨著系統自動啟動
[grid@yws ~]$ crsctl modify resource "ora.cssd" -attr "AUTO_START=1"
[grid@yws ~]$ crsctl modify resource "ora.diskmon" -attr "AUTO_START=1"
[grid@yws ~]$ crs_stat -p ora.diskmon
NAME=ora.diskmon
TYPE=ora.diskmon.type
ACTION_SCRIPT=
ACTIVE_PLACEMENT=0
AUTO_START=1
CHECK_INTERVAL=3
DESCRIPTION="Resource type for Diskmon"
FAILOVER_DELAY=0
FAILURE_INTERVAL=3
FAILURE_THRESHOLD=5
HOSTING_MEMBERS=
PLACEMENT=balanced
RESTART_ATTEMPTS=10
SCRIPT_TIMEOUT=60
START_TIMEOUT=600
STOP_TIMEOUT=60
UPTIME_THRESHOLD=5s
取消自動啟動
crsctl modify resource "ora.cssd" -attr "AUTO_START=never"
crsctl modify resource "ora.diskmon" -attr "AUTO_START=never"
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29477587/viewspace-1704212/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 配置單例項自動重啟單例
- ASM CRS 例項啟動和關閉ASM
- Oracle 10g RAC 系統 OS啟動時CRS及例項自動啟動指令碼Oracle 10g指令碼
- 自動重新啟動oracle例項 for windowsOracleWindows
- linux下單例項資料庫開機自啟動設定Linux單例資料庫
- openoffice啟動和自動啟動設定(centos)CentOS
- Oracle之 服務啟動&停止指令碼與開機自啟動(單例項)Oracle指令碼單例
- Linux中設定oracle例項和asm同時隨機自動啟動LinuxOracleASM隨機
- Windows 設定 FRP 自動啟動WindowsFRP
- App啟動頁設計例項和技巧,啟動即讓人心動APP
- RedHat54下設定Oracle自動啟動RedhatOracle
- Mongodb 啟動關閉指令碼並設定開機自動啟動MongodbMongoDB指令碼
- Solaris下設定Oracle自啟動Oracle
- Oracle單例項+ASM啟動與關閉Oracle單例ASM
- linux自動automatic啟動停止多個oracle例項LinuxOracle
- windows下啟動服務時不啟動oracle例項WindowsOracle
- 使用SRVCTL啟動例項與使用sqlplus啟動例項的區別SQL
- 設定ORACLE GRID CONTROL 自動啟動Oracle
- 建立自啟動檔案指令碼的例項指令碼
- 3.1.5.9 啟動遠端例項
- 啟動ASM 例項報錯ASM
- Linux下設定Oracle自啟動LinuxOracle
- windows10系統設定快速啟動U盤啟動項的方法Windows
- dota2國服啟動項設定程式碼最新 dota2設定perfectworld啟動
- win10怎麼自動開啟自動設定時間_win10開啟自動設定時間的步驟Win10
- win10開機啟動項怎麼設定 win10設定開機啟動項的方法Win10
- 設定msyqlphp-fpm開機自動啟動指令碼PHP指令碼
- oracle 11g之instance自動啟動設定Oracle
- 0RACLE10G後自動啟動的設定
- win10啟動項在哪裡設定 win10自定義開機啟動項Win10
- win10開機啟動項怎麼設定_如何設定win10系統開機啟動項Win10
- CentOS 7 新增win7啟動項——修改預設啟動項CentOSWin7
- 2 Day DBA-管理Oracle例項-關於例項的啟動和關閉-關於例項啟動Oracle
- Oracle11g RAC在例項關閉後自動在啟動例項上歸檔Oracle
- windows10系統設定快速啟動隨身碟啟動項的方法Windows
- win10開機啟動項怎麼設定順序啟動的方法Win10
- centos7 設定tomcat自啟動CentOSTomcat
- 設定開機自啟動nginx和httpdNginxhttpd