Oracle RAC+ASM 關閉全過程
關閉全過程:
--- 2 Node 的RAC 顯示狀態
bash-3.00# ./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ora10g.db application ONLINE ONLINE sun1
ora....g1.inst application ONLINE ONLINE sun1
ora....g2.inst application ONLINE ONLINE sun2
ora....SM1.asm application ONLINE ONLINE sun1
ora....N1.lsnr application ONLINE ONLINE sun1
ora.sun1.gsd application ONLINE ONLINE sun1
ora.sun1.ons application ONLINE ONLINE sun1
ora.sun1.vip application ONLINE ONLINE sun1
ora....SM2.asm application ONLINE ONLINE sun2
ora....N2.lsnr application ONLINE ONLINE sun2
ora.sun2.gsd application ONLINE ONLINE sun2
ora.sun2.ons application ONLINE ONLINE sun2
ora.sun2.vip application ONLINE ONLINE sun2
Node 1 Ip:
# ifconfig -a
lo0: flags=2001000849
inet 127.0.0.1 netmask ff000000
ce0: flags=1000843
inet 10.89.56.111 netmask ffffff00 broadcast 10.89.56.255
ether 0:3:ba:92:b3:d1
ce0:1: flags=1040843
inet 10.89.56.211 netmask ffffff00 broadcast 10.89.56.255
ce2: flags=1000843
inet 192.168.11.111 netmask ffffff00 broadcast 192.168.11.255
ether 0:3:ba:92:b4:b7
Node 2 Ip:
# ifconfig -a
lo0: flags=2001000849
inet 127.0.0.1 netmask ff000000
ce0: flags=1000843
inet 10.89.56.122 netmask ffffff00 broadcast 10.89.56.255
ether 0:3:ba:31:97:e6
ce0:2: flags=1040843
inet 10.89.56.212 netmask ffffff00 broadcast 10.89.56.255
qfe3: flags=1000843
inet 192.168.11.122 netmask ffffff00 broadcast 192.168.11.255
ether 0:3:ba:5e:29:f1
---關閉Instance
Node1:
sun1:\./srvctl stop inst -d ora10g -i ora10g1
sun1:\./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ora10g.db application ONLINE ONLINE sun1
ora....g1.inst application OFFLINE OFFLINE
ora....g2.inst application ONLINE ONLINE sun2
ora....SM1.asm application ONLINE ONLINE sun1
ora....N1.lsnr application ONLINE ONLINE sun1
ora.sun1.gsd application ONLINE ONLINE sun1
ora.sun1.ons application ONLINE ONLINE sun1
ora.sun1.vip application ONLINE ONLINE sun1
ora....SM2.asm application ONLINE ONLINE sun2
ora....N2.lsnr application ONLINE ONLINE sun2
ora.sun2.gsd application ONLINE ONLINE sun2
ora.sun2.ons application ONLINE ONLINE sun2
ora.sun2.vip application ONLINE ONLINE sun2
Node2 資料庫繼續訪問,所有使用者連線連入node2.
Node 2:
sun1:\./srvctl stop inst -d ora10g -i ora10g2
sun1:\./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ora10g.db application OFFLINE OFFLINE
ora....g1.inst application OFFLINE OFFLINE
ora....g2.inst application OFFLINE OFFLINE
ora....SM1.asm application ONLINE ONLINE sun1
ora....N1.lsnr application ONLINE ONLINE sun1
ora.sun1.gsd application ONLINE ONLINE sun1
ora.sun1.ons application ONLINE ONLINE sun1
ora.sun1.vip application ONLINE ONLINE sun1
ora....SM2.asm application ONLINE ONLINE sun2
ora....N2.lsnr application ONLINE ONLINE sun2
ora.sun2.gsd application ONLINE ONLINE sun2
ora.sun2.ons application ONLINE ONLINE sun2
ora.sun2.vip application ONLINE ONLINE sun2
Instance 2 關閉,資料庫關閉(RAC 為2nodes)。
等效下面:
---關閉資料庫
bash-3.00# ./srvctl stop database -d ora10g
bash-3.00# ./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ora10g.db application OFFLINE OFFLINE
ora....g1.inst application OFFLINE OFFLINE
ora....g2.inst application OFFLINE OFFLINE
ora....SM1.asm application ONLINE ONLINE sun1
ora....N1.lsnr application ONLINE ONLINE sun1
ora.sun1.gsd application ONLINE ONLINE sun1
ora.sun1.ons application ONLINE ONLINE sun1
ora.sun1.vip application ONLINE ONLINE sun1
ora....SM2.asm application ONLINE ONLINE sun2
ora....N2.lsnr application ONLINE ONLINE sun2
ora.sun2.gsd application ONLINE ONLINE sun2
ora.sun2.ons application ONLINE ONLINE sun2
ora.sun2.vip application ONLINE ONLINE sun2
bash-3.00#
---關閉ASM instance
Node 1:
sun1:\ORACLE_SID=+ASM1
sun1:\sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Mar 16 14:43:16 2009
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL> shutdown immediate
ASM diskgroups dismounted
ASM instance shutdown
SQL>
Node 2:
sun2:\ORACLE_SID=+ASM2
sun2:\sqlplus "/ as sysdba"
SQL*Plus: Release 10.2.0.3.0 - Production on Mon Mar 16 14:44:56 2009
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP and Data Mining options
SQL> shutdown immediate
ASM diskgroups dismounted
ASM instance shutdown
SQL>
sun1:\./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ora10g.db application OFFLINE OFFLINE
ora....g1.inst application OFFLINE OFFLINE
ora....g2.inst application OFFLINE OFFLINE
ora....SM1.asm application OFFLINE OFFLINE
ora....N1.lsnr application ONLINE ONLINE sun1
ora.sun1.gsd application ONLINE ONLINE sun1
ora.sun1.ons application ONLINE ONLINE sun1
ora.sun1.vip application ONLINE ONLINE sun1
ora....SM2.asm application OFFLINE OFFLINE
ora....N2.lsnr application ONLINE ONLINE sun2
ora.sun2.gsd application ONLINE ONLINE sun2
ora.sun2.ons application ONLINE ONLINE sun2
ora.sun2.vip application ONLINE ONLINE sun2
關閉 Listener:
sun1:\srvctl stop listener -n sun1 -l LISTENER_SUN1
sun1:\./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ora10g.db application OFFLINE OFFLINE
ora....g1.inst application OFFLINE OFFLINE
ora....g2.inst application OFFLINE OFFLINE
ora....SM1.asm application OFFLINE OFFLINE
ora....N1.lsnr application OFFLINE OFFLINE
ora.sun1.gsd application ONLINE ONLINE sun1
ora.sun1.ons application ONLINE ONLINE sun1
ora.sun1.vip application ONLINE ONLINE sun1
ora....SM2.asm application ONLINE ONLINE
ora....N2.lsnr application ONLINE ONLINE sun2
ora.sun2.gsd application ONLINE ONLINE sun2
ora.sun2.ons application ONLINE ONLINE sun2
ora.sun2.vip application ONLINE ONLINE sun2
sun1:\./srvctl stop listener -n sun2 -l LISTENER_SUN2
sun1:\./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ora10g.db application OFFLINE OFFLINE
ora....g1.inst application OFFLINE OFFLINE
ora....g2.inst application OFFLINE OFFLINE
ora....SM1.asm application OFFLINE OFFLINE
ora....N1.lsnr application OFFLINE OFFLINE
ora.sun1.gsd application ONLINE ONLINE sun1
ora.sun1.ons application ONLINE ONLINE sun1
ora.sun1.vip application ONLINE ONLINE sun1
ora....SM2.asm application ONLINE ONLINE
ora....N2.lsnr application OFFLINE OFFLINE
ora.sun2.gsd application ONLINE ONLINE sun2
ora.sun2.ons application ONLINE ONLINE sun2
ora.sun2.vip application ONLINE ONLINE sun2
sun1:\
關閉CRS 服務:
Node 1:
# ./crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
# ./crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.
sun2:\./crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.ora10g.db application OFFLINE OFFLINE
ora....g1.inst application OFFLINE OFFLINE
ora....g2.inst application OFFLINE OFFLINE
ora....SM1.asm application OFFLINE OFFLINE
ora....N1.lsnr application OFFLINE OFFLINE
ora.sun1.gsd application ONLINE OFFLINE
ora.sun1.ons application ONLINE OFFLINE
ora.sun1.vip application ONLINE ONLINE sun2
ora....SM2.asm application OFFLINE OFFLINE
ora....N2.lsnr application OFFLINE OFFLINE
ora.sun2.gsd application ONLINE ONLINE sun2
ora.sun2.ons application ONLINE ONLINE sun2
ora.sun2.vip application ONLINE ONLINE sun2
應為CRS在 node 已經關閉VIP 自動切換到Node2 上。
Node1 Ip address:
# ifconfig -a
lo0: flags=2001000849
inet 127.0.0.1 netmask ff000000
ce0: flags=1000843
inet 10.89.56.111 netmask ffffff00 broadcast 10.89.56.255
ether 0:3:ba:92:b3:d1
ce2: flags=1000843
inet 192.168.11.111 netmask ffffff00 broadcast 192.168.11.255
ether 0:3:ba:92:b4:b7
# ps -ef|grep crs
root 16078 1 0 15:24:08 ? 0:00 /bin/sh /etc/init.d/init.crsd run
root 16896 15572 0 15:27:12 pts/3 0:00 grep crs
Node 2:
# ./crsctl stop crs
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
# ifconfig -a
lo0: flags=2001000849
inet 127.0.0.1 netmask ff000000
ce0: flags=1000843
inet 10.89.56.122 netmask ffffff00 broadcast 10.89.56.255
ether 0:3:ba:31:97:e6
qfe3: flags=1000843
inet 192.168.11.122 netmask ffffff00 broadcast 192.168.11.255
ether 0:3:ba:5e:29:f1
# ps -ef|grep crs
root 16992 16178 0 15:28:09 pts/2 0:00 grep crs
root 16607 1 0 15:26:45 ? 0:00 /bin/sh /etc/init.d/init.crsd run
Finish
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/34596/viewspace-567532/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORACLE關閉過程淺析Oracle
- oracle資料庫的關閉過程Oracle資料庫
- mysql關閉過程MySql
- RHEL5.4+openfiler2.3+oracle11g rac+asm叢集資料庫配置全過程OracleASM資料庫
- Oracle10g RAC開啟關閉過程Oracle
- Oracle 資料庫例項啟動關閉過程Oracle資料庫
- oracle資料庫的啟動與關閉過程詳解Oracle資料庫
- oracle for redhat as4.0 cluster 全過程OracleRedhat
- 在青雲上部署oracle rac全過程Oracle
- Oracle-解析啟動的全過程Oracle
- 功能較全的oracle傳送郵件過程Oracle
- Oracle10g RAC for Linux配置全過程(zt)OracleLinux
- Linux 啟動過程, 初始化和關閉(轉)Linux
- 設定autotrace全過程
- Hydro OJ搭建全過程
- 詳解Oracle建立使用者許可權全過程Oracle
- MapReduce 執行全過程解析
- 頁面載入全過程
- DNS解析全過程及原理DNS
- centos 安裝MySQL全過程CentOSMySql
- ORACLE AS 自動關閉Oracle
- 11.2.0.3 RAC 全過程--8.Oracle RAC ssh ConfigureOracle
- 記憶體訪問全過程記憶體
- Git伺服器搭建全過程Git伺服器
- C語言編譯全過程C語言編譯
- TDP for SQL安裝配置全過程SQL
- linux iSCSI target配置全過程Linux
- LLM本地部署全過程記錄
- oracle啟動與關閉Oracle
- ORACLE DataGuard 關閉啟動Oracle
- 關閉自動收集 for oracleOracle
- ORACLE包和過程依賴關係測試(轉)Oracle
- Oracle儲存過程Oracle儲存過程
- oracle索引核心過程Oracle索引
- oracle-startup過程Oracle
- 【Elasticsearch學習】文件搜尋全過程Elasticsearch
- redhat 5.4下安裝MYSQL全過程RedhatMySql
- innobackupex命令備份全過程圖解圖解