【RAC】刪除RAC資料庫節點(六)——刪除Oracle叢集服務
本文介紹刪除資料庫節點的第六個步驟,刪除第二節點上的Oracle叢集服務。
在進行此步刪除操作之前,請確保以下刪除動作已經完成。
《【RAC】刪除RAC資料庫節點(一)——刪除資料庫例項》(http://space.itpub.net/519536/viewspace-676893)
《【RAC】刪除RAC資料庫節點(二)——刪除 ASM》(http://space.itpub.net/519536 /viewspace-676910)
《【RAC】刪除RAC資料庫節點(三)——刪除監聽》(http://space.itpub.net/519536/viewspace-677005)
《【RAC】刪除RAC資料庫節點(四)——刪除資料庫軟體及ASM軟體》(http://space.itpub.net/?uid-519536-action-viewspace-itemid-677089)
《【RAC】刪除RAC資料庫節點(五)——刪除ONS》(http://space.itpub.net/519536/viewspace-677136)
目標:刪除第二節點的叢集服務
1.刪除之前狀態
[root@rac2 ~]# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....B1.inst application ONLINE ONLINE rac1
ora.RACDB.db application ONLINE ONLINE rac2
ora....DB1.srv application ONLINE ONLINE rac1
ora.....taf.cs application ONLINE ONLINE rac1
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
2.以root使用者登入在第二個節點,執行指令碼rootdelete.sh
[root@rac2 ~]# /u01/crs1020/install/rootdelete.sh
CRS-0210: Could not find resource 'ora.rac2.LISTENER_RAC2.lsnr'.
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
Checking to see if Oracle CRS stack is down...
Oracle CRS stack is not running.
Oracle CRS stack is down now.
Removing script. for Oracle Cluster Ready services
Updating ocr file for downgrade
Cleaning up SCR settings in '/etc/oracle/scls_scr'
3.在第一節點以root身份執行rootdeletenode.sh指令碼
[root@rac1 ~]# /u01/crs1020/bin/olsnodes -n
rac1 1
rac2 2
[root@rac1 ~]# /u01/crs1020/install/rootdeletenode.sh rac2 2
CRS nodeapps are deleted successfully
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Node deletion operation successful.
'rac2' deleted successfully
rootdeletenode.sh指令碼後緊跟的兩個引數分別是第二節點主機名和節點編號。
4.確認刪除後的狀態
[root@rac2 ~]# crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.
[root@rac1 ~]# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....B1.inst application ONLINE ONLINE rac1
ora.RACDB.db application ONLINE ONLINE rac1
ora....DB1.srv application ONLINE ONLINE rac1
ora.....taf.cs application ONLINE ONLINE rac1
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
OK,此時節點二上的叢集服務已經被移除。
Good luck.
secooler
10.10.31
-- The End --
在進行此步刪除操作之前,請確保以下刪除動作已經完成。
《【RAC】刪除RAC資料庫節點(一)——刪除資料庫例項》(http://space.itpub.net/519536/viewspace-676893)
《【RAC】刪除RAC資料庫節點(二)——刪除 ASM》(http://space.itpub.net/519536 /viewspace-676910)
《【RAC】刪除RAC資料庫節點(三)——刪除監聽》(http://space.itpub.net/519536/viewspace-677005)
《【RAC】刪除RAC資料庫節點(四)——刪除資料庫軟體及ASM軟體》(http://space.itpub.net/?uid-519536-action-viewspace-itemid-677089)
《【RAC】刪除RAC資料庫節點(五)——刪除ONS》(http://space.itpub.net/519536/viewspace-677136)
目標:刪除第二節點的叢集服務
1.刪除之前狀態
[root@rac2 ~]# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....B1.inst application ONLINE ONLINE rac1
ora.RACDB.db application ONLINE ONLINE rac2
ora....DB1.srv application ONLINE ONLINE rac1
ora.....taf.cs application ONLINE ONLINE rac1
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE ONLINE rac2
2.以root使用者登入在第二個節點,執行指令碼rootdelete.sh
[root@rac2 ~]# /u01/crs1020/install/rootdelete.sh
CRS-0210: Could not find resource 'ora.rac2.LISTENER_RAC2.lsnr'.
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
Checking to see if Oracle CRS stack is down...
Oracle CRS stack is not running.
Oracle CRS stack is down now.
Removing script. for Oracle Cluster Ready services
Updating ocr file for downgrade
Cleaning up SCR settings in '/etc/oracle/scls_scr'
3.在第一節點以root身份執行rootdeletenode.sh指令碼
[root@rac1 ~]# /u01/crs1020/bin/olsnodes -n
rac1 1
rac2 2
[root@rac1 ~]# /u01/crs1020/install/rootdeletenode.sh rac2 2
CRS nodeapps are deleted successfully
clscfg: EXISTING configuration version 3 detected.
clscfg: version 3 is 10G Release 2.
Node deletion operation successful.
'rac2' deleted successfully
rootdeletenode.sh指令碼後緊跟的兩個引數分別是第二節點主機名和節點編號。
4.確認刪除後的狀態
[root@rac2 ~]# crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.
[root@rac1 ~]# crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora....B1.inst application ONLINE ONLINE rac1
ora.RACDB.db application ONLINE ONLINE rac1
ora....DB1.srv application ONLINE ONLINE rac1
ora.....taf.cs application ONLINE ONLINE rac1
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
OK,此時節點二上的叢集服務已經被移除。
Good luck.
secooler
10.10.31
-- The End --
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-677189/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【RAC】刪除RAC資料庫節點(七)——刪除Oracle叢集軟體資料庫Oracle
- 【RAC】刪除RAC資料庫節點(二)——刪除ASM資料庫ASM
- 【RAC】刪除RAC資料庫節點(五)——刪除ONS資料庫
- 【RAC】刪除RAC資料庫節點(三)——刪除監聽資料庫
- 【RAC】刪除RAC資料庫節點(一)——刪除資料庫例項資料庫
- Oracle RAC 10g叢集節點刪除[zt]Oracle
- Oracle Rac 刪除節點Oracle
- 【RAC】刪除RAC資料庫節點(四)——刪除資料庫軟體及ASM軟體資料庫ASM
- ORACLE RAC環境下刪除節點Oracle
- oracle11g_RAC新增刪除節點Oracle
- Oracle 10g RAC刪除、增加節點Oracle 10g
- Oracle10g RAC 刪除及加入節點Oracle
- 【RAC】Oracle10g rac新增刪除節點命令參考Oracle
- 【RAC】Oracle11g RAC刪除節點相關事項Oracle
- 官方文件學習:RAC刪除節點
- 刪除oracle10g rac(rhel4)節點_節點Oracle
- Oracle叢集軟體管理-新增和刪除叢集節點Oracle
- Oracle10g RAC 刪除及加入節點 - updatedOracle
- oracle 10g rac,刪除故障節點並新增新節點Oracle 10g
- oracle 10g rac 新增節點與刪除節點步驟Oracle 10g
- oracle rac 12徹底刪除,徹底刪除該死的racOracle
- Oracle10g RAC 刪除節點步驟及原理Oracle
- Oracle10g RAC 刪除已經失效的節點Oracle
- oracle11gr2_rac_刪除節點最佳實踐Oracle
- linux下rac環境下刪除節點Linux
- TiUP線上佈署TIDB分散式資料庫叢集節點刪除TiDB分散式資料庫
- 刪除oracle10g rac(rhel4)節點_例項Oracle
- Oracle10203RAC環境刪除節點(三)Oracle
- Oracle10203RAC環境刪除節點(二)Oracle
- Oracle10203RAC環境刪除節點(一)Oracle
- AIX 刪除資料庫及叢集軟體AI資料庫
- 11G R2 RAC新增刪除節點
- RAC 節點2刪除自己的歸檔指令碼指令碼
- RAC刪除節點失敗重啟大法解決
- [zt]ORACLE 10gR2 RAC環境增加及刪除節點Oracle 10g
- SRVCTL 刪除和新增資料庫服務資料庫
- 【Oracle】 RAC 環境刪除oracle 之二Oracle
- 【Oracle】 RAC 環境刪除oracle 之一Oracle