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 out-of-place 滾動升級(1)
- ORACLE RAC 的滾動升級Oracle
- 【RAC】11gR2 rac 上滾動安裝/回退補丁
- [譯] Elasticsearch 滾動升級Elasticsearch
- 資料庫升級之-Dataguard滾動升級資料庫
- 11gR2 RAC ASM 啟動ASM
- 滾動升級(rolling upgrade) Oracle 10g RACOracle 10g
- 入門Kubernetes - 滾動升級/回滾
- 【邏輯DG滾動升級三】ORACLE11204 邏輯DG滾動升級至12C---正式升級Oracle
- 滴滴HBase大版本滾動升級之旅
- 11gR2 RAC ASM啟動過程ASM
- Oracle RAC 手動升級 11.2.0.3.4Oracle
- 使用SQL Apply實現滾動升級SQLAPP
- 安裝11gr2 RAC
- 11gR2 RAC修改IP
- Oracle 11gR2 RAC的關閉和啟動Oracle
- ORACLE 10gR2 RAC升級至10.2.0.4Oracle 10g
- oracle 11gr2 rac 安裝Oracle
- 探索Oracle之資料庫升級七 11gR2 to 12c 升級完成後插入PDBOracle資料庫
- 【邏輯DG滾動升級二】ORACLE11204 邏輯DG滾動升級至12C---DG端前期準備Oracle
- rac 升級crs 升級資料庫軟體,升級資料庫資料庫
- ORACLE 滾動升級(Rolling Upgrades)介紹Oracle
- Oracle 11gR2 RAC修改SCAN IPOracle
- 11gr2 rac 基本管理命令(一)
- 【RAC】11gR2 新特性: Rebootless RestartbootREST
- 11gr2 rac常用命令
- 【邏輯DG滾動升級一】ORACLE11204 邏輯DG滾動升級至12C---生產端前期準備Oracle
- oracle 10 rac 升級 10.2.0.1升級到10.2.0.5Oracle
- oracle 10.2.0.1 rac 升級到10.2.0.4 rac時,dbua升級的元件列表Oracle元件
- 【RAC安裝】 AIX下安裝Oracle 11gR2 RACAIOracle
- 11gR2 RAC手動新增節點資料庫例項資料庫
- 14 使用DBMS_ROLLING 執行滾動升級
- oracle 10g rac升級Oracle 10g
- Oracle RAC 11gR2開啟歸檔Oracle
- How to create and relocate an 11gr2 RAC DATABASE SERVICEDatabase
- Oracle 11gR2 RAC ORA-00845Oracle
- Oracle 11gR2 RAC修改SCAN IP地址Oracle
- How to modify Public ip and vip In 11gr2 Rac