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时使用
- 大小: 27.8 KB
分享到:
相关推荐
- **11.2.0.3.4** (14275605): 数据库补丁集更新11.2.0.3.4(包括2012年10月的CPU) 每一条记录都包含了一个补丁号码和对该补丁集的简要描述。例如,11.2.0.3.7的补丁号码为16619892,这意味着它是针对11.2.0.3版本...
Patch 21068553: OJVM PATCH SET UPDATE 11.2.0.3.4 Bugs Resolved by This Patch 11936460 ERRORS WHEN JAVAVM JIT CALLS METHODS WITH MANY ARGUMENTS 12658755 ORA-7445 [EOACCESS_IU()+1412] COMPILING JAVA ...
google-glog 0.3.4 repository moved from code.google.com/p/google-glog to github.com/google/glog fixes for latest MSVS add libc++ support fix build issue in demangle.cc add callback for ...
如果需要将Oracle RAC环境升级到更高版本,如11.2.0.3.4,应遵循Oracle官方提供的升级指南,逐步更新Grid Infrastructure和数据库软件。 ### 七、创建RAC数据库 完成软件安装后,可以利用DBCA工具或SQL*Plus等方法...
在HTML文件中引入`sockjs-0.3.4.min.js`后,可以创建一个SockJS实例并监听事件: ```html <!DOCTYPE html> <script src="sockjs-0.3.4.min.js"> var socket = new SockJS('http://yourserver.com/echo'); ...
在压缩包文件"SWinFlash2[1].0.3.4"中,包含了SWinFlash软件的安装程序或执行文件,以及可能的更新文件和相关文档。用户需要先解压该文件,然后运行SWinFlash程序,按照提示进行BIOS的刷新操作。为了确保安全,建议...
资源分类:Python库 所属语言:Python 资源全名:g1879-0.3.4.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
"cri-dockerd-0.3.4-3.el7.x86-64.rpm" 是一个用于Linux操作系统的软件包,它属于容器运行时接口(Container Runtime Interface, CRI)的一部分,专为Docker设计。这个软件包的版本是0.3.4,构建时的体系结构是x86_...
标题中的"PyPI 官网下载 | dossier.fc-0.3.4.tar.gz"表明这是一个在Python Package Index(PyPI)官方平台上发布的软件包。PyPI是Python开发者发布和分享自己编写的Python库的地方,方便其他用户安装和使用。dossier...
rpmforge-release-0.3.4-1.el4.rf.i386.rpm
jd-gui-0.3.4.osx.i686
DynamicDataDisplay_v0.3.4.dll,官方下载V0.3.4版本源码,编译,去图例,WPF亲测可用
java运行依赖jar包
使用Google-glog时,开发者需要先将其源代码解压,例如在本例中,我们解压"google-glog_0.3.4.orig.tar.gz"得到glog-0.3.4目录。然后,按照官方文档的指示进行编译和安装。通常,这包括执行configure脚本,进行make...
java运行依赖jar包
资源分类:Python库 所属语言:Python 资源全名:extasy.coco-0.3.4rc4.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
使用devstack安装openstack需要的资源,容易因网络不好直接断掉导致安装失败,2022年1月19日,ubuntu 20.04,python3.8.10,pip 21.3.1,...cirros-0.3.4-x86_64-disk.img etcd-v3.3.12-linux-amd64.tar.gz get-pip.py
使用Flax 0.3.4时,首先需要解压`flax-0.3.4.tar.gz`,然后通过Python的`setup.py`脚本来安装。之后,就可以在自己的项目中导入Flax库,开始构建和训练深度学习模型了。 Flax与JAX的结合使用,使它在高性能计算领域...
资源来自pypi官网。 资源全名:infi.traceback-0.3.4-py2.7.egg