oracle 11g 单实例打11.2.0.3.4 P14275605 PSU
admin
2023-05-15 00:21:53
0
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/opatch3012-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/opatch3012-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/opatch3012-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__APPLY_.log
catbundle_PSU__GENERATE_.log

到此 PSU数据库升级完成

10.执行完catbundle.sql后,会在$ORACLE_HOME/rdbms/admin目录下生成
catbundle_PSU__APPLY.sql,catbundle_PSU__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时使用


相关内容

热门资讯

以军士兵集体丢掉武器抗命,大喊... 据凤凰卫视报道,以色列国防军一军事基地7月30日发生士兵抗命事件,约120名士兵抗议指挥官做法,将武...
蒋成华任商务部副部长 国务院任免国家工作人员。任命蒋成华为商务部副部长。免去蒋成华的商务部国际贸易谈判副代表职务。
伊朗驻华大使:在军事威胁下,不... 新华社北京7月31日电(记者刁慧琳) 伊朗驻华大使法兹里7月28日表示,伊美回到谈判桌的前提是美国必...
伊朗革命卫队在霍尔木兹海峡击中... 当地时间31日,伊朗伊斯兰革命卫队发布声明称,革命卫队海军当天在霍尔木兹海峡击中并扣留了两艘违反禁令...
美媒:特朗普,遇到了一个更强硬... 据《纽约时报》7月29日报道,就在特朗普总统看似放弃战事升级计划几天后,美国再次与伊朗交火。上周末,...
女子做气管镜时不幸身亡,丈夫称... 7月29日,西安刘先生反映妻子在当地医院做支气管镜检查时死亡,看监控时发现医生疑有违规操作。刘先生表...
全网“帮卖西瓜”,然后呢? 近日,河南部分地区西瓜滞销的消息在网上热度很高。很多地方也伸出援手:有景区收购千斤西瓜、免费赠予游客...
美媒:乌克兰袭击伊朗船只,险引... 据《纽约时报》7月28日报道,据伊朗和西方官员称,伊朗曾考虑攻击乌克兰的一个港口,以报复乌克兰对一艘...
20年里,他只画美女,用东方风... 迈进KIM在上海的工作室,迎面是一整墙的美女们。她们像是刚从一场时髦的沙龙里退场,或倚或立,眉宇间是...
Google在港推出AI代理G... 观点网讯:7月29日,Google在香港推出AI代理Gemini Spark,该代理可全天候在后台运...