【opatch打补丁】oracle10.2.0.5.0升级10.2.0.5.9 for linux
https://wenku.baidu.com/view/c38702b56edb6f1afe001f59.html 这篇文章也不错,可参考
任务:oracle 10.2.0.5.0 打补丁升级为 oracle 10.2.0.5.9
环境:Oracle Linux Server release 6.4
一、 检查OPatch软件及数据库版本信息
[oracle@test OPatch]$ ./opatch version
Invoking OPatch 10.2.0.4.9
OPatch Version: 10.2.0.4.9
OPatch succeeded.
SQL> select * from v$version;
BANNER
----------------------------------------------------------------
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
PL/SQL Release 10.2.0.5.0 - Production
CORE 10.2.0.5.0 Production
TNS for Linux: Version 10.2.0.5.0 - Production
NLSRTL Version 10.2.0.5.0 – Production
[oracle@test ~]$ opatch lsinventory
Invoking OPatch 10.2.0.4.9
Oracle Interim Patch Installer version 10.2.0.4.9
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : /10g/app/oracle/product/10.2.0/dbhome_1
Central Inventory : /12c/app/oraInventory
from : /etc/oraInst.loc
OPatch version : 10.2.0.4.9
OUI version : 10.2.0.5.0
OUI location : /10g/app/oracle/product/10.2.0/dbhome_1/oui
Log file location : /10g/app/oracle/product/10.2.0/dbhome_1/cfgtoollogs/opatch/opatch2014-03-07_14-24-02PM.log
Patch history file: /10g/app/oracle/product/10.2.0/dbhome_1/cfgtoollogs/opatch/opatch_history.txt
Lsinventory Output file location : /10g/app/oracle/product/10.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2014-03-07_14-24-02PM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (2):
Oracle Database 10g 10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 4 10.2.0.5.0
There are 2 products installed in this Oracle Home.
There are no Interim patches installed in this Oracle Home.
--------------------------------------------------------------------------------
OPatch succeeded.
[oracle@test ~]$
二、 将下载的OPatch与PSU包拷贝到服务器上,并且解压缩
[oracle@test setup]$ unzip p6880880_102000_LINUX.zip
Archive: p6880880_102000_LINUX.zip
creating: OPatch/
creating: OPatch/ocm/
extracting: OPatch/ocm/ocm.zip
creating: OPatch/ocm/lib/
inflating: OPatch/ocm/lib/osdt_jce.jar
inflating: OPatch/ocm/lib/osdt_core3.jar
inflating: OPatch/ocm/lib/emocmclnt-14.jar
inflating: OPatch/ocm/lib/emocmutl.jar
………………………略
[oracle@test setup]$ cd $ORACLE_HOME
[oracle@test dbhome_1]$ mv OPatch OPatch_old ----将旧的OPatch文件目录更名
[oracle@test dbhome_1]$ cd
~/setup
[oracle@test setup]$ ls
p6880880_102000_LINUX.zip OPatch p14275629_10205_Linux-x86-64.zip
[oracle@test setup]$ mv OPatch
$ORACLE_HOME
----将新的OPatch文件夹拷贝到源路径
[oracle@test setup]$ opatch
version
----查看OPatch软件版本信息,要求变更为10.2.0.X版本
Invoking
OPatch 10.2.0.5.1
OPatch
Version: 10.2.0.5.1
OPatch
succeeded.
[oracle@test setup]$ unzip
p14275629_10205_Linux-x86-64.zip
Archive: p14275629_10205_Linux-x86-64.zip
creating: 14275629/
inflating: 14275629/README.html
creating: 14275629/files/
creating: 14275629/files/dv/
creating: 14275629/files/dv/jlib/
creating:
14275629/files/dv/jlib/dva_webapp.ear/
creating:
14275629/files/dv/jlib/dva_webapp.ear/dva_webapp.war/
creating:
14275629/files/dv/jlib/dva_webapp.ear/dva_webapp.war/WEB-INF/
creating:
14275629/files/dv/jlib/dva_webapp.ear/dva_webapp.war/WEB-INF/lib/
creating: 14275629/files/dv/jlib/dva_webapp.ear/dva_webapp.war/WEB-INF/lib/dva_webapp.jar/
……………………………….略
[oracle@test setup]$ ls
14275629 p14275629_10205_Linux-x86-64.zip p6880880_102000_LINUX.zip
[oracle@test setup]$ cd 14275629
三、 关闭数据库进行软件备份
[oracle@test 14275629]$ sqlplus
/ as sysdba
SQL*Plus:
Release 10.2.0.5.0 - Production on Fri Mar 7 14:41:42 2014
Copyright (c)
1982, 2010, Oracle. All Rights Reserved.
Connected to:
Oracle
Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the
Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> shutdown immediate
Database
closed.
Database
dismounted.
ORACLE
instance shut down.
SQL> quit
Disconnected
from Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
Production
With the
Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@test 14275629]$ cd
$ORACLE_BASE
[oracle@test oracle]$ ls
admin flash_recovery_area oradata
product
[oracle@test oracle]$ cd product/10.2.0/
[oracle@test 10.2.0]$ ls
dbhome_1
[oracle@test 10.2.0]$ tar -cvf dbhome_1.tar *
dbhome_1/
dbhome_1/rdbms/
dbhome_1/rdbms/public/
dbhome_1/rdbms/public/occiData.h
dbhome_1/rdbms/public/ocidem.h
dbhome_1/rdbms/public/ocidef.h
………………………………略
[oracle@test 10.2.0]$ ll
total 2727268
drwxr-x---. 65
oracle oinstall 4096 Mar 7 14:22 dbhome_1
-rw-r--r--. 1 oracle oinstall 2792714240 Mar 7 14:57 dbhome_1.tar
四、 安装数据库补丁
[oracle@test ~]$ cd setup
[oracle@test setup]$ ls
14275629 p14275629_10205_Linux-x86-64.zip p6880880_102000_LINUX.zip
[oracle@test setup]$ cd 14275629/
[oracle@test 14275629]$ opatch
apply
Invoking
OPatch 10.2.0.5.1
Oracle Interim
Patch Installer version 10.2.0.5.1
Copyright (c)
2010, Oracle Corporation. All rights
reserved.
Oracle
Home :
/10g/app/oracle/product/10.2.0/dbhome_1
Central
Inventory : /12c/app/oraInventory
from : /etc/oraInst.loc
OPatch
version : 10.2.0.5.1
OUI
version : 10.2.0.5.0
OUI
location :
/10g/app/oracle/product/10.2.0/dbhome_1/oui
Log file location : /10g/app/oracle/product/10.2.0/dbhome_1/cfgtoollogs/opatch/opatch2014-03-07_15-51-57PM.log
Patch history file:
/10g/app/oracle/product/10.2.0/dbhome_1/cfgtoollogs/opatch/opatch_history.txt
ApplySession
applying interim patch '14275629' to OH
'/10g/app/oracle/product/10.2.0/dbhome_1'
Running
prerequisite checks...
Patch
14275629: Optional component(s) missing : [ oracle.rdbms.dv, 10.2.0.5.0 ] , [
oracle.rdbms.dv.oc4j, 10.2.0.5.0 ] , [ oracle.network.cman, 10.2.0.5.0 ]
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
OPatch
detected non-cluster Oracle Home from the inventory and will patch the local
system only.
Please
shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home =
'/10g/app/oracle/product/10.2.0/dbhome_1')
Is the local system ready for
patching? [y|n]
y
User Responded
with: Y
Backing up
files and inventory (not for auto-rollback) for the Oracle Home
Backing up
files affected by the patch '14275629' for restore. This might take a while...
Backing up
files affected by the patch '14275629' for rollback. This might take a while...
Execution of
'sh /home/oracle/setup/14275629/custom/scripts/pre -apply 14275629 ':
Return Code =
0
Patching
component oracle.rdbms, 10.2.0.5.0...
Updating
archive file
"/10g/app/oracle/product/10.2.0/dbhome_1/lib/libserver10.a" with "lib/libserver10.a/kcbl.o"
……………………….略
Updating
archive file "/10g/app/oracle/product/10.2.0/dbhome_1/lib/libordsdo10.a" with "lib/libordsdo10.a/mdopp.o"
Patching
component oracle.network.listener, 10.2.0.5.0...
Patching
component oracle.network.client, 10.2.0.5.0...
Copying file
to "/10g/app/oracle/product/10.2.0/dbhome_1/bin/adapters"
Running make
for target client_sharedlib
Running make
for target ioracle
Running make
for target iwrap
Running make
for target client_sharedlib
Running make
for target proc
Running make
for target irman
Running make
for target itnslsnr
ApplySession
adding interim patch '14275629' to inventory
Verifying the
update...
Inventory
check OK: Patch ID 14275629 is registered in Oracle Home inventory with proper
meta-data.
Files check
OK: Files from Patch ID 14275629 are present in Oracle Home.
The local
system has been patched and can be restarted.
OPatch
succeeded.
[oracle@test 14275629]$ opatch
lsinventory
Invoking
OPatch 10.2.0.5.1
Oracle Interim
Patch Installer version 10.2.0.5.1
Copyright (c)
2010, Oracle Corporation. All rights
reserved.
Oracle
Home : /10g/app/oracle/product/10.2.0/dbhome_1
Central
Inventory : /12c/app/oraInventory
from : /etc/oraInst.loc
OPatch
version : 10.2.0.5.1
OUI
version : 10.2.0.5.0
OUI
location :
/10g/app/oracle/product/10.2.0/dbhome_1/oui
Log file location :
/10g/app/oracle/product/10.2.0/dbhome_1/cfgtoollogs/opatch/opatch2014-03-07_15-53-33PM.log
Patch history file:
/10g/app/oracle/product/10.2.0/dbhome_1/cfgtoollogs/opatch/opatch_history.txt
Lsinventory Output file location :
/10g/app/oracle/product/10.2.0/dbhome_1/cfgtoollogs/opatch/lsinv/lsinventory2014-03-07_15-53-33PM.txt
--------------------------------------------------------------------------------
Installed
Top-level Products (2):
Oracle Database 10g
10.2.0.1.0
Oracle
Database 10g Release 2 Patch Set 4 10.2.0.5.0
There are 2
products installed in this Oracle Home.
Interim
patches (1) :
Patch 14275629 : applied on Fri Mar 07
15:53:09 CST 2014
Unique Patch ID: 15394595
Created on 3 Oct 2012, 18:33:12 hrs PST8PDT
Bugs fixed:
8865718, 11790175, 13489660, 9020537,
9772888, 8650138, 8664189, 10091698
14275629, 10092858, 12551710, 7519406,
13349665, 8771916, 7509714
8822531, 10139235, 10159846, 13257247,
8350262, 11792865, 7119382
13632738, 11724962, 8966823, 9320130,
13775862, 11674645, 7026523
9399589, 9672816, 13503598, 9499302,
9150282, 9448311, 9659614, 13632743
9949948, 10327179, 8882576, 7612454,
7111619, 9711859, 9714832, 9735237
9952230, 12780098, 14665116, 8660422,
11066597, 14105702, 9713537
14105703, 14105704, 13483152, 13737773,
13737775, 14269955, 12925532
12748240, 9694101, 14390396, 12862186,
12862187, 10249537, 9586877
8211733, 6694396, 9548269, 7115910,
7710224, 9337325, 8354642, 7602341
14076510, 10157402, 12565867, 6402302,
10327190, 10269717, 11693109
10017048, 8546356, 8394351, 9024850,
8224558, 9770451, 9360157, 8488233
9109487, 10132870, 9171933, 10173237,
9532911, 10068982, 10306945
7361418, 11725006, 8666117, 6157713,
9184754, 10214450, 8544696, 9767674
9323583, 8277300, 9726739, 13343467,
8412426, 10326338, 10165083
6651220, 12419392, 10208905, 9145204,
13554409, 11076894, 7450366
11893577, 8970313, 14492313, 6011045,
14492314, 10162036, 11814891
14492315, 10248542, 14492316, 9469117,
13359623, 9952270, 13343471
9842573, 10324526, 12419258, 9322219,
8636407, 10010310, 12828105
9689310, 9390484, 13736501, 13736502,
9824435, 13736503, 13736504
13736505, 13736506, 9963497, 9032322,
13736507, 12551700, 12551701
12551702, 11858315, 12551703, 12551704,
12551705, 10076669, 12551706
14040433, 12551707, 6076890, 9308296,
12551708, 13916709, 12827745
12880299, 14038805, 13923855, 8528171,
9072105, 11737047
--------------------------------------------------------------------------------
OPatch
succeeded.
五、 启动数据库进行验证
[oracle@test 14275629]$ sqlplus
/ as sysdba
SQL*Plus:
Release 10.2.0.5.0 - Production on Fri Mar 7 15:53:44 2014
Copyright (c)
1982, 2010, Oracle. All Rights Reserved.
Connected to
an idle instance.
SQL> startup
ORACLE
instance started.
Total System
Global Area 419430400 bytes
Fixed
Size 2096728 bytes
Variable
Size 213909928 bytes
Database
Buffers 197132288 bytes
Redo
Buffers 6291456 bytes
Database
mounted.
Database
opened.
SQL>
SQL> select open_mode from
v$database;
OPEN_MODE
----------
READ WRITE
小结:打补丁之前强烈建议对ORACLE软件进行备份,数据库关闭。看好OPacth软件的版本(可以到官网下载p6880880_102000_LINUX.zip),否则无法打补丁成功。后续RAC打补丁全过程。
【opatch打补丁】oracle10.2.0.5.0升级10.2.0.5.9 for linux的更多相关文章
- 【Oracle】RAC 10.2.0.1升级10.2.0.5
环境: OS:OEL5.6 RAC:10.2.0.1.0 相关环境变量: CRS_HOME /u01/app/oracle/product/10.2.0/db_1 ORACLE_HOME /u01 ...
- CMS .NET 程序框架 从2.0/3.5升级到4.0 版本后 需要调整的地方
问题一: document.forms1.action 不可使用 需要修改程 document.forms[0] .NET 程序框架 从2.0/3.5升级到4.0 版本后,document.forms ...
- Oracle数据库升级(10.2.0.4->11.2.0.4)
环境: RHEL5.4 + Oracle 10.2.0.4 目的: 在本机将数据库升级到11.2.0.4 之前总结的Oracle数据库异机升级:http://www.cnblogs.com/jyzha ...
- k8s(1.14.0)+etcd(3.3.10)+flanneld(0.10)
K8s(1.14) 几张比较不错的图 1.kubernetes 组件图 kubernetes 架构图 2.kubernetes 网络架构图 数据从源容器中发出后,经由所在主机的docker0虚拟网卡转 ...
- 关于把.net 2.0的项目升级到.net4.0遇到的一些问题
进入公司实习的的第一个项目又是是一个升级项目.这次升级的是一个c/s架构的项目. 大致介绍一下这个项目的结构客户端采用winform+devexpress商业控件开发的,数据库是用的oracle数据库 ...
- oracle10G rac 10.2.0.1升级10.2.0.4
前言 ocr版本查询指令: ocrcheck vote盘路径查询指令: crsctl query css votedisk 相关指令参考来源:http://hzhg12345.blog.163.co ...
- Oracle 10g 应用补丁PSU 10.2.0.5.180717
最近测试了一下在Oracle 10g下面(单实例下面)升级.应用补丁PSU 10.2.0.5.180717,打这个补丁的主要原因是 Oracle 将于 2019年6月启用新的SCN兼容性,并且由于Bi ...
- 关于Oracle 10.2.0.5 版本应用SCN补丁14121009相关问题
环境:OEL 5.7 + Oracle 10.2.0.5 背景:Oracle发布的两篇关于2019年6月份将自动调整高版本数据库的SCN COMPATIBILITY的MOS文章引起了很多客户的恐慌,尤 ...
- Linux下Oracle 10.2.0.1升级到10.2.0.4总结
最近部署测试环境时,将测试环境ORACLE数据库从10.2.0.1升级到了10.2.0.4,顺便整理记录一下升级过程. 实验环境: 操作系统:Oracle Linux Server release 5 ...
随机推荐
- 为 Html 5 和 CSS 3.0 而生——Modernizr的介绍和使用
传统浏览器目前不会被完全取代,令你难以将最新的 CSS3 或 HTML5 功能嵌入你的网站. Modernizr 正是为解决这一难题应运而生,作为一个开源的 JavaScript 库,Moderniz ...
- 【测试记录】EF插入查询性能
介绍 背景什么就不提了,无外乎出现了大数据需要处理.简单的说就是我测试了EF正常的插入以及一个优化小方式而已,然后做了查询记录.其余没有什么,写这篇只是为了记录结果方便以后数据参考吧. 代码介 ...
- 6.分析request_irq和free_irq函数如何注册注销中断(详解)
上一节讲了如何实现运行中断,这些都是系统给做好的,当我们想自己写个中断处理程序,去执行自己的代码,就需要写irq_desc->action->handler,然后通过request_irq ...
- 怎样删除C/C++代码中的所有注释?浅谈状态机的编程思想
K&R习题1-23中,要求“编写一个程序,删除C语言程序中所有的注释语句.要正确处理带引号的字符串与字符常量.在C语言中,注释不允许嵌套”. 如果不考虑字符常量和字符串常量,问题确实很简单.只 ...
- Java基础——Oracle(三)
一.Oracle内部结构 1.表空间 表空间是数据库的逻辑划分,一个表空间只属于一个数据库,每个表空间由一个或多个数据文件组成,表空间中其他的逻辑结构的数据存储在这些数据文件中,一般oracle系统安 ...
- JavaScript异步和单线程
一,同步和异步的区别: 同步会阻塞代码执行,而异步不会.(比如alert是同步,setTimeout是异步) 二,前端使用异步的场景: 1,定时任务:setTimeout,setInterval 2, ...
- PyCharm实现高效远程调试代码
PyCharm实现高效远程调试代码 (薛刚强) 为方便Python代码学习和项目开发,目前选择专业的 IDE 开发工具 ,如 PyCham.针对个人使用的技巧做个笔记,分享给大家,有描述 ...
- Clumsy 利用无线网卡结合Clumsy软件模拟弱网络测试
利用无线网卡结合Clumsy软件模拟弱网络测试 by:授客 QQ:1033553122 实践环境 Clumsy 0.2 下载地址:http://jagt.github.io/clumsy/downlo ...
- Linux 学习笔记之超详细基础linux命令 Part 1
Linux学习笔记之超详细基础linux命令 by:授客 QQ:1033553122 说明:主要是在REHL Server 6操作系统下进行的测试 --字符界面虚拟终端与图形界面之间的切 方法:[ ...
- [Objective-C] 创建常量
新博客wossoneri.com #define宏定义 #define是一条预编译指令, 编译器在编译阶段前期会将所有使用到宏的地方简单地进行替换. 在预处理器里进行文本替换,没有类型,不做任何类型检 ...