设为首页 加入收藏

TOP

Oracle 11gR2单实例数据库补丁升级记录(二)
2015-11-10 12:17:44 来源: 作者: 【 】 浏览:24
Tags:Oracle 11gR2 实例 数据库 补丁升级 记录
/etc/xml/ShiphomeDirectoryStructure.xml?


进入解压目录,注意:要确保补丁文件的文件权限设置。


[oracle@XXX-PROD-DB ~]$ cd /upload/patch/


[oracle@XXX-PROD-DB patch]$ ls -l


total 282776


drwxr-xr-x. 4 oracle oinstall? ? ? 4096 Oct 20? 2014 19852360


-rw-r--r--. 1 root? root? ? ? ? 407030 Jul 15 09:03 p19852360_112040_Generic.zip


[oracle@XXX-PROD-DB patch]$ cd 19852360/


[oracle@XXX-PROD-DB 19852360]$ ls -l


total 20


drwxr-xr-x. 4 oracle oinstall? 4096 Oct 20? 2014 etc


drwxr-xr-x. 3 oracle oinstall? 4096 Oct 20? 2014 files


-rw-rw-r--. 1 oracle oinstall 10858 Oct 28? 2014 README.txt


[oracle@XXX-PROD-DB 19852360]$


注意:无论DBA经验多丰富,在进行补丁的时候,一定要参考每个补丁的readme.txt文件,遵循官方步骤进行操作。用成熟技术、用官方步骤是我们确保成功的重要原则。


首先,进行补丁先决条件检查。


[oracle@XXX-PROD-DB 19852360]$ opatch prereq CheckConflictAgainstOHWithDetail -ph ./


Oracle Interim Patch Installer version 11.2.0.3.10


Copyright (c) 2015, 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.10


OUI version? ? ? : 11.2.0.4.0


Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/opatch2015-08-04_10-22-39AM_1.log


Invoking prereq "checkconflictagainstohwithdetail"


Prereq "checkConflictAgainstOHWithDetail" passed.


OPatch succeeded.


没有发现问题,可以直接进行补丁。


[oracle@XXX-PROD-DB 19852360]$ opatch apply


Oracle Interim Patch Installer version 11.2.0.3.10


Copyright (c) 2015, Oracle Corporation.? All rights reserved.


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.10


OUI version? ? ? : 11.2.0.4.0


Log file location : /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/19852360_Aug_04_2015_10_21_09/apply2015-08-04_10-21-09AM_1.log


Applying interim patch '19852360' to OH '/u01/app/oracle/product/11.2.0/dbhome_1'


Verifying environment and performing prerequisite checks...


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


Backing up files...


Patching component oracle.dbjava.jdbc, 11.2.0.4.0...


Patching component oracle.dbjava.ic, 11.2.0.4.0...


Verifying the update...


Patch 19852360 successfully applied


Log file location: /u01/app/oracle/product/11.2.0/dbhome_1/cfgtoollogs/opatch/19852360_Aug_04_2015_10_21_09/apply2015-08-04_10-21-09AM_1.log


OPatch succeeded.


3、补丁20299013_112040


解压补丁文件:


[root@XXX-PROD-DB patch]# unzip p20299013_112040_Linux-x86-64.zip?


? inflating: 20299013/18522509/files/lib/libserver11.a/qerel.o?


? inflating: 20299013/18522509/files/lib/libserver11.a/knahs.o?


(篇幅原因,有省略……)?


? inflating: 20299013/18522509/etc/config/actions.xml?


? inflating: 20299013/18522509/etc/config/inventory.xml?


? inflating: PatchSearch.xml


设置owner权限。


[root@XXX-PROD-DB patch]# chown -R oracle:oinstall 20299013/


[root@XXX-PROD-DB patch]# ls -l


total 28

首页 上一页 1 2 3 4 5 6 下一页 尾页 2/6/6
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇十个正确使用 Redis 的技巧 下一篇通过Oracle 11g 逻辑standby实现B..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: