11gR2 RAC out-of-place 滾動升級(2)
-------------------------------------------
7.檢查
-------------------------------------------
可以看到,grid已經切換到了grid_2目錄下,oracle也切換到了db_2下面
已經沒有程式在使用原目錄下的東西了
[root@database2 ~]# ps -ef|grep grid_2
root 2948 1 0 22:24 ? 00:00:11 /u01/app/11.2.0/grid_2/bin/ohasd.bin reboot
grid 3322 1 0 22:25 ? 00:00:10 /u01/app/11.2.0/grid_2/bin/oraagent.bin
grid 3334 1 0 22:25 ? 00:00:00 /u01/app/11.2.0/grid_2/bin/mdnsd.bin
grid 3343 1 0 22:25 ? 00:00:01 /u01/app/11.2.0/grid_2/bin/gpnpd.bin
root 3355 1 1 22:25 ? 00:00:21 /u01/app/11.2.0/grid_2/bin/orarootagent.bin
grid 3357 1 0 22:25 ? 00:00:09 /u01/app/11.2.0/grid_2/bin/gipcd.bin
root 3370 1 1 22:25 ? 00:00:33 /u01/app/11.2.0/grid_2/bin/osysmond.bin
root 3383 1 0 22:25 ? 00:00:05 /u01/app/11.2.0/grid_2/bin/cssdmonitor
root 3400 1 0 22:25 ? 00:00:03 /u01/app/11.2.0/grid_2/bin/cssdagent
grid 3413 1 2 22:25 ? 00:00:39 /u01/app/11.2.0/grid_2/bin/ocssd.bin
root 3663 1 0 22:26 ? 00:00:05 /u01/app/11.2.0/grid_2/bin/octssd.bin reboot
grid 3692 1 0 22:26 ? 00:00:05 /u01/app/11.2.0/grid_2/bin/evmd.bin
root 3710 1 0 22:26 ? 00:00:07 /u01/app/11.2.0/grid_2/bin/ologgerd -m database1 -r -d /u01/app/11.2.0/grid_2/crf/db/database2
root 3969 1 0 22:27 ? 00:00:13 /u01/app/11.2.0/grid_2/bin/crsd.bin reboot
grid 4042 3692 0 22:27 ? 00:00:00 /u01/app/11.2.0/grid_2/bin/evmlogger.bin -o /u01/app/11.2.0/grid_2/evm/log/evmlogger.info -l /u01/app/11.2.0/grid_2/evm/log/evmlogger.log
grid 4083 1 0 22:27 ? 00:00:08 /u01/app/11.2.0/grid_2/bin/oraagent.bin
root 4089 1 0 22:27 ? 00:00:10 /u01/app/11.2.0/grid_2/bin/orarootagent.bin
grid 4288 1 0 22:27 ? 00:00:00 /u01/app/11.2.0/grid_2/bin/tnslsnr LISTENER -inherit
grid 4290 1 0 22:27 ? 00:00:00 /u01/app/11.2.0/grid_2/bin/tnslsnr LISTENER_1522 -inherit
grid 4292 1 0 22:27 ? 00:00:00 /u01/app/11.2.0/grid_2/bin/tnslsnr LISTENER_1523 -inherit
grid 4368 1 0 22:28 ? 00:00:00 /u01/app/11.2.0/grid_2/opmn/bin/ons -d
grid 4369 4368 0 22:28 ? 00:00:00 /u01/app/11.2.0/grid_2/opmn/bin/ons -d
oracle 4392 1 0 22:28 ? 00:00:08 /u01/app/11.2.0/grid_2/bin/oraagent.bin
root 5227 5158 0 22:54 pts/0 00:00:00 grep grid_2
[root@database2 ~]# ps -ef|grep grid|grep -v grid_2
grid 3914 1 0 22:26 ? 00:00:00 asm_pmon_+ASM2
grid 3916 1 0 22:26 ? 00:00:00 asm_psp0_+ASM2
grid 3918 1 0 22:26 ? 00:00:14 asm_vktm_+ASM2
grid 3922 1 0 22:26 ? 00:00:00 asm_gen0_+ASM2
grid 3924 1 0 22:26 ? 00:00:01 asm_diag_+ASM2
grid 3926 1 0 22:26 ? 00:00:00 asm_ping_+ASM2
grid 3928 1 0 22:26 ? 00:00:04 asm_dia0_+ASM2
grid 3930 1 0 22:26 ? 00:00:03 asm_lmon_+ASM2
grid 3932 1 0 22:26 ? 00:00:02 asm_lmd0_+ASM2
grid 3934 1 0 22:26 ? 00:00:05 asm_lms0_+ASM2
grid 3938 1 0 22:26 ? 00:00:00 asm_lmhb_+ASM2
grid 3940 1 0 22:26 ? 00:00:00 asm_mman_+ASM2
grid 3942 1 0 22:26 ? 00:00:00 asm_dbw0_+ASM2
grid 3944 1 0 22:26 ? 00:00:00 asm_lgwr_+ASM2
grid 3946 1 0 22:26 ? 00:00:00 asm_ckpt_+ASM2
grid 3948 1 0 22:26 ? 00:00:00 asm_smon_+ASM2
grid 3950 1 0 22:26 ? 00:00:00 asm_rbal_+ASM2
grid 3952 1 0 22:26 ? 00:00:00 asm_gmon_+ASM2
grid 3954 1 0 22:26 ? 00:00:00 asm_mmon_+ASM2
grid 3956 1 0 22:26 ? 00:00:00 asm_mmnl_+ASM2
grid 3959 1 0 22:26 ? 00:00:00 asm_lck0_+ASM2
grid 3965 1 0 22:26 ? 00:00:00 oracle+ASM2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
grid 3981 1 0 22:27 ? 00:00:00 oracle+ASM2_ocr (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
grid 3983 1 0 22:27 ? 00:00:00 asm_asmb_+ASM2
grid 3985 1 0 22:27 ? 00:00:00 oracle+ASM2_asmb_+asm2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
grid 4122 1 0 22:27 ? 00:00:00 oracle+ASM2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
grid 4124 1 0 22:27 ? 00:00:00 oracle+ASM2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
grid 4557 1 0 22:29 ? 00:00:00 oracle+ASM2_asmb_orcl2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
root 5243 5158 0 22:55 pts/0 00:00:00 grep grid
[root@database2 ~]# lsof|awk '{print $9}'|grep grid|grep -v grid_2
/var/tmp/.oracle/ora_gipc_sdatabase2gridracCRFM_SIPC
/var/tmp/.oracle/ora_gipc_sdatabase2gridracCRFM_SIPC_lock
[root@database2 ~]# lsof|awk '{print $9}'|grep grid_2|wc -l
1144
[root@database2 ~]# lsof|awk '{print $9}'|grep db_1
[root@database2 ~]# lsof|awk '{print $9}'|grep db_2|wc -l
843
-------------------------------------------
8.解除安裝原來的目錄
-------------------------------------------
# su - grid
$ export ORACLE_HOME=/u01/app/11.2.0/grid
$ cd $ORACLE_HOME/oui/bin; ./detachHome.sh -silent -local -invPtrLoc /etc/oraInst.loc
# su - oracle
$ export ORACLE_HOME=/u01/app/oracle/product/11.2/db_1
$ cd $ORACLE_HOME/oui/bin; ./detachHome.sh -silent -local -invPtrLoc /etc/oraInst.loc
[oracle@database1 bin]$ cat /u01/app/oraInventory/ContentsXML/inventory.xml
<!-- Copyright (c) 1999, 2011, Oracle. All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
11.2.0.3.0
2.1.0.6.0
# rm -rf /u01/app/11.2.0/grid
# rm -rf /u01/app/oracle/product/11.2/db_1
7.檢查
-------------------------------------------
可以看到,grid已經切換到了grid_2目錄下,oracle也切換到了db_2下面
已經沒有程式在使用原目錄下的東西了
[root@database2 ~]# ps -ef|grep grid_2
root 2948 1 0 22:24 ? 00:00:11 /u01/app/11.2.0/grid_2/bin/ohasd.bin reboot
grid 3322 1 0 22:25 ? 00:00:10 /u01/app/11.2.0/grid_2/bin/oraagent.bin
grid 3334 1 0 22:25 ? 00:00:00 /u01/app/11.2.0/grid_2/bin/mdnsd.bin
grid 3343 1 0 22:25 ? 00:00:01 /u01/app/11.2.0/grid_2/bin/gpnpd.bin
root 3355 1 1 22:25 ? 00:00:21 /u01/app/11.2.0/grid_2/bin/orarootagent.bin
grid 3357 1 0 22:25 ? 00:00:09 /u01/app/11.2.0/grid_2/bin/gipcd.bin
root 3370 1 1 22:25 ? 00:00:33 /u01/app/11.2.0/grid_2/bin/osysmond.bin
root 3383 1 0 22:25 ? 00:00:05 /u01/app/11.2.0/grid_2/bin/cssdmonitor
root 3400 1 0 22:25 ? 00:00:03 /u01/app/11.2.0/grid_2/bin/cssdagent
grid 3413 1 2 22:25 ? 00:00:39 /u01/app/11.2.0/grid_2/bin/ocssd.bin
root 3663 1 0 22:26 ? 00:00:05 /u01/app/11.2.0/grid_2/bin/octssd.bin reboot
grid 3692 1 0 22:26 ? 00:00:05 /u01/app/11.2.0/grid_2/bin/evmd.bin
root 3710 1 0 22:26 ? 00:00:07 /u01/app/11.2.0/grid_2/bin/ologgerd -m database1 -r -d /u01/app/11.2.0/grid_2/crf/db/database2
root 3969 1 0 22:27 ? 00:00:13 /u01/app/11.2.0/grid_2/bin/crsd.bin reboot
grid 4042 3692 0 22:27 ? 00:00:00 /u01/app/11.2.0/grid_2/bin/evmlogger.bin -o /u01/app/11.2.0/grid_2/evm/log/evmlogger.info -l /u01/app/11.2.0/grid_2/evm/log/evmlogger.log
grid 4083 1 0 22:27 ? 00:00:08 /u01/app/11.2.0/grid_2/bin/oraagent.bin
root 4089 1 0 22:27 ? 00:00:10 /u01/app/11.2.0/grid_2/bin/orarootagent.bin
grid 4288 1 0 22:27 ? 00:00:00 /u01/app/11.2.0/grid_2/bin/tnslsnr LISTENER -inherit
grid 4290 1 0 22:27 ? 00:00:00 /u01/app/11.2.0/grid_2/bin/tnslsnr LISTENER_1522 -inherit
grid 4292 1 0 22:27 ? 00:00:00 /u01/app/11.2.0/grid_2/bin/tnslsnr LISTENER_1523 -inherit
grid 4368 1 0 22:28 ? 00:00:00 /u01/app/11.2.0/grid_2/opmn/bin/ons -d
grid 4369 4368 0 22:28 ? 00:00:00 /u01/app/11.2.0/grid_2/opmn/bin/ons -d
oracle 4392 1 0 22:28 ? 00:00:08 /u01/app/11.2.0/grid_2/bin/oraagent.bin
root 5227 5158 0 22:54 pts/0 00:00:00 grep grid_2
[root@database2 ~]# ps -ef|grep grid|grep -v grid_2
grid 3914 1 0 22:26 ? 00:00:00 asm_pmon_+ASM2
grid 3916 1 0 22:26 ? 00:00:00 asm_psp0_+ASM2
grid 3918 1 0 22:26 ? 00:00:14 asm_vktm_+ASM2
grid 3922 1 0 22:26 ? 00:00:00 asm_gen0_+ASM2
grid 3924 1 0 22:26 ? 00:00:01 asm_diag_+ASM2
grid 3926 1 0 22:26 ? 00:00:00 asm_ping_+ASM2
grid 3928 1 0 22:26 ? 00:00:04 asm_dia0_+ASM2
grid 3930 1 0 22:26 ? 00:00:03 asm_lmon_+ASM2
grid 3932 1 0 22:26 ? 00:00:02 asm_lmd0_+ASM2
grid 3934 1 0 22:26 ? 00:00:05 asm_lms0_+ASM2
grid 3938 1 0 22:26 ? 00:00:00 asm_lmhb_+ASM2
grid 3940 1 0 22:26 ? 00:00:00 asm_mman_+ASM2
grid 3942 1 0 22:26 ? 00:00:00 asm_dbw0_+ASM2
grid 3944 1 0 22:26 ? 00:00:00 asm_lgwr_+ASM2
grid 3946 1 0 22:26 ? 00:00:00 asm_ckpt_+ASM2
grid 3948 1 0 22:26 ? 00:00:00 asm_smon_+ASM2
grid 3950 1 0 22:26 ? 00:00:00 asm_rbal_+ASM2
grid 3952 1 0 22:26 ? 00:00:00 asm_gmon_+ASM2
grid 3954 1 0 22:26 ? 00:00:00 asm_mmon_+ASM2
grid 3956 1 0 22:26 ? 00:00:00 asm_mmnl_+ASM2
grid 3959 1 0 22:26 ? 00:00:00 asm_lck0_+ASM2
grid 3965 1 0 22:26 ? 00:00:00 oracle+ASM2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
grid 3981 1 0 22:27 ? 00:00:00 oracle+ASM2_ocr (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
grid 3983 1 0 22:27 ? 00:00:00 asm_asmb_+ASM2
grid 3985 1 0 22:27 ? 00:00:00 oracle+ASM2_asmb_+asm2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
grid 4122 1 0 22:27 ? 00:00:00 oracle+ASM2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
grid 4124 1 0 22:27 ? 00:00:00 oracle+ASM2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
grid 4557 1 0 22:29 ? 00:00:00 oracle+ASM2_asmb_orcl2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
root 5243 5158 0 22:55 pts/0 00:00:00 grep grid
[root@database2 ~]# lsof|awk '{print $9}'|grep grid|grep -v grid_2
/var/tmp/.oracle/ora_gipc_sdatabase2gridracCRFM_SIPC
/var/tmp/.oracle/ora_gipc_sdatabase2gridracCRFM_SIPC_lock
[root@database2 ~]# lsof|awk '{print $9}'|grep grid_2|wc -l
1144
[root@database2 ~]# lsof|awk '{print $9}'|grep db_1
[root@database2 ~]# lsof|awk '{print $9}'|grep db_2|wc -l
843
-------------------------------------------
8.解除安裝原來的目錄
-------------------------------------------
# su - grid
$ export ORACLE_HOME=/u01/app/11.2.0/grid
$ cd $ORACLE_HOME/oui/bin; ./detachHome.sh -silent -local -invPtrLoc /etc/oraInst.loc
# su - oracle
$ export ORACLE_HOME=/u01/app/oracle/product/11.2/db_1
$ cd $ORACLE_HOME/oui/bin; ./detachHome.sh -silent -local -invPtrLoc /etc/oraInst.loc
[oracle@database1 bin]$ cat /u01/app/oraInventory/ContentsXML/inventory.xml
<!-- Copyright (c) 1999, 2011, Oracle. All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
# rm -rf /u01/app/11.2.0/grid
# rm -rf /u01/app/oracle/product/11.2/db_1
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8242091/viewspace-767732/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 11gR2 RAC convert ONENODE
- 11gR2 OneNode Convert RAC
- [譯] Elasticsearch 滾動升級Elasticsearch
- 入門Kubernetes - 滾動升級/回滾
- 資料庫升級之-Dataguard滾動升級資料庫
- 【邏輯DG滾動升級三】ORACLE11204 邏輯DG滾動升級至12C---正式升級Oracle
- Oracle RAC 11gR2開啟歸檔Oracle
- 11gR2 RAC新增節點步驟
- 滴滴HBase大版本滾動升級之旅
- oracle 10 rac 升級 10.2.0.1升級到10.2.0.5Oracle
- ORACLE 11GR2 RAC的網路規劃解析Oracle
- linux7 靜默安裝 11GR2 RACLinux
- Oracle 11gR2 RAC 叢集服務啟動與關閉總結Oracle
- Kubernetes:Pod 升級、回滾
- 14 使用DBMS_ROLLING 執行滾動升級
- 【邏輯DG滾動升級二】ORACLE11204 邏輯DG滾動升級至12C---DG端前期準備Oracle
- oracle rac 11.2.0.3 升級到11.2.0.4Oracle
- 【邏輯DG滾動升級一】ORACLE11204 邏輯DG滾動升級至12C---生產端前期準備Oracle
- Oracle 11gR2 RAC 單網路卡轉雙網路卡繫結配置Oracle
- Oracle:Oracle RAC 11.2.0.4 升級為 19cOracle
- 淺入Kubernetes(12):Deployment 的升級、回滾
- 12.1.0.2 單機 升級 19.16 RAC步驟詳解
- Oracle 11gr2修改RAC叢集的scan ip,並處理ORA-12514問題Oracle
- 一步一步搭建oracle 11gR2 rac+dg之環境準備(二)Oracle
- kubernetes實踐之四十:Pod的升級與回滾
- 一步一步搭建11gR2 rac+dg之配置單例項的DG(八)單例
- 【前端詞典】5 種滾動吸頂實現方式的比較[效能升級版]前端
- Oracle 11GR2 Duplicate from BackupOracle
- 1分鐘搞定 Nginx 版本的平滑升級與回滾Nginx
- 三級 NestedScroll 巢狀滾動實踐巢狀
- 【kingsql分享】Oracle 18c RAC補丁升級實戰【DBRU】SQLOracle
- 關閉chrome自動升級的教程 chrome如何取消自動升級Chrome
- ABP Framework 手動升級指南:從6.0.1升級到7.0.0Framework
- Solaris 10.5 安裝Oracle 11gR2Oracle
- 靜默方式安裝11gR2
- iOS11.4.1 beta2更新升級攻略 iOS11.4.1 beta2怎麼升級iOS
- 【Oracle19c】Oracle19c RAC 升級 ru:19.3-19.6Oracle
- vue2.x自定義虛擬滾動條|vue美化滾動條元件VscrollVue元件
- CentOs下手動升級node版本CentOS