這樣嬸的關閉Oracle 10g 資料庫叢集

來源:互聯網
上載者:User

標籤:這樣嬸的關閉oracle 10g 資料庫叢集


    某些時候我們需要到客戶現場去做保障,偶爾會需要停下資料庫叢集,然後停機。通常我們會採取比較穩妥的方式,而不是野蠻暴力的方式。

  1. 野蠻的方式

# /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.溫柔的方式 

[[email protected] root]# su - oracle

[[email protected] ~]$ crs_stat -t -v

650) this.width=650;" src="https://s5.51cto.com/wyfs02/M02/9C/6B/wKioL1lwSmPw1H2iAAC46Jj1ds8096.png-wh_500x0-wm_3-wmp_4-s_2540385907.png" title="圖片1.png" alt="wKioL1lwSmPw1H2iAAC46Jj1ds8096.png-wh_50" /> 

[[email protected] ~]$ srvctl config database

racdb

[[email protected] ~]$ srvctl stop database -d racdb

 650) this.width=650;" src="https://s4.51cto.com/wyfs02/M00/9C/6C/wKiom1lwSn2hU0gsAADQJtifA6o783.png-wh_500x0-wm_3-wmp_4-s_716406210.png" title="圖片2.png" alt="wKiom1lwSn2hU0gsAADQJtifA6o783.png-wh_50" />

[[email protected] ~]$ srvctl stop asm -n node1

[[email protected] ~]$ srvctl stop asm -n node2

 650) this.width=650;" src="https://s4.51cto.com/wyfs02/M01/9C/6C/wKioL1lwSrqA4lvtAACv9cNba5Q994.png-wh_500x0-wm_3-wmp_4-s_2819583354.png" title="圖片3.png" alt="wKioL1lwSrqA4lvtAACv9cNba5Q994.png-wh_50" />

[[email protected] ~]$ srvctl stop nodeapps -n node1

[[email protected] ~]$ srvctl stop nodeapps -n node2

650) this.width=650;" src="https://s1.51cto.com/wyfs02/M01/9C/6C/wKioL1lwStrSUdQmAADFmWS6yJg189.png-wh_500x0-wm_3-wmp_4-s_2061809010.png" title="圖片4.png" alt="wKioL1lwStrSUdQmAADFmWS6yJg189.png-wh_50" /> 

[[email protected] 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.

[[email protected] 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.啟動方法

[[email protected] ~]# su - oracle

[[email protected] ~]$ which crsctl

/u01/app/oracle/product/10.2.0/db_1/bin/crsctl

[[email protected] ~]$ exit

logout

[[email protected] ~]# /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


最近有點忙,有些懈怠了,部落格更新的也不及時了。還是要繼續堅持才可以,少找借口,自我批評一下。

本文出自 “roidba” 部落格,請務必保留此出處http://roidba.blog.51cto.com/12318731/1949295

這樣嬸的關閉Oracle 10g 資料庫叢集

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.