11gR2 RAC out-of-place 滾動升級(2)

westzq1984發表於2013-08-04
-------------------------------------------
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. --&gt
<!-- Do not modify the contents of this file by hand. --&gt


   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

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/8242091/viewspace-767732/,如需轉載,請註明出處,否則將追究法律責任。

相關文章