Sometimes we need to go to the customer site to do security, occasionally need to stop the database cluster, and then stop. Usually we take a more secure approach than a brute force approach.
Savage Way.
#/u01/app/oracle/product/10.2.0/db_1/bin/crsctl Stop CRS
Log
Shutting down instance (abort)
License High Water mark = 5
Instance terminated by USER, PID = 9068
2. The Gentle way
[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=" image 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=" image 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=" image 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=" image 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 under for system halt now!
3. Start-up method
[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 would be started shortly
Recently a little busy, some slack, blog update is not timely. Or to continue to adhere to, less excuses, self-criticism.
This article is from the "ROIDBA" blog, make sure to keep this source http://roidba.blog.51cto.com/12318731/1949295
So, auntie, shut down Oracle 10g DB cluster