设为首页 收藏本站
查看: 681|回复: 0

[经验分享] Oracle 11g 单实例打11.2.0.3.4 P14275605 PSU补丁

[复制链接]

尚未签到

发表于 2016-7-24 10:45:22 | 显示全部楼层 |阅读模式
DSC0000.jpg
1.关闭所有instance

SQL> shutdown immediate

2.关闭所有监听

$[Oracle@ora_11g test01]$ lsnrctl stop

3.关闭所有后台sqlplus

[oracle@ora_11g 14275605]$ ps -ef | grep sqlplus

oracle  11823  6859  0 20:20 pts/2    00:00:00 grep sqlplus

4.进入14275605 psu 解压目录,确保14275605权限为oracle:oinstall

[oracle@ora_11g ~]$ cd /oinstall/14275605/

[oracle@ora_11g 14275605]$ pwd

/oinstall/14275605

[oracle@ora_11g 14275605]$ ls -al

drwxrwxr-x 6 oracle oinstall 4096 Oct 12 15:29 .

drwxr-xr-x 5 oracle oinstall 4096 Dec 17 20:00 ..

drwxr-xr-x 4 oracle oinstall 4096 Apr  4  2012 13343438

drwxrwxr-x 4 oracle oinstall 4096 Apr  4  2012 13696216

drwxrwxr-x 4 oracle oinstall 4096 Jun 13  2012 13923374

drwxrwxr-x 4 oracle oinstall 4096 Oct  4 09:38 14275605

-rwxr-xr-x 1 oracle oinstall 2871 Oct  4 09:38 patchmd.xml



5.检查OPATCH版本,如果版本过低需要到MOS下载最近的OPATCH psu号为为6880880

[oracle@ora_11g 14275605]$ $ORACLE_HOME/OPatch/opatch  version

OPatch Version: 11.2.0.3.0



OPatch succeeded.



6.检查是否有与14275605有冲突的PSU

[oracle@ora_11g 14275605]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./

Oracle Interim Patch Installer version 11.2.0.3.0

Copyright (c) 2012, Oracle Corporation.  All rights reserved.



PREREQ session



Oracle Home      : /opt/oracle/product/db_1

Central Inventory : /opt/oraInventory

  from          : /opt/oracle/product/db_1/oraInst.loc

OPatch version    : 11.2.0.3.0

OUI version      : 11.2.0.3.0

Log file location : /opt/oracle/product/db_1/cfgtoollogs/opatch/opatch2012-12-18_20-05-23PM_1.log



Invoking prereq "checkconflictagainstohwithdetail"



Prereq "checkConflictAgainstOHWithDetail" passed.



OPatch succeeded.





7.应用14275605 database PSU

[oracle@ora_11g 14275605]$ /opt/oracle/product/db_1/OPatch/opatch apply

Oracle Interim Patch Installer version 11.2.0.3.0

Copyright (c) 2012, Oracle Corporation.  All rights reserved.





Oracle Home      : /opt/oracle/product/db_1

Central Inventory : /opt/oraInventory

  from          : /opt/oracle/product/db_1/oraInst.loc

OPatch version    : 11.2.0.3.0

OUI version      : 11.2.0.3.0

Log file location : /opt/oracle/product/db_1/cfgtoollogs/opatch/opatch2012-12-18_20-09-24PM_1.log



Verifying environment and performing prerequisite checks...

OPatch continues with these patches:  13343438  13696216  13923374  14275605



Do you want to proceed? [y|n]

y

User Responded with: Y

All checks passed.

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:



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



Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.

(Oracle Home = '/opt/oracle/product/db_1')





Is the local system ready for patching? [y|n]

y

User Responded with: Y

Backing up files...

Applying sub-patch '13343438' to OH '/opt/oracle/product/db_1'



Patching component oracle.rdbms.rsf, 11.2.0.3.0...



Patching component oracle.rdbms, 11.2.0.3.0...



Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...



Verifying the update...

Applying sub-patch '13696216' to OH '/opt/oracle/product/db_1'



Patching component oracle.rdbms.rsf, 11.2.0.3.0...



Patching component oracle.rdbms, 11.2.0.3.0...



Patching component oracle.sdo.locator, 11.2.0.3.0...



Patching component oracle.sysman.console.db, 11.2.0.3.0...



Patching component oracle.sysman.oms.core, 10.2.0.4.4...



Verifying the update...

Applying sub-patch '13923374' to OH '/opt/oracle/product/db_1'

ApplySession: Optional component(s) [ oracle.network.cman, 11.2.0.3.0 ]  not present in the Oracle Home or a higher version is found.



Patching component oracle.rdbms.rsf, 11.2.0.3.0...



Patching component oracle.rdbms, 11.2.0.3.0...



Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...



Patching component oracle.network.rsf, 11.2.0.3.0...



Patching component oracle.network.listener, 11.2.0.3.0...



Patching component oracle.sysman.console.db, 11.2.0.3.0...



Verifying the update...

Applying sub-patch '14275605' to OH '/opt/oracle/product/db_1'

ApplySession: Optional component(s) [ oracle.precomp.lang, 11.2.0.3.0 ]  not present in the Oracle Home or a higher version is found.



Patching component oracle.network.client, 11.2.0.3.0...



Patching component oracle.network.rsf, 11.2.0.3.0...



Patching component oracle.precomp.common, 11.2.0.3.0...



Patching component oracle.rdbms, 11.2.0.3.0...



Patching component oracle.rdbms.dbscripts, 11.2.0.3.0...



Patching component oracle.rdbms.rman, 11.2.0.3.0...



Patching component oracle.rdbms.rsf, 11.2.0.3.0...



Patching component oracle.rdbms.util, 11.2.0.3.0...



Verifying the update...



OPatch found the word "warning" in the stderr of the make command.

Please look at this stderr. You can re-run this make command.

Stderr output:

ins_precomp.mk:19: warning: overriding commands for target `pcscfg.cfg'

/opt/oracle/product/db_1/precomp/lib/env_precomp.mk:2160: warning: ignoring old commands for target `pcscfg.cfg'

/opt/oracle/product/db_1/precomp/lib/ins_precomp.mk:19: warning: overriding commands for target `pcscfg.cfg'

/opt/oracle/product/db_1/precomp/lib/env_precomp.mk:2160: warning: ignoring old commands for target `pcscfg.cfg'





Composite patch 14275605 successfully applied.

OPatch Session completed with warnings.

Log file location: /opt/oracle/product/db_1/cfgtoollogs/opatch/opatch2012-12-18_20-09-24PM_1.log



OPatch completed with warnings.





8.进入admin目录,执行catbundle.sql脚本应用改变

[oracle@ora_11g 14275605]$ cd  $ORACLE_HOME/rdbms/admin

[oracle@ora_11g admin]$ sqlplus  / as sysdba



SQL> startup



SQL> @catbundle.sql psu apply



查询registry$history 来查看PSU级别



SQL>select substr(action_time,1,30) action_time,

    substr(id,1,8) id,

    substr(action,1,10) action,

    substr(version,1,8) version,

    substr(comments,1,20) comments

    from registry$history;



ACTION_TIME                    ID    ACTION    VERSION    COMMENTS

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

17-DEC-12 03.14.08.703547 PM  0    APPLY      11.2.0.3  Patchset 11.2.0.2.0

18-DEC-12 08.13.16.342146 PM  4    APPLY      11.2.0.3  PSU 11.2.0.3.4





9.在以下目录检查是否错误



$ORACLE_HOME/cfgtoollogs/catbundle

$ORACLE_BASE/cfgtoollogs/catbundle

日志格式如下:

catbundle_PSU_<database SID>_APPLY_<TIMESTAMP>.log

catbundle_PSU_<database SID>_GENERATE_<TIMESTAMP>.log



到此 PSU数据库升级完成



10.执行完catbundle.sql后,会在$ORACLE_HOME/rdbms/admin目录下生成

catbundle_PSU_<database SID>_APPLY.sql,catbundle_PSU_<database SID>_ROLLBACK.sql两个脚本



[oracle@ora_11g admin]$ ls -al catbundle_PSU_TEST01_*

-rw-r----- 1 oracle oinstall 1130 Dec 18 20:13 catbundle_PSU_TEST01_APPLY.sql

-rw-r----- 1 oracle oinstall 1139 Dec 18 20:13 catbundle_PSU_TEST01_ROLLBACK.sql



catbundle_PSU_TEST01_ROLLBACK.sql用于回滚PSU时使用

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-248551-1-1.html 上篇帖子: oracleclient连oracle库 报System.Data.OracleClient 需要 Oracle 客户端软件 8.1.7 或更高版本 下篇帖子: 新手入门:Oracle 10G服务器安装图解
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表