oracle rac 打11.2.0.3.6补丁

一 准备工作
    要从11.2.0.3升级到11.2.0.3.0.6必须先升级opatch再升级集grid组件和数据库组件
   准备包:p16056266_112030_Linux-x86-64.zip
              p6880880_112000_Linux-x86-64.zip (opatch) 
   两个节点都先把opatch更新,grid 和oracle下都要更新
   检查是否可以滚动升级,一般看说明文档。

[grid@cqrac2 16056266]$ opatch query -is_rolling_patch
但如果这个补丁有多个目录,则会返回错误
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/11.2.0/grid
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/11.2.0/grid/oraInst.loc
OPatch version    : 11.2.0.3.4
OUI version       : 11.2.0.3.0
Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2013-07-22_15-15-08PM_1.log

Failed to load the patch object.  Possible causes are:
  The specified path is not an interim Patch shiphome
  Meta-data files are missing from the patch area
  Patch location = /opt/11.2.0.3/16056266
  Details = Input metadata files are missing.

Patch Location "/opt/11.2.0.3/16056266" doesn't point to a valid patch area.


二 停止dbconsole,升级步骤也很无聊,停一个节点,执行opatch,当提示要停一个节点时,启这个节点,再停第二个节点。
[oracle@rac1~] emctl stop dbconsole
su - root
解除锁定
[oracle@rac1~] srvctl stop instance -d cqrac -n cqrac1
$CRS_HOME/crs/install/rootcrs.pl -unlock
[root@cqrac1 16056266]# crsctl stop crs
su - grid
opatch napply -oh $GRID_HOME -local /home/oracle/tmp/16902043
由于这里用的是本地更新模式,第二个节点也得这么做,当然也可以不用本地模式,建议用。
su - oracle
[root@cqrac1 16056266]# opatch apply
Patching in rolling mode.


The node 
'cqrac2' will be patched next.


Please shutdown Oracle instances running 
out of this ORACLE_HOME on 'cqrac2'.
(Oracle Home 
= '/u01/app/oracle/product/11.2.0/db_1')

Is the node ready 
for patching? [y|n]
当出现这一步时,需要停掉第二个节点:
[grid@cqrac2 16056266]$ srvctl stop instance -d cqrac -n cqrac2
当升级完成,出现:

The node 'cqrac2' has been patched.  You can restart Oracle instances on it.

Composite patch 16056266 successfully applied.
OPatch Session completed with warnings.
Log file location: /u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2013-07-22_16-15-08PM_1.log

[grid@cqrac2 16056266]$ srvctl start instance -d cqrac -n cqrac2
[grid@cqrac2 16056266]$ srvctl status database -d cqrac
Instance cqrac1 is running on node cqrac1
Instance cqrac2 is running on node cqrac2
在一个节点上
cd /u01/app/oracle/product/11.2.0/db_1/rdbms/admin/
SQL> @catbundle.sql psu apply
SQL> QUIT
最后可以检查下:
select* from dba_registry_history;
或者lsinventory,这里注意一下就是在第二个节点用此种方法看不到信息。
[oracle@cqrac1 admin]$ opatch lsinventory
Oracle Interim Patch Installer version 
11.2.0.3.4
Copyright (c) 
2012, Oracle Corporation.  All rights reserved.


Oracle Home       : 
/u01/app/oracle/product/11.2.0/db_1
Central Inventory : 
/u01/app/oraInventory
   from           : 
/u01/app/oracle/product/11.2.0/db_1/oraInst.loc
OPatch version    : 
11.2.0.3.4
OUI version       : 
11.2.0.3.0
Log file location : 
/u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/opatch2013-07-22_16-46-45PM_1.log

Lsinventory Output file location : 
/u01/app/oracle/product/11.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2013-07-22_16-46-45PM.txt

--------------------------------------------------------------------------------
Installed Top
-level Products (1): 

Oracle Database 11g                                                  
11.2.0.3.0
There are 
1 products installed in this Oracle Home.


Interim patches (
1) :

Patch  
16056266     : applied on Mon Jul 22 16:20:57 CST 2013
Unique Patch ID:  
15962803
Patch description:  
"Database Patch Set Update : 11.2.0.3.6 (16056266)"
   Created on 
12 Mar 201302:14:47 hrs PST8PDT
Sub
-patch  14727310"Database Patch Set Update : 11.2.0.3.5 (14727310)"
Sub
-patch  14275605"Database Patch Set Update : 11.2.0.3.4 (14275605)"
Sub
-patch  13923374"Database Patch Set Update : 11.2.0.3.3 (13923374)"
Sub
-patch  13696216"Database Patch Set Update : 11.2.0.3.2 (13696216)"
Sub
-patch  13343438"Database Patch Set Update : 11.2.0.3.1 (13343438)"
   Bugs 
fixed:
     
13566938135939991035083214138130129195641356195113624984
     
13588248130807781391461313804294142589251287318313645875
     
14472647128802991466435514409183129987951446900813719081
     
13492735134968841285702714263036142630731373222613742433
     
16368108163144691290505813742434128496881295064413742435
     
13464002135344121287902713958038146139001258554312535346
     
12588744118776231378614212847466136490311398105112582664
     
12797765142629131292316813384182136125751346680113484963
     
14207163110631911377261813070939127974201304132416314467
     
16314468129763761170851013680405145897501302641013742437
     
13737746146441851374243813326736135965211300137916344871
     
130995779873405142756051374243698585391484181211715084
     
1623169914040433126620409703627126171231284511512764337
     
13354082144595521339710413913630129640671298361113550185
     
13810393127809831258361114546575134765831586201611840910
     
13903046158620171357265916294378137182791408834613657605
     
13448206163144661448067613419660136327171406328114110275
     
13430938134676831342022413812031145487631629983012646784
     
13616375140358251286146312834027158620211363280913377816
     
13036331147273101368554415862018134991281617538113584130
     
12829021158620191279430514546673127919811378748213503598
     
10133521127180901339943514023636138602011240111113257247
     
13362079141768791291723013923374142207251448067513524899
     
1355969797067921448067413916709130983181377313314076523
     
13340388133662021352855112894807134542101334343812748240
     
14205448133853461585308114273397129717751358270210242202
     
1303580413544396163823538547978142265991406279513035360
     
12693626133324391403878714062796129134741484140914390252
     
16314470133703301305916514062797140627941295985213358781
     
1234508212960925965961413699124145466381393642413338048
     
12938841126584111262082312656535140627931267892013038684
     
1406279213807411132502441259403215862022976135712612118
     
13742464140524741391182113457582135273231586202013910420
     
13502183127800981370533813696216148415581026366815862023
     
16056266158620241355440913645917131039131301140914063280



Rac system comprising of multiple nodes
  Local node 
= cqrac1
  Remote node 
= cqrac2

--------------------------------------------------------------------------------

OPatch succeeded.





posted on 2013-07-22 17:47 snowhill 阅读(1596) 评论(1)  编辑 收藏 引用 所属分类: 数据库-oracle

评论

# re: oracle rac 打11.2.0.3.6补丁 2015-12-15 23:20 菜鸡

你好你这里Is the node ready for patching? [y|n]后,停了二节点,一节点起了吗?如果没起这算是rolling吗?
rolling的话要怎么做?  回复  更多评论   


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

导航

公告

又一年...........

留言簿(3)

随笔分类(13)

文章分类(131)

文章档案(124)

c++

java

linux

oracle

常用软件

其他

网络配置

系统安全

音乐

搜索

最新评论

阅读排行榜