0

0

Oracle 11g 单实例打11.2.0.3.4 P14275605 PSU补丁

php中文网

php中文网

发布时间:2016-06-07 16:49:32

|

1216人浏览过

|

来源于php中文网

原创

Oracle 11g 单实例打11.2.0.3.4 P14275605 PSU补丁

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

--------------------------------------分割线 --------------------------------------

在CentOS 6.4下安装Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虚拟机中安装步骤

Debian 下 安装 Oracle 11g XE R2

--------------------------------------分割线 --------------------------------------

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

 

AISEO ART
AISEO ART

AISEO平台的艺术图片生成器

下载

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 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__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时使用

本文永久更新链接地址:

linux

热门AI工具

更多
DeepSeek
DeepSeek

幻方量化公司旗下的开源大模型平台

豆包大模型
豆包大模型

字节跳动自主研发的一系列大型语言模型

通义千问
通义千问

阿里巴巴推出的全能AI助手

腾讯元宝
腾讯元宝

腾讯混元平台推出的AI助手

文心一言
文心一言

文心一言是百度开发的AI聊天机器人,通过对话可以生成各种形式的内容。

讯飞写作
讯飞写作

基于讯飞星火大模型的AI写作工具,可以快速生成新闻稿件、品宣文案、工作总结、心得体会等各种文文稿

即梦AI
即梦AI

一站式AI创作平台,免费AI图片和视频生成。

ChatGPT
ChatGPT

最最强大的AI聊天机器人程序,ChatGPT不单是聊天机器人,还能进行撰写邮件、视频脚本、文案、翻译、代码等任务。

相关专题

更多
主流快递单号查询入口 实时物流进度一站式追踪专题
主流快递单号查询入口 实时物流进度一站式追踪专题

本专题聚合极兔快递、京东快递、中通快递、圆通快递、韵达快递等主流物流平台的单号查询与运单追踪内容,重点解决单号查询、手机号查物流、官网入口直达、包裹进度实时追踪等高频问题,帮助用户快速获取最新物流状态,提升查件效率与使用体验。

0

2026.02.02

Golang WebAssembly(WASM)开发入门
Golang WebAssembly(WASM)开发入门

本专题系统讲解 Golang 在 WebAssembly(WASM)开发中的实践方法,涵盖 WASM 基础原理、Go 编译到 WASM 的流程、与 JavaScript 的交互方式、性能与体积优化,以及典型应用场景(如前端计算、跨平台模块)。帮助开发者掌握 Go 在新一代 Web 技术栈中的应用能力。

1

2026.02.02

PHP Swoole 高性能服务开发
PHP Swoole 高性能服务开发

本专题聚焦 PHP Swoole 扩展在高性能服务端开发中的应用,系统讲解协程模型、异步IO、TCP/HTTP/WebSocket服务器、进程与任务管理、常驻内存架构设计。通过实战案例,帮助开发者掌握 使用 PHP 构建高并发、低延迟服务端应用的工程化能力。

0

2026.02.02

Java JNI 与本地代码交互实战
Java JNI 与本地代码交互实战

本专题系统讲解 Java 通过 JNI 调用 C/C++ 本地代码的核心机制,涵盖 JNI 基本原理、数据类型映射、内存管理、异常处理、性能优化策略以及典型应用场景(如高性能计算、底层库封装)。通过实战示例,帮助开发者掌握 Java 与本地代码混合开发的完整流程。

0

2026.02.02

go语言 注释编码
go语言 注释编码

本专题整合了go语言注释、注释规范等等内容,阅读专题下面的文章了解更多详细内容。

61

2026.01.31

go语言 math包
go语言 math包

本专题整合了go语言math包相关内容,阅读专题下面的文章了解更多详细内容。

52

2026.01.31

go语言输入函数
go语言输入函数

本专题整合了go语言输入相关教程内容,阅读专题下面的文章了解更多详细内容。

25

2026.01.31

golang 循环遍历
golang 循环遍历

本专题整合了golang循环遍历相关教程,阅读专题下面的文章了解更多详细内容。

10

2026.01.31

Golang人工智能合集
Golang人工智能合集

本专题整合了Golang人工智能相关内容,阅读专题下面的文章了解更多详细内容。

7

2026.01.31

热门下载

更多
网站特效
/
网站源码
/
网站素材
/
前端模板

精品课程

更多
相关推荐
/
热门推荐
/
最新课程
SQL 教程
SQL 教程

共61课时 | 3.7万人学习

Java 教程
Java 教程

共578课时 | 55.6万人学习

oracle知识库
oracle知识库

共0课时 | 0人学习

关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号