探索Oracle之数据库升级四 11.2.0.4.0 PSU 11.2.0.4.3

简介: 探索Oracle之数据库升级四11.2.0.4.0 PSU 11.2.0.4.3   一、  检查当前数据库PSU号: [oracle@db01 ~]$ cd/DBSoft/Product/11.

探索Oracle之数据库升级四
11.2.0.4.0 PSU 11.2.0.4.3

 

一、  检查当前数据库PSU:

[oracle@db01 ~]$ cd/DBSoft/Product/11.2.4/db_1/OPatch/

[oracle@db01 OPatch]$ ls

crs  docs emdpatch.pl  jlib  ocm opatch  opatch.bat  opatchdiag opatchdiag.bat  opatch.ini  opatch.pl opatchprereqs  oplan

[oracle@db01 OPatch]$./opatch version

OPatch Version: 11.2.0.3.4

 

OPatch succeeded.

[oracle@db01 OPatch]$ 

[oracle@db01 OPatch]$./opatch lsinventory

Oracle Interim PatchInstaller version 11.2.0.3.4

Copyright (c) 2012, OracleCorporation.  All rights reserved.

  

Oracle Home       : /DBSoft/Product/11.2.4/db_1

Central Inventory :/DBSoft/oraInventory

   from           :/DBSoft/Product/11.2.4/db_1/oraInst.loc

OPatch version    : 11.2.0.3.4

OUI version       : 11.2.0.4.0

Log file location :/DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-04_05-20-14AM_1.log

 

Lsinventory Output filelocation :/DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/lsinv/lsinventory2014-10-04_05-20-14AM.txt

 

--------------------------------------------------------------------------------

Installed Top-level Products(1): 

 

Oracle Database 11g                                                 11.2.0.4.0

There are 1 productsinstalled in this Oracle Home.

 

 

There are no Interim patchesinstalled in this Oracle Home.

 

 

--------------------------------------------------------------------------------

 

OPatch succeeded.

[oracle@db01 OPatch]$

 

二、  关闭数据库:

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

 

SQL> host lsnrctl stop

 

LSNRCTL for Linux: Version11.2.0.4.0 - Production on 04-OCT-2014 05:47:04
 
Copyright (c) 1991, 2013,Oracle.  All rights reserved.

 

Connecting to(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

The command completedsuccessfully

 
SQL>

 

三、  上传新下载的PSU11.2.0.4.3补丁包并解压

##PSU11.2.0.4.3 补丁下载参考:18522509.8
[oracle@db01 ~]$ ll p18522509_112040_Linux-x86-64.zip 

-rw-r--r-- 1 oracle oinstall25449098 Oct  4 05:22p18522509_112040_Linux-x86-64.zip

[oracle@db01 ~]$ unzipp18522509_112040_Linux-x86-64.zip

##解压完之后将会多出18522509目录

[oracle@db01 ~]$ ll

total 107544

drwxrwxr-x 5 oracle oinstall     4096 Jun 30 23:15 18522509

drwxr-xr-x 2 oracleoinstall     4096 Oct  3 23:44 Desktop

-rw-r--r-- 1 oracle oinstall25449098 Oct  4 05:22p18522509_112040_Linux-x86-64.zip

 

四、进入18522509目录进行PSU升级

[oracle@db01 ~]$ ls

18522509  Desktop p18522509_112040_Linux-x86-64.zip PatchSearch.xml  upgrade.log

 

[oracle@db01 ~]$ cd18522509/

[oracle@db01 18522509]$ ls

17478514  18031668 18522509  patchmd.xml  README.html README.txt

[oracle@db01 18522509]$/DBSoft/Product/11.2.4/db_1/OPatch/opatch apply

Oracle Interim PatchInstaller version 11.2.0.3.4

Copyright (c) 2012, OracleCorporation.  All rights reserved.

 

Oracle Home       : /DBSoft/Product/11.2.4/db_1

Central Inventory :/DBSoft/oraInventory

   from           :/DBSoft/Product/11.2.4/db_1/oraInst.loc

OPatch version    : 11.2.0.3.4

OUI version       : 11.2.0.4.0

Log file location :/DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-04_05-25-14AM_1.log

 

Verifying environment andperforming prerequisite checks...

Prerequisite check"CheckMinimumOPatchVersion" failed.

The details are:

 

 

The OPatch being used hasversion 11.2.0.3.4 while the following patch(es) require higher versions: 

Patch 17478514 requiresOPatch version 11.2.0.3.5.

Patch 18031668 requiresOPatch version 11.2.0.3.5.

Patch 18522509 requiresOPatch version 11.2.0.3.5.

Please download latestOPatch from My Oracle Support.

 

UtilSession failed:Prerequisite check "CheckMinimumOPatchVersion" failed.

Log file location:/DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-04_05-25-14AM_1.log

 

OPatch failed with errorcode 73

[oracle@db01 18522509]$

 

 五、OPatch应用报错,检查日志:

[oracle@db01 admin]$ cat/DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-04_05-25-14AM_1.log |grep failed

[Oct 4, 20145:25:18 AM]     Prerequisite check "CheckMinimumOPatchVersion"failed.

[Oct 4, 20145:25:18 AM]     OUI-67073:UtilSessionfailed: Prerequisite check "CheckMinimumOPatchVersion" failed.

[Oct 4, 20145:25:18 AM]     Stack Description:java.lang.RuntimeException: Prerequisite check "CheckMinimumOPatchVersion"failed.

[oracle@db01 admin]$

 

##检查后,发现是Opatch版本的问题,先更新opatch ,下载p6880880,并解压缩。

[oracle@db01~]$ ll p6880880_112000_Linux-x86-64.zip 

-rw-r--r--1 oracle oinstall 33020933 Oct  4 05:29p6880880_112000_Linux-x86-64.zip

[oracle@db01~]$ unzip p6880880_112000_Linux-x86-64.zip

 

 

##查看最新Opatch版本号:

[oracle@db01 OPatch]$./opatch version

OPatch Version: 11.2.0.3.6

 

OPatch succeeded.

[oracle@db01 OPatch]$

 

##再执行一次安装前的检查:

[oracle@db01 18522509]$/home/oracle/OPatch/opatch  prereqCheckConflictAgainstOHWithDetail -ph ./

Oracle Interim PatchInstaller version 11.2.0.3.6

Copyright (c) 2013, OracleCorporation.  All rights reserved.

 

PREREQ session

 

Oracle Home       : /DBSoft/Product/11.2.4/db_1

Central Inventory :/DBSoft/oraInventory

   from           :/DBSoft/Product/11.2.4/db_1/oraInst.loc

OPatch version    : 11.2.0.3.6

OUI version       : 11.2.0.4.0

Log file location :/DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-04_05-43-23AM_1.log
Invoking prereq"checkconflictagainstohwithdetail"
Prereq"checkConflictAgainstOHWithDetail" passed.
OPatch succeeded.

 

六、通过新版本Opatch安装PSU

[oracle@db01 ~]$ cd18522509/

[oracle@db01 18522509]$ ls

17478514  18031668 18522509  patchmd.xml  README.html README.txt

 

[oracle@db01 18522509]$/home/oracle/OPatch/opatch apply

Oracle Interim PatchInstaller version 11.2.0.3.6

Copyright (c) 2013, OracleCorporation.  All rights reserved.

 

 

Oracle Home       : /DBSoft/Product/11.2.4/db_1

Central Inventory :/DBSoft/oraInventory

   from           :/DBSoft/Product/11.2.4/db_1/oraInst.loc

OPatch version    : 11.2.0.3.6

OUI version       : 11.2.0.4.0

Log file location :/DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-04_05-36-04AM_1.log

 

Verifying environment andperforming prerequisite checks...

OPatch continues with thesepatches:   17478514  18031668 18522509  

 

Do you want to proceed?[y|n]

y

User Responded with: Y

All checks passed.

Provide your email addressto be informed of security issues, install and

initiate OracleConfiguration Manager. Easier for you if you use your My

Oracle Support Emailaddress/User Name.

Visithttp://www.oracle.com/support/policies.html for details.

Email address/User Name: 

 

You have not provided anemail address for notification of security issues.

Do you wish to remainuninformed of security issues ([Y]es, [N]o) [N]:  y

 

 

 

Please shutdown Oracleinstances running out of this ORACLE_HOME on the local system.

(Oracle Home = '/DBSoft/Product/11.2.4/db_1')

 

 

Is the local system readyfor patching? [y|n]

y

User Responded with: Y

Backing up files...

Applying sub-patch'17478514' to OH '/DBSoft/Product/11.2.4/db_1'

 

Patching componentoracle.rdbms, 11.2.0.4.0...

 

Patching component oracle.rdbms.rsf,11.2.0.4.0...

 

Patching componentoracle.sdo, 11.2.0.4.0...

 

Patching componentoracle.sysman.agent, 10.2.0.4.5...

 

Patching componentoracle.xdk, 11.2.0.4.0...

 

Patching componentoracle.rdbms.dbscripts, 11.2.0.4.0...

 

Patching component oracle.sdo.locator,11.2.0.4.0...

 

Patching componentoracle.nlsrtl.rsf, 11.2.0.4.0...

 

Patching componentoracle.xdk.rsf, 11.2.0.4.0...

 

Patching componentoracle.rdbms.rman, 11.2.0.4.0...

 

Verifying the update...

Applying sub-patch'18031668' to OH '/DBSoft/Product/11.2.4/db_1'

 

Patching componentoracle.rdbms, 11.2.0.4.0...

 

Patching componentoracle.rdbms.rsf, 11.2.0.4.0...

 

Patching componentoracle.ldap.rsf, 11.2.0.4.0...

 

Patching componentoracle.rdbms.crs, 11.2.0.4.0...

 

Patching componentoracle.precomp.common, 11.2.0.4.0...

 

Patching componentoracle.ldap.rsf.ic, 11.2.0.4.0...

 

Patching componentoracle.rdbms.deconfig, 11.2.0.4.0...

 

Patching componentoracle.rdbms.dbscripts, 11.2.0.4.0...

 

Patching componentoracle.rdbms.rman, 11.2.0.4.0...

 

Verifying the update...

Applying sub-patch'18522509' to OH '/DBSoft/Product/11.2.4/db_1'

 

Patching componentoracle.rdbms.rsf, 11.2.0.4.0...

 

Patching componentoracle.rdbms, 11.2.0.4.0...

 

Patching componentoracle.precomp.common, 11.2.0.4.0...

 

Patching componentoracle.rdbms.rman, 11.2.0.4.0...

 

Patching componentoracle.rdbms.dbscripts, 11.2.0.4.0...

 

Patching componentoracle.rdbms.deconfig, 11.2.0.4.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_emagent.mk:113: warning:overriding commands for target `nmosudo'

ins_emagent.mk:52: warning:ignoring old commands for target `nmosudo'

/DBSoft/Product/11.2.4/db_1/sysman/lib/ins_emagent.mk:113:warning: overriding commands for target `nmosudo'

/DBSoft/Product/11.2.4/db_1/sysman/lib/ins_emagent.mk:52:warning: ignoring old commands for target `nmosudo'

 

 

Composite patch 18522509successfully applied.

OPatch Session completedwith warnings.

Log file location:/DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-04_05-36-04AM_1.log

 

OPatch completed withwarnings.

 

七、检查Opatch是否已经完成:

[oracle@db01 18522509]$/home/oracle/OPatch/opatch lsinventory

Oracle Interim Patch Installerversion 11.2.0.3.6

Copyright (c) 2013, OracleCorporation.  All rights reserved.

 

 

Oracle Home       : /DBSoft/Product/11.2.4/db_1

Central Inventory :/DBSoft/oraInventory

   from           :/DBSoft/Product/11.2.4/db_1/oraInst.loc

OPatch version    : 11.2.0.3.6

OUI version       : 11.2.0.4.0

Log file location :/DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/opatch2014-10-04_05-40-12AM_1.log

 

Lsinventory Output filelocation :/DBSoft/Product/11.2.4/db_1/cfgtoollogs/opatch/lsinv/lsinventory2014-10-04_05-40-12AM.txt

 

--------------------------------------------------------------------------------

Installed Top-level Products(1): 

 

Oracle Database 11g                                                 11.2.0.4.0

There are 1 product(s)installed in this Oracle Home.

 

 

Interim patches (1) :

 

Patch  18522509    : applied on Sat Oct 04 05:37:21 CST 2014

Unique Patch ID:  17604597

Patch description:  "Database Patch Set Update : 11.2.0.4.3(18522509)"

   Created on 30 Jun 2014, 08:14:42 hrs PST8PDT

Sub-patch  18031668; "Database Patch Set Update :11.2.0.4.2 (18031668)"

Sub-patch  17478514; "Database Patch Set Update :11.2.0.4.1 (17478514)"

   Bugs fixed:

     17752995, 17288409, 16392068, 17205719,17811429, 17767676, 17614227

     17040764, 17381384, 17754782, 17726838,13364795, 17311728, 17389192

     17006570, 17612828, 17284817, 17441661,13853126, 17721717, 13645875

     18203837, 17390431, 16542886, 16992075,16043574, 17446237, 16863422

     14565184, 17071721, 17610798, 17468141,17786518, 17375354, 17397545

     18203838, 16956380, 17478145, 16360112,17235750, 17394950, 13866822

     17478514, 17027426, 12905058, 14338435,16268425, 13944971, 18247991

     14458214, 16929165, 17265217, 13498382,17786278, 17227277, 17546973

     14054676, 17088068, 16314254, 17016369,14602788, 17443671, 16228604

     16837842, 17332800, 17393683, 13951456,16315398, 18744139, 17186905

     16850630, 17437634, 19049453, 17883081,15861775, 17296856, 18277454

     16399083, 16855292, 18018515, 10136473,16472716, 17050888, 17865671

     17325413, 14010183, 18554871, 17080436,16613964, 17761775, 16721594

     17588480, 17551709, 17344412, 18681862,15979965, 13609098, 18139690

     17501491, 17239687, 17752121, 17602269,18203835, 17297939, 17313525

     16731148, 17811456, 14133975, 17600719,17385178, 17571306, 16450169

     17655634, 18094246, 17892268, 17165204,17011832, 17648596, 16785708

     17477958, 16180763, 16220077, 17465741,17174582, 18522509, 16069901

     16285691, 17323222, 18180390, 17393915,16875449, 18096714, 17238511

     17596908, 17811438, 17811447, 18031668,16912439, 18061914, 17622427

     17545847, 16943711, 17082359, 17346671,18996843, 14852021, 17783588

     16618694, 17672719, 17614134, 17341326,17546761, 17716305

 

 

 

--------------------------------------------------------------------------------

 

OPatch succeeded.

 

[oracle@db01 18522509]$/home/oracle/OPatch/opatch lspatches

18522509;Database Patch SetUpdate : 11.2.0.4.3 (18522509)

 

八、更新dba_registry_history视图最新PSU信息

SQL> startup

ORACLE instance started.

 

Total System Global Area2872786944 bytes

Fixed Size                  2256712 bytes

Variable Size            2634023096 bytes

Database Buffers          218103808 bytes

Redo Buffers               18403328 bytes

Database mounted.

Database opened.

SQL> !lsnrctl start

 

LSNRCTL for Linux: Version11.2.0.4.0 - Production on 04-OCT-2014 06:34:29

 

Copyright (c) 1991, 2013,Oracle.  All rights reserved.

 

Starting/DBSoft/Product/11.2.4/db_1/bin/tnslsnr: please wait...

 

TNSLSNR for Linux: Version11.2.0.4.0 - Production

System parameter file is/DBSoft/Product/11.2.4/db_1/network/admin/listener.ora

Log messages written to/DBSoft/diag/tnslsnr/db01/listener/alert/log.xml

Listening on:(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

Listening on:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db01)(PORT=1521)))

 

Connecting to(DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version11.2.0.4.0 - Production

Start Date                04-OCT-2014 06:34:29

Uptime                    0 days 0 hr. 0 min. 0 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File  /DBSoft/Product/11.2.4/db_1/network/admin/listener.ora

Listener Log File        /DBSoft/diag/tnslsnr/db01/listener/alert/log.xml

Listening EndpointsSummary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))

 (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=db01)(PORT=1521)))

The listener supports noservices

The command completedsuccessfully

 

SQL> alter systemregister;

 

System altered.

 

SQL> @?/rdbms/admin/catbundle.sqlpsu apply

 

九、确认更新后的dba_registry_history视图信息

SQL> col action_time format a35

SQL> col action format a15

SQL> col namespace format a10

SQL> col version format a10

SQL> select action_time,action,namespace,version,idfrom dba_registry_history

 

ACTION_TIME                         ACTION          NAMESPACE  VERSION            ID

----------------------------------- ------------------------- ---------- ----------

17-SEP-11 10.21.11.595816 AM        APPLY           SERVER     11.2.0.3            0

04-OCT-14 12.16.44.664335 AM        APPLY           SERVER     11.2.0.3            0

04-OCT-14 04.01.36.022121 AM        VIEW INVALIDATE                          8289601

04-OCT-14 04.01.36.121141 AM        UPGRADE         SERVER     11.2.0.4.0

04-OCT-14 06.35.32.745430 AM        APPLY           SERVER     11.2.0.4            3

 

SQL> selectaction,comments from registry$history

 

ACTION          COMMENTS

---------------------------------------------

APPLY           Patchset 11.2.0.2.0

APPLY           Patchset 11.2.0.2.0

VIEW INVALIDATE viewinvalidation

UPGRADE         Upgraded from 11.2.0.3.0

APPLY           PSU 11.2.0.4.3

ROLLBACK        PSU 11.2.0.4.3

APPLY           Patchset 11.2.0.2.0

APPLY           PSU 11.2.0.4.3

APPLY           PSU 11.2.0.4.3

 

SQL> SELECT * FROMPRODUCT_COMPONENT_VERSION

 

PRODUCT                                  VERSION    STATUS

-------------------------------------------------- ------------------------------

NLSRTL                                   11.2.0.4.0Production

Oracle Database 11gEnterprise Edition   11.2.0.4.0 64bitProduction

PL/SQL                                   11.2.0.4.0Production

TNS for Linux:                           11.2.0.4.0Production

 

至此,PSU已经完成

 

目录
相关文章
|
13天前
|
Oracle 关系型数据库 Linux
【赵渝强老师】Oracle数据库配置助手:DBCA
Oracle数据库配置助手(DBCA)是用于创建和配置Oracle数据库的工具,支持图形界面和静默执行模式。本文介绍了使用DBCA在Linux环境下创建数据库的完整步骤,包括选择数据库操作类型、配置存储与网络选项、设置管理密码等,并提供了界面截图与视频讲解,帮助用户快速掌握数据库创建流程。
188 93
|
2月前
|
存储 Oracle 关系型数据库
服务器数据恢复—光纤存储上oracle数据库数据恢复案例
一台光纤服务器存储上有16块FC硬盘,上层部署了Oracle数据库。服务器存储前面板2个硬盘指示灯显示异常,存储映射到linux操作系统上的卷挂载不上,业务中断。 通过storage manager查看存储状态,发现逻辑卷状态失败。再查看物理磁盘状态,发现其中一块盘报告“警告”,硬盘指示灯显示异常的2块盘报告“失败”。 将当前存储的完整日志状态备份下来,解析备份出来的存储日志并获得了关于逻辑卷结构的部分信息。
|
25天前
|
SQL Oracle 关系型数据库
Oracle数据库创建表空间和索引的SQL语法示例
以上SQL语法提供了一种标准方式去组织Oracle数据库内部结构,并且通过合理使用可以显著改善查询速度及整体性能。需要注意,在实际应用过程当中应该根据具体业务需求、系统资源状况以及预期目标去合理规划并调整参数设置以达到最佳效果。
91 8
|
25天前
|
存储 人工智能 关系型数据库
媒体声音 | 专访阿里云数据库周文超:GenAI时代,数据管理底座强势升级
近日,阿里云数据库产品事业部总监、AnalyticDB PG及生态工具部负责人周文超,在DTCC 2025专访中分享了阿里云瑶池数据库在多模态数据处理、AI基础设施升级等方向的创新实践。
|
2月前
|
SQL Oracle 关系型数据库
比较MySQL和Oracle数据库系统,特别是在进行分页查询的方法上的不同
两者的性能差异将取决于数据量大小、索引优化、查询设计以及具体版本的数据库服务器。考虑硬件资源、数据库设计和具体需求对于实现优化的分页查询至关重要。开发者和数据库管理员需要根据自身使用的具体数据库系统版本和环境,选择最合适的分页机制,并进行必要的性能调优来满足应用需求。
121 11
|
2月前
|
Oracle 关系型数据库 数据库
数据库数据恢复—服务器异常断电导致Oracle数据库报错的数据恢复案例
Oracle数据库故障: 某公司一台服务器上部署Oracle数据库。服务器意外断电导致数据库报错,报错内容为“system01.dbf需要更多的恢复来保持一致性”。该Oracle数据库没有备份,仅有一些断断续续的归档日志。 Oracle数据库恢复流程: 1、检测数据库故障情况; 2、尝试挂起并修复数据库; 3、解析数据库文件; 4、导出并验证恢复的数据库文件。
|
3月前
|
Cloud Native 关系型数据库 分布式数据库
客户说|知乎基于阿里云PolarDB,实现最大数据库集群云原生升级
近日,知乎最大的风控业务数据库集群,基于阿里云瑶池数据库完成了云原生技术架构的升级。此次升级不仅显著提升了系统的高可用性和性能上限,还大幅降低了底层资源成本。
|
2月前
|
存储 Oracle 关系型数据库
【赵渝强老师】Oracle RMAN的目录数据库
Oracle RMAN默认将备份元信息存储在控制文件中,但控制文件损坏或丢失会导致恢复失败,且备份增多会使控制文件无限增长。为解决这些问题,Oracle引入了RMAN目录数据库(Catalog Database),专门用于存储RMAN备份的元信息。使用目录数据库可提升备份管理效率,支持多数据库共享、长期备份历史记录存储,并可保存RMAN脚本。本文详细介绍了如何创建目录数据库、注册目标数据库及其操作步骤。
|
Oracle 关系型数据库 数据库
Oracle 12.1升级到12.2的两种方法
   自Oracle 12.2发布以来,就会面临两类升级的需求,一类是12.1升级到12.2,毕竟12.1和12.2的发布时间间隔有5年左右的时间,这个时间段内已经有一些线上业务使用了12.1,现在升级到12.2的意愿就会更加强烈。
2436 0
|
5月前
|
Oracle 安全 关系型数据库
【Oracle】使用Navicat Premium连接Oracle数据库两种方法
以上就是两种使用Navicat Premium连接Oracle数据库的方法介绍,希望对你有所帮助!
1178 28

热门文章

最新文章

推荐镜像

更多