您好,登錄后才能下訂單哦!
某些時候我們需要到客戶現場去做保障,偶爾會需要停下數據庫集群,然后停機。通常我們會采取比較穩妥的方式,而不是野蠻暴力的方式。
野蠻的方式
# /u01/app/oracle/product/10.2.0/db_1/bin/crsctl stop crs
日志
Shutting down instance (abort)
License high water mark = 5
Instance terminated by USER, pid = 9068
2.溫柔的方式
[root@node1 root]# su - oracle
[oracle@node1 ~]$ crs_stat -t -v
[oracle@node1 ~]$ srvctl config database
racdb
[oracle@node1 ~]$ srvctl stop database -d racdb
[oracle@node1 ~]$ srvctl stop asm -n node1
[oracle@node1 ~]$ srvctl stop asm -n node2
[oracle@node1 ~]$ srvctl stop nodeapps -n node1
[oracle@node1 ~]$ srvctl stop nodeapps -n node2
[root@node1 root]# /u01/app/oracle/product/10.2.0/db_1/bin/crsctl stop crs
Stopping resources. This could take several minutes.
Successfully stopped CRS resources.
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
[root@node1 root]# shutdown -h 0
Broadcast message from root (pts/1) (Thu Jul 20 09:16:28 2017):
The system is going down for system halt NOW!
3.啟動方法
[root@node1 ~]# su - oracle
[oracle@node1 ~]$ which crsctl
/u01/app/oracle/product/10.2.0/db_1/bin/crsctl
[oracle@node1 ~]$ exit
logout
[root@node1 ~]# /u01/app/oracle/product/10.2.0/db_1/bin/crsctl start crs
Attempting to start CRS stack
The CRS stack will be started shortly
最近有點忙,有些懈怠了,博客更新的也不及時了。還是要繼續堅持才可以,少找借口,自我批評一下。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。