Windows 2003 -32bit oracle 11.2.0.1.0 optach apply
实验内容:Windows2003 -32bit oracle 11.2.0.1.0 安装补丁11.2.0.1 Patch 15
1. 检查数据库目前版本信息:
2. 该版本中的OPatch目录中没有可执行文件,需要到oracle官方网站下载,请查找并下载p6880880_112000_MSWIN-i386-32.zip,将源OPatch目录变更名字,将刚下载好的文件解压到此。
3. 检查OPatch软件版本及相关信息
4. 将下载好的补丁文件上传至服务器,并且解压缩。
5. 关闭数据库(所有服务项),最好对数据库软件进行备份。注:关闭service里面,还有一个Distributed Transaction Coordinator 这个不是Oracle的服务,也需要关闭。本次我操作未关闭也没有问题,如果碰到问题可以把此服务关闭后再操作。
6. 设置opatch直接使用的path环境变更(此步骤可提前操作)
可以将path目录加上opatch路径,后继便于操作,使用cmd方式。注(%ORACLE_HOME%需要改成你的实际目录,这里的环境其实就是< D:\app\Administrator\product\11.2.0\dbhome_1 > 只有当前窗口生效。
图形方式:右键点击我的电脑-->属性-->高级-->环境变量-->path-->编辑-->在变量值最后加上opatch软件目录。注此操作全局生效。
7. 安装补丁
进入到待安装补丁目录,执行opatch apply,需要按要求输入两个y。
D:\13329696>opatch apply
Oracle 中间补丁程序安装程序版本 11.2.0.3.6
版权所有 (c) 2013, Oracle Corporation。保留所有权利。
Oracle Home : D:\app\ADMINI~1\product\112~1.0\dbhome_1
Central Inventory : C:\Program Files\Oracle\Inventory
from : n/a
OPatch version : 11.2.0.3.6
OUI version : 11.2.0.1.0
Log file location : D:\app\ADMINI~1\product\112~1.0\dbhome_1\cfgtoollogs\opatch\
13329696_Jan_20_2015_00_12_22\apply2015-01-20_00-12-22上午_1.log
Applying interim patch '13329696' to OH 'D:\app\ADMINI~1\product\112~1.0\dbhome_
1'
Verifying environment and performing prerequisite checks...
Patch 13329696: Optional component(s) missing : [ oracle.ntoledb.odp_net_2, 11.2
.0.1.0 ] , [ oracle.rdbms.ic, 11.2.0.1.0 ] , [ oracle.has.crs, 11.2.0.1.0 ]
All checks passed.
提供电子邮件地址以用于接收有关安全问题的通知, 安装 Oracle Configuration Manager
并启动它。如果您使用 My Oracle
Support 电子邮件地址/用户名, 操作将更简单。
有关详细信息, 请访问 http://www.oracle.com/support/policies.html。
电子邮件地址/用户名:
尚未提供电子邮件地址以接收有关安全问题的通知。
是否不希望收到有关安全问题 (是 [Y], 否 [N]) [N] 的通知: y
请关闭本地系统上在此 ORACLE_HOME 之外运行的 Oracle 实例。
(Oracle 主目录 = 'D:\app\ADMINI~1\product\112~1.0\dbhome_1')
本地系统是否已准备打补丁? [y|n]
y
User Responded with: Y
Backing up files...
正在为组件 oracle.rdbms.rsf, 11.2.0.1.0 打补丁...
正在为组件 oracle.rdbms, 11.2.0.1.0 打补丁...
正在为组件 oracle.rdbms.util, 11.2.0.1.0 打补丁...
正在为组件 oracle.rdbms.dbscripts, 11.2.0.1.0 打补丁...
正在为组件 oracle.rdbms.plsql, 11.2.0.1.0 打补丁...
正在为组件 oracle.xdk.rsf, 11.2.0.1.0 打补丁...
正在为组件 oracle.network.rsf, 11.2.0.1.0 打补丁...
正在为组件 oracle.oraolap, 11.2.0.1.0 打补丁...
正在为组件 oracle.has.db, 11.2.0.1.0 打补丁...
正在为组件 oracle.has.rsf, 11.2.0.1.0 打补丁...
正在为组件 oracle.javavm.server, 11.2.0.1.0 打补丁...
正在为组件 oracle.network.listener, 11.2.0.1.0 打补丁...
正在为组件 oracle.odbc.ic, 11.2.0.1.0 打补丁...
正在为组件 oracle.oraolap.api, 11.2.0.1.0 打补丁...
正在为组件 oracle.owb.rsf, 11.2.0.1.0 打补丁...
正在为组件 oracle.precomp.common, 11.2.0.1.0 打补丁...
正在为组件 oracle.ctx, 11.2.0.1.0 打补丁...
正在为组件 oracle.has.common, 11.2.0.1.0 打补丁...
正在为组件 oracle.rdbms.rsf.ic, 11.2.0.1.0 打补丁...
正在为组件 oracle.rdbms.oci, 11.2.0.1.0 打补丁...
正在为组件 oracle.has.common.cvu, 11.2.0.1.0 打补丁...
正在为组件 oracle.has.deconfig, 11.2.0.1.0 打补丁...
正在为组件 oracle.swd.oui.core, 11.2.0.1.0 打补丁...
正在为组件 oracle.ntoledb, 11.2.0.1.0 打补丁...
正在为组件 oracle.rdbms.deconfig, 11.2.0.1.0 打补丁...
正在为组件 oracle.oo4o, 11.2.0.1.0 打补丁...
正在为组件 oracle.sysman.agent, 10.2.0.4.2 打补丁...
正在为组件 oracle.precomp.rsf, 11.2.0.1.0 打补丁...
正在为组件 oracle.precomp.common, 11.2.0.1.0 打补丁...
正在为组件 oracle.sysman.console.db, 11.2.0.1.0 打补丁...
正在为组件 oracle.sysman.oms.core, 10.2.0.4.2 打补丁...
正在为组件 oracle.sysman.plugin.db.main.repository, 11.2.0.1.0 打补丁...
正在为组件 oracle.rdbms.dv.oc4j, 11.2.0.1.0 打补丁...
正在为组件 oracle.ldap.rsf, 11.2.0.1.0 打补丁...
正在为组件 oracle.ldap.rsf.ic, 11.2.0.1.0 打补丁...
正在为组件 oracle.rdbms.dv, 11.2.0.1.0 打补丁...
正在为组件 oracle.nlsrtl.rsf, 11.2.0.1.0 打补丁...
正在为组件 oracle.sdo.locator, 11.2.0.1.0 打补丁...
Verifying the update...
Patch 13329696 successfully applied
Log file location: D:\app\ADMINI~1\product\112~1.0\dbhome_1\cfgtoollogs\opatch\1
3329696_Jan_20_2015_00_12_22\apply2015-01-20_00-12-22上午_1.log
OPatch succeeded.
D:\13329696>
8. 再次检查补丁安装成功与否,使用opatch lsinventory命令
D:\13329696>opatch lsinventory
Oracle 中间补丁程序安装程序版本 11.2.0.3.6
版权所有 (c) 2013, Oracle Corporation。保留所有权利。
Oracle Home : D:\app\ADMINI~1\product\112~1.0\dbhome_1
Central Inventory : C:\Program Files\Oracle\Inventory
from : n/a
OPatch version : 11.2.0.3.6
OUI version : 11.2.0.1.0
Log file location : D:\app\ADMINI~1\product\112~1.0\dbhome_1\cfgtoollogs\opatch\
opatch2015-01-20_00-19-50上午_1.log
Lsinventory Output file location : D:\app\ADMINI~1\product\112~1.0\dbhome_1\cfgt
oollogs\opatch\lsinv\lsinventory2015-01-20_00-19-50上午.txt
--------------------------------------------------------------------------------
已安装的顶级产品 (1):
Oracle Database 11g 11.2.0.1.0
此 Oracle 主目录中已安装 1 个产品。
中间补丁程序 (1) :
Patch 13329696 : applied on Tue Jan 20 00:13:16 CST 2015
Unique Patch ID: 14265797
Created on 17 Nov 2011, 01:42:23 hrs PST8PDT
Bugs fixed:
13329696, 12759946, 12672969, 8509848, 12345717, 9829397, 9654402
12595606, 8794599, 12572417, 9885553, 11678127, 12794025, 10265545
12838160, 12400751, 10149919, 12591120, 9842573, 8711391, 12371955
10093383, 11828358, 12655301, 8860207, 11694194, 10350832, 12541628
12429528, 9554332, 12363485, 10625485, 9268192, 9935787, 10205230
12412745, 12393431, 12341758, 10130392, 11853331, 6055658, 11723722
11735927, 11772687, 9902590, 9871302, 10132870, 7365514, 10422748
10180190, 9825461, 11883240, 9368502, 9705984, 10302581, 10130633
8331063, 10237271, 10082277, 10054513, 9695366, 8889137, 10383833
11076894, 10220194, 10401327, 9042035, 10235640, 9564886, 10104492
9302054, 10374238, 9613016, 10432044, 8772524, 10357603, 9243068, 9448277
8672862, 9725141, 9328390, 9275876, 9033671, 10154951, 9890701, 10352691
10086495, 10155684, 10156303, 10157313, 10201938, 10220033, 10278864
8332021, 8771916, 8800514, 8874588, 8946311, 9003145, 9115829, 9131242
9240305, 9398685, 9469117, 9569029, 9751158, 8446618, 10245350, 10052141
10116578, 10134677, 10140809, 10157402, 10172454, 7662438, 8397251
8499180, 8522654, 9090269, 9234660, 9255996, 9395237, 9461782, 9668086
9703463, 9736701, 9795214, 9823660, 9826065, 9866728, 9916260, 9972680
9818631, 10225758, 10155837, 10030675, 10080167, 10132342, 6866145
8790561, 8984021, 9096076, 9137871, 9193873, 9277263, 9303326, 9457109
9457492, 9472669, 9539440, 9659614, 9845644, 9903704, 9920616, 9930649
10100100, 8780369, 8866808, 8883722, 9004242, 9021724, 9028780, 9049725
9058865, 9212844, 9243912, 9306119, 9350527, 9387574, 9399991, 9413827
9488247, 9498108, 9500147, 9532911, 9544104, 9548269, 9578533, 9593656
9594372, 9706490, 9721013, 9734300, 9746699, 9764806, 9770451, 9778018
9799342, 9828495, 9881328, 9932143, 10080735, 10082803, 9966925, 8574851
8790837, 8802195, 8863249, 8981681, 8993052, 9198871, 9217088, 9300021
9369183, 9442189, 9500046, 9648040, 9657283, 9685694, 9772171, 9847494
9888297, 9135679, 9495697, 9081430, 6855031, 8793567, 9286015, 9442015
9504322, 9535951, 8684595, 9663844, 9539556, 7452759, 9196440, 8893949
9011590, 9382101, 9775337, 9083671, 9324531, 8654177, 8569325, 8686932
9271344, 8434467, 6086930, 9024737, 9047975, 9056912, 9069046, 9336476
9355794, 9495669, 8467123, 8663644, 8855396, 8886819, 8951812, 8467825
9187546, 9102860, 9109487, 8546356, 9170308, 8725282, 9308296, 9406607
8720802, 9711859, 9531984, 9482399, 9471411, 9390484, 9362218, 9320786
9320130, 9302343, 9290526, 9231605, 8554900, 9490054, 9389304, 8783690
9577583, 9736229, 9259407, 8602840, 9469133, 8682102, 9693101, 9898160
9669478, 9736864, 7327630, 8268775, 8505803, 8544696, 8565708, 8633358
8664189, 8702535, 8755082, 8771556, 8783301, 8790767, 8799099, 8803762
8839301, 8856478, 8865718, 8872096, 8909984, 8974548, 8981059, 8991997
9023338, 9032717, 9057443, 9119194, 9145181, 9147830, 9165206, 9170608
9216806, 9219338, 9227662, 9255542, 9275072, 9321701, 9341448, 9363145
9363384, 9391025, 9399090, 9467635, 9488887, 9637033, 9711600, 9713537
9714832, 9719541, 9736835, 7028305, 7519406, 8330783, 8431487, 8477973
8496830, 8581792, 8607693, 8643160, 8650719, 8717461, 8730312, 8774868
8813536, 8815639, 8822531, 8822832, 8834425, 8875671, 8879707, 8891929
8914054, 8918433, 9001453, 9002336, 9007859, 9010222, 9011088, 9015983
9027691, 9035113, 9041943, 9050716, 9053676, 9054253, 9057754, 9067282
9068088, 9093300, 9120088, 9145541, 9167285, 9189070, 9202351, 9271246
9272086, 9294110, 9298307, 9316329, 9378712, 9395500, 9408883, 9467727
9504129, 9561609, 9584383, 9657157, 9661684, 9595784, 8405205, 8543770
8856467, 8998066, 8897784, 9004697, 9007836, 9036013, 9037724, 9047110
9318214, 8328200, 8570322, 8629716, 8761974, 8857211, 8885539, 9035438
8971021, 8685327, 8707506, 8866903, 8771297, 8772028, 8796511
--------------------------------------------------------------------------------
OPatch succeeded.
9. 打开数据库所有服务并检验数据库状态
总结:此次在 windows server2003 上打补丁,未见异常,需要下载补丁及 opatch 软件时注意的是操作系统是 32 位还是 64 位。还有就是对数据库软件进行备份,这次测试实验未进行备份,生产环境可不能马虎大意。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26148431/viewspace-1407724/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26148431/viewspace-1407724/