你好,游客 登录 注册 搜索
背景:
阅读新闻

DB and RAC(11.2.0.3 ) Patch Set Update(11.2.0.3.6 )

[日期:2013-05-29] 来源:Linux社区  作者:jyjxs [字体:大 中 小]

RAC 的PSU升级
 
  下载p16083653_112030_Linux-x86-64.zip,其中包含GI和DB的补丁。
 
2.1  升级准备
 
[root@oradb1 dbhome_1]# unzip p16083653_112030_Linux-x86-64.zip
 
[root@oradb1 dbhome_1]#chown 777 -R ./p16083653
 
[root@oradb1 dbhome_1]#cd p16083653
 [root@oradb1 p16083653]# ls
 16056266  16315641  atp_lfp  bundle.xml  README.html  README.txt
 
[Oracle@oradb1 ~]$ /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch version
 Invoking OPatch 11.2.0.1.7
 
OPatch Version: 11.2.0.1.7
 
OPatch succeeded.
 

--可以看到OPatch 是11.2.0.1.7 当时有点蒙,我安装的11.2.0.3.0啊!怎么会是这个文档版本,文档上说安装11.2.0.3.6需要OPatch的版本为
 11.2.0.3.4以上的Opatch。
 --下载p6880880_112000_Linux-x86-64.zip最新的Opatch,Patch 6880880总是会提供最新的Opatch的。
 
1、Opach升级,将ORACLE_HOME/OPatch 目录中的内容mv到一个备份文件夹中
 2、将p6880880_112000_Linux-x86-64.zip 存放到ORACLE_HOME目录下,注意权限问题chown oracle:oinstall p6880880_112000_Linux-x86-64.zip
 3、[oracle@oradb1 dbhome_1]$ unzip p6880880_112000_Linux-x86-64.zip
4、[oracle@oradb1 OPatch]$ /u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch version
      OPatch Version: 11.2.0.3.4
 
    OPatch succeeded.
 
2.2  ocm.rsp准备
 
--静默安装升级模式需要OCM的回应文件,GRID_HOME/OPatch/ocm.rsp
 --这个OCM在安装11.2.0.3.0版本的时候,不管windows还是Linux从来没安装成。Oracle Configureation Manger(OCM)就是一个为oracle软件支持
 提供监控信息的工具。软件支持总是被我忽略掉,因为不会支持外网的。
 --还好有办法创建这个文件
 
% $ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output /u01/app/oracle/unconfig.rsp
 
Provide your email address to be informed of security issues, install and
 initiate Oracle Configuration Manager. Easier for you if you use your My
 Oracle Support Email address/User Name.
 Visit http://www.oracle.com/support/policies.html for details.
 Email address/User Name:
 
<<<< Press Enter/Return key and don't provide any input >>>>
 
You have not provided an email address for notification of security issues.
 Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Y <<< type Y/Yes >>>
 The OCM configuration response file (/u02/unconfig.rsp) was successfully created. <<
 
Note: we can use this response file for other similar ORACLE_HOME (Single OR GRID infra)
 ***************************************************************************************************************************************
 
% $ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output /u02/config.rsp
 
Provide your email address to be informed of security issues, install and
 initiate Oracle Configuration Manager. Easier for you if you use your My
 Oracle Support Email address/User Name.
 Visit http://www.oracle.com/support/policies.html for details.
 Email address/User Name: <Provide Oracle Metalink Email address Example: user@oracle.com >
 
Password (optional): <Password will be verified if provided / Press return/Enter Key>
 The OCM configuration response file (/u02/config.rsp) was successfully created.  <<<
 
 Note: we can use this response file for other similar ORACLE_HOME (Single OR GRID infra)
 
--此时需要连接网络输入MOS账号
 

While applying CPU
 % opatch napply -silent -ocmrf /u02/config.rsp
While applying  PSU
 % opatch apply -silent -ocmrf /u02/unconfig.rsp
 While using opatch auto (for Grid infrastruture)
 % opatch  auto  -silent  -ocmrf /u02/config.rsp
 
 
 
2.3  安装前的检查
 
--确认安装项目
 [grid@oradb1 OPatch]$ sh opatch lsinventory -detail -oh /u01/app/11.2.0/grid/
 如果有OPatch succeeded. 最后可以安装补丁
 
--冲突检查
 --Grid用户检查
 [grid@oradb1 OPatch]$ sh opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir ../p16083653/16315641/ -oh /u01/app/11.2.0/grid/
 Oracle Interim Patch Installer version 11.2.0.3.4
 Copyright (c) 2012, Oracle Corporation.  All rights reserved.
 
PREREQ session
 
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-05-24_13-25-23PM_1.log
 
Invoking prereq "checkconflictagainstohwithdetail"
 
Prereq "checkConflictAgainstOHWithDetail" passed.
 
OPatch succeeded.
 --oracle 用户检查
 [oracle@oradb1 OPatch]$ sh opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/app/11.2.0/grid/p16083653/16056266/ -oh /u01/app/oracle/product/11.2.0/dbhome_1/
 Oracle Interim Patch Installer version 11.2.0.3.4
 Copyright (c) 2012, Oracle Corporation.  All rights reserved.
 
PREREQ session
 
Oracle Home      : /u01/app/oracle/product/11.2.0/dbhome_1
 Central Inventory : /u01/app/oraInventory
    from          : /u01/app/oracle/product/11.2.0/dbhome_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/dbhome_1/cfgtoollogs/opatch/opatch2013-05-24_14-22-14PM_1.log
 
Invoking prereq "checkconflictagainstohwithdetail"
 
Prereq "checkConflictAgainstOHWithDetail" passed.
 
OPatch succeeded.
 
--两个节点分别做
 
--如果存在EM Agent的情况停止服务
 <ORACLE_HOME>/bin/emctl stop dbconsole
 
2.4  补丁应用
 
--为Oracle RAC Database Homes 和GI 一起安装PSU
 --如果数据库家目录没有被共享并且ACFS没有被配置过
 --root用户执行
 # opatch auto <UNZIPPED_PATCH_LOCATION> -ocmrf <ocm response file>
 
 
 
或者分别执行
 --更新GI,然后在另一节点上同样执行
 # opatch auto <UNZIPPED_PATCH_LOCATION> -oh <GI_HOME> -ocmrf <ocm response file>
 --更行DB,同样在另一节点上执行
 
--更新之后执行
 SQL> CONNECT / AS SYSDBA
 SQL> STARTUP
 SQL> @catbundle.sql psu apply
 SQL> QUIT
 

2.5  更新后查看
 
SQL> select action,comments from registry$history;
 ACTION          COMMENTS
 --------------- --------------------
 APPLY          Patchset 11.2.0.2.0
 APPLY          Patchset 11.2.0.2.0
 APPLY          PSU 11.2.0.3.6
 3 rows selected.
 SQL> select * from v$version;
 BANNER
 --------------------------------------------------------------------------------
 Oracle Database11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
 PL/SQL Release 11.2.0.3.0 - Production
 CORE 11.2.0.3.0 Production
 TNS for Linux: Version 11.2.0.3.0 - Production
 NLSRTL Version 11.2.0.3.0 - Production
 5 rows selected.
 
SQL>  select comp_name,version,status from dba_registry;
 COMP_NAME                      VERSION    STATUS
 ------------------------------ ---------- ---------------
 OWB                            11.2.0.3.0 VALID
 Oracle Application Express    3.2.1.00.12 VALID
 Oracle Enterprise Manager      11.2.0.3.0 VALID
 OLAP Catalog                  11.2.0.3.0 VALID
 Spatial                        11.2.0.3.0 VALID
 Oracle Multimedia              11.2.0.3.0 VALID
 Oracle XML Database            11.2.0.3.0 VALID
 Oracle Text                    11.2.0.3.0 VALID
 Oracle Expression Filter      11.2.0.3.0 VALID
 Oracle Rules Manager          11.2.0.3.0 VALID
 Oracle Workspace Manager      11.2.0.3.0 VALID
 Oracle Database Catalog Views  11.2.0.3.0 VALID
 Oracle Database Packages and T 11.2.0.3.0 VALID
 ypes
 JServer JAVA Virtual Machine  11.2.0.3.0 VALID
 Oracle XDK                    11.2.0.3.0 VALID
 Oracle Database Java Packages  11.2.0.3.0 VALID
 OLAP Analytic Workspace        11.2.0.3.0 VALID
 Oracle OLAP API                11.2.0.3.0 VALID
 Oracle Real Application Clusters 11.2.0.3.0 VALID
 

--结果并不在V$version和dba_registry视图中体现

linux
相关资讯       rac 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款