最近有朋友想看升级Oracle补丁,今天,她来了!

(文末有你想要的~~~)

尝试用原始的OPatch:

[oracle@localhost db_1]$ $ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local /tmp/30670774
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/11.2.0.4/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/11.2.0.4/db_1/oraInst.loc
OPatch version    : 11.2.0.3.4
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/opatch2020-07-17_21-10-50PM_1.logVerifying environment and performing prerequisite checks...
Prerequisite check "CheckMinimumOPatchVersion" failed.
The details are:The OPatch being used has version 11.2.0.3.4 while the following patch(es) require higher versions:
Patch 17478514 requires OPatch version 11.2.0.3.5.
Patch 18031668 requires OPatch version 11.2.0.3.5.
Patch 18522509 requires OPatch version 11.2.0.3.5.
Patch 19121551 requires OPatch version 11.2.0.3.5.
Patch 19769489 requires OPatch version 11.2.0.3.5.
Patch 20299013 requires OPatch version 11.2.0.3.5.
Patch 20760982 requires OPatch version 11.2.0.3.5.
Patch 21352635 requires OPatch version 11.2.0.3.5.
Patch 21948347 requires OPatch version 11.2.0.3.5.
Patch 22502456 requires OPatch version 11.2.0.3.5.
Patch 23054359 requires OPatch version 11.2.0.3.5.
Patch 24006111 requires OPatch version 11.2.0.3.5.
Patch 24732075 requires OPatch version 11.2.0.3.5.
Patch 25869727 requires OPatch version 11.2.0.3.5.
Patch 26392168 requires OPatch version 11.2.0.3.5.
Patch 26609445 requires OPatch version 11.2.0.3.5.
Patch 29141056 requires OPatch version 11.2.0.3.20.
Patch 29497421 requires OPatch version 11.2.0.3.20.
Patch 29913194 requires OPatch version 11.2.0.3.20.
Please download latest OPatch from My Oracle Support.UtilSession failed: Prerequisite check "CheckMinimumOPatchVersion" failed.
Log file location: /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/opatch2020-07-17_21-10-50PM_1.logOPatch failed with error code 73

这个官方已有说明:OPatch的版本要大于或等于11.2.0.3.20

You must use the OPatch utility version 11.2.0.3.20 or later to apply this patch. Oracle recommends that you use the latest released OPatch version for 11.2, which is available for download from My Oracle Support patch 6880880 by selecting the 11.2.0.0.0 release.For information about OPatch documentation, including any known issues, see My Oracle Support Document 293369.1 Master Note For OPatch.

但也不能太高:

[oracle@localhost db_1]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /tmp/30670774 -oh $ORACLE_HOMEOPatch Version : 12.2.0.1.21OUI  Version : 11.2.0.4.0
The OPatch version is not applicable for current OUI version.Since OUI Version starts with 11.2, Please go to 'My Oracle Support' and get right OPatch 11.2.*.*.* based on patch 6880880, release version 11.2.0.0.0 and appropriate platform.OPatch failed with error code 19
[oracle@localhost db_1]$
[oracle@localhost db_1]$ $ORACLE_HOME/OPatch/opatch version
OPatch Version: 12.2.0.1.21OPatch succeeded.
[oracle@localhost db_1]$

空间不够:

[oracle@localhost db_1]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /tmp/30670774/ -oh $ORACLE_HOME
Oracle Interim Patch Installer version 11.2.0.3.23
Copyright (c) 2020, Oracle Corporation.  All rights reserved.PREREQ sessionOracle Home       : /u01/app/oracle/product/11.2.0.4/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/11.2.0.4/db_1/oraInst.loc
OPatch version    : 11.2.0.3.23
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/opatch2020-07-17_21-16-15PM_1.logInvoking prereq "checkconflictagainstohwithdetail"Prereq "checkConflictAgainstOHWithDetail" passed.OPatch succeeded.
[oracle@localhost db_1]$
[oracle@localhost db_1]$ $ORACLE_HOME/OPatch/opatch version
OPatch Version: 11.2.0.3.23OPatch succeeded.
[oracle@localhost db_1]$
[oracle@localhost db_1]$ $ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local /tmp/30670774
Oracle Interim Patch Installer version 11.2.0.3.23
Copyright (c) 2020, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/11.2.0.4/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/11.2.0.4/db_1/oraInst.loc
OPatch version    : 11.2.0.3.23
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/opatch2020-07-17_21-16-40PM_1.logVerifying environment and performing prerequisite checks...
Prerequisite check "CheckSystemSpace" failed.
The details are:
Required amount of space(1849.53MB) is not available.
UtilSession failed:
Prerequisite check "CheckSystemSpace" failed.
Log file location: /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/opatch2020-07-17_21-16-40PM_1.logOPatch failed with error code 73

开始打补丁:

[oracle@localhost ~]$ $ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local /tmp/30670774
Oracle Interim Patch Installer version 11.2.0.3.23
Copyright (c) 2020, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/11.2.0.4/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/11.2.0.4/db_1/oraInst.loc
OPatch version    : 11.2.0.3.23
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/opatch2020-07-17_21-31-58PM_1.logVerifying environment and performing prerequisite checks...
Prerequisite check "CheckActiveFilesAndExecutables" failed.
The details are:Following active executables are not used by opatch process :
/u01/app/oracle/product/11.2.0.4/db_1/bin/oracleFollowing active executables are used by opatch process :UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.
Log file location: /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/opatch2020-07-17_21-31-58PM_1.logOPatch failed with error code 73
[oracle@localhost ~]$
[oracle@localhost ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.4.0 Production on Fri Jul 17 21:32:15 2020Copyright (c) 1982, 2013, Oracle.  All rights reserved.Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing optionsSQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL>
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@localhost ~]$
[oracle@localhost ~]$
[oracle@localhost ~]$ $ORACLE_HOME/OPatch/opatch apply -oh $ORACLE_HOME -local /tmp/30670774
Oracle Interim Patch Installer version 11.2.0.3.23
Copyright (c) 2020, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/11.2.0.4/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/11.2.0.4/db_1/oraInst.loc
OPatch version    : 11.2.0.3.23
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/opatch2020-07-17_21-32-32PM_1.logVerifying environment and performing prerequisite checks...
OPatch continues with these patches:   17478514  18031668  18522509  19121551  19769489  20299013  20760982  21352635  21948347  22502456  23054359  24006111  24732075  25869727  26609445  26392168  26925576  27338049  27734982  28204707  28729262  29141056  29497421  29913194  30298532  30670774  Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/11.2.0.4/db_1')Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying sub-patch '17478514' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.sdo, 11.2.0.4.0...Patching component oracle.sysman.agent, 10.2.0.4.5...Patching component oracle.xdk, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.sdo.locator, 11.2.0.4.0...Patching component oracle.nlsrtl.rsf, 11.2.0.4.0...Patching component oracle.xdk.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...
Applying sub-patch '18031668' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.rdbms.crs, 11.2.0.4.0...Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.rdbms.deconfig, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...
Applying sub-patch '18522509' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
Applying sub-patch '19121551' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.sysman.console.db, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.ordim.client, 11.2.0.4.0...Patching component oracle.ordim.jai, 11.2.0.4.0...
Applying sub-patch '19769489' to OH '/u01/app/oracle/product/11.2.0.4/db_1'
ApplySession: Optional component(s) [ oracle.sysman.agent, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.ovm, 11.2.0.4.0...Patching component oracle.xdk, 11.2.0.4.0...Patching component oracle.rdbms.util, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.xdk.parser.java, 11.2.0.4.0...Patching component oracle.oraolap, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.xdk.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
Applying sub-patch '20299013' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.rdbms.dv, 11.2.0.4.0...Patching component oracle.rdbms.oci, 11.2.0.4.0...Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.sysman.agent, 10.2.0.4.5...Patching component oracle.xdk, 11.2.0.4.0...Patching component oracle.sysman.common, 10.2.0.4.5...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.xdk.parser.java, 11.2.0.4.0...Patching component oracle.sysman.console.db, 11.2.0.4.0...Patching component oracle.xdk.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.sysman.common.core, 10.2.0.4.5...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms.deconfig, 11.2.0.4.0...
Applying sub-patch '20760982' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.sysman.console.db, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Applying sub-patch '21352635' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.sysman.agent, 10.2.0.4.5...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...
Applying sub-patch '21948347' to OH '/u01/app/oracle/product/11.2.0.4/db_1'
ApplySession: Optional component(s) [ oracle.tfa, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.sysman.agent, 10.2.0.4.5...Patching component oracle.ovm, 11.2.0.4.0...Patching component oracle.xdk, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.nlsrtl.rsf, 11.2.0.4.0...Patching component oracle.xdk.parser.java, 11.2.0.4.0...Patching component oracle.sysman.console.db, 11.2.0.4.0...Patching component oracle.xdk.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.sysman.oms.core, 10.2.0.4.5...
Applying sub-patch '22502456' to OH '/u01/app/oracle/product/11.2.0.4/db_1'
ApplySession: Optional component(s) [ oracle.tfa, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.oraolap.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.olap, 11.2.0.4.0...Patching component oracle.oraolap, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Applying sub-patch '23054359' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.rdbms.dv, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Applying sub-patch '24006111' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.sqlplus.ic, 11.2.0.4.0...Patching component oracle.sqlplus, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Applying sub-patch '24732075' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.precomp.common, 11.2.0.4.0...Patching component oracle.sysman.plugin.db.main.agent, 11.2.0.4.0...Patching component oracle.sqlplus.ic, 11.2.0.4.0...Patching component oracle.sqlplus, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.util, 11.2.0.4.0...Patching component oracle.ordim.client, 11.2.0.4.0...Patching component oracle.ordim.jai, 11.2.0.4.0...Patching component oracle.ordim.server, 11.2.0.4.0...
Applying sub-patch '25869727' to OH '/u01/app/oracle/product/11.2.0.4/db_1'
ApplySession: Optional component(s) [ oracle.oid.client, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.oracore.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...
Applying sub-patch '26609445' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.oracore.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...
Applying sub-patch '26392168' to OH '/u01/app/oracle/product/11.2.0.4/db_1'
ApplySession: Optional component(s) [ oracle.oid.client, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.ldap.client, 11.2.0.4.0...Patching component oracle.sysman.agent, 10.2.0.4.5...Patching component oracle.xdk, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.network.listener, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.nlsrtl.rsf, 11.2.0.4.0...Patching component oracle.xdk.parser.java, 11.2.0.4.0...Patching component oracle.xdk.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...
Applying sub-patch '26925576' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Applying sub-patch '27338049' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.assistants.server, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...
Applying sub-patch '27734982' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.ctx, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.ctx.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...
Applying sub-patch '28204707' to OH '/u01/app/oracle/product/11.2.0.4/db_1'
Applying changes to emctl script on the home: /u01/app/oracle/product/11.2.0.4/db_1 ...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.oracore.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.sysman.agent, 10.2.0.4.5...Patching component oracle.sysman.console.db, 11.2.0.4.0...Patching component oracle.ldap.security.osdt, 11.2.0.4.0...Patching component oracle.ldap.owm, 11.2.0.4.0...Patching component oracle.sqlplus.rsf, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...
Applying sub-patch '28729262' to OH '/u01/app/oracle/product/11.2.0.4/db_1'
INFO: Script isn't applicable to this port!Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms.util, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...
Applying sub-patch '29141056' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.oracore.rsf, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...
Applying sub-patch '29497421' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rman, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.oracore.rsf, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...
Applying sub-patch '29913194' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.rdbms.util, 11.2.0.4.0...
Applying sub-patch '30298532' to OH '/u01/app/oracle/product/11.2.0.4/db_1'
ApplySession: Optional component(s) [ oracle.rdbms.tg4tera, 11.2.0.4.0 ] , [ oracle.rdbms.tg4sybs, 11.2.0.4.0 ] , [ oracle.rdbms.tg4ifmx, 11.2.0.4.0 ] , [ oracle.rdbms.tg4db2, 11.2.0.4.0 ] , [ oracle.rdbms.tg4msql, 11.2.0.4.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.rdbms.hsodbc, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...
Applying sub-patch '30670774' to OH '/u01/app/oracle/product/11.2.0.4/db_1'Patching component oracle.rdbms.rsf, 11.2.0.4.0...Patching component oracle.rdbms, 11.2.0.4.0...Patching component oracle.rdbms.dbscripts, 11.2.0.4.0...Patching component oracle.network.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf, 11.2.0.4.0...Patching component oracle.ldap.rsf.ic, 11.2.0.4.0...Patching component oracle.swd.oui, 11.2.0.4.0...Patching component oracle.ctx, 11.2.0.4.0...OPatch found the word "error" in the stderr of the make command.
Please look at this stderr. You can re-run this make command.
Stderr output:
chmod: changing permissions of `/u01/app/oracle/product/11.2.0.4/db_1/bin/extjobO': Operation not permitted
make: [iextjob] Error 1 (ignored)Composite patch 30670774 successfully applied.
OPatch Session completed with warnings.
Log file location: /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/opatch2020-07-17_21-32-32PM_1.logOPatch completed with warnings.
[oracle@localhost ~]$

升级完检查:

[oracle@localhost ~]$  $ORACLE_HOME/OPatch/opatch lsinv
Oracle Interim Patch Installer version 11.2.0.3.23
Copyright (c) 2020, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/11.2.0.4/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/11.2.0.4/db_1/oraInst.loc
OPatch version    : 11.2.0.3.23
OUI version       : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/opatch2020-07-17_21-38-55PM_1.logLsinventory Output file location : /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/lsinv/lsinventory2020-07-17_21-38-55PM.txt
--------------------------------------------------------------------------------
Local Machine Information::
Hostname: localhost
ARU platform id: 226
ARU platform description:: Linux x86-64Installed Top-level Products (1): Oracle Database 11g                                                  11.2.0.4.0
There are 1 products installed in this Oracle Home.Interim patches (1) :Patch  30670774     : applied on Fri Jul 17 21:36:42 CST 2020
Unique Patch ID:  23449206
Patch description:  "Database Patch Set Update : 11.2.0.4.200414 (30670774)"Created on 20 Mar 2020, 00:05:18 hrs PST8PDT
Sub-patch  30298532; "Database Patch Set Update : 11.2.0.4.200114 (30298532)"
Sub-patch  29913194; "Database Patch Set Update : 11.2.0.4.191015 (29913194)"
Sub-patch  29497421; "Database Patch Set Update : 11.2.0.4.190716 (29497421)"
Sub-patch  29141056; "Database Patch Set Update : 11.2.0.4.190416 (29141056)"
Sub-patch  28729262; "Database Patch Set Update : 11.2.0.4.190115 (28729262)"
Sub-patch  28204707; "Database Patch Set Update : 11.2.0.4.181016 (28204707)"
Sub-patch  27734982; "Database Patch Set Update : 11.2.0.4.180717 (27734982)"
Sub-patch  27338049; "Database Patch Set Update : 11.2.0.4.180417 (27338049)"
Sub-patch  26925576; "Database Patch Set Update : 11.2.0.4.180116 (26925576)"
Sub-patch  26392168; "Database Patch Set Update : 11.2.0.4.171017 (26392168)"
Sub-patch  26609445; "Database Patch Set Update : 11.2.0.4.170814 (26609445)"
Sub-patch  25869727; "Database Patch Set Update : 11.2.0.4.170718 (25869727)"
Sub-patch  24732075; "Database Patch Set Update : 11.2.0.4.170418 (24732075)"
Sub-patch  24006111; "Database Patch Set Update : 11.2.0.4.161018 (24006111)"
Sub-patch  23054359; "Database Patch Set Update : 11.2.0.4.160719 (23054359)"
Sub-patch  22502456; "Database Patch Set Update : 11.2.0.4.160419 (22502456)"
Sub-patch  21948347; "Database Patch Set Update : 11.2.0.4.160119 (21948347)"
Sub-patch  21352635; "Database Patch Set Update : 11.2.0.4.8 (21352635)"
Sub-patch  20760982; "Database Patch Set Update : 11.2.0.4.7 (20760982)"
Sub-patch  20299013; "Database Patch Set Update : 11.2.0.4.6 (20299013)"
Sub-patch  19769489; "Database Patch Set Update : 11.2.0.4.5 (19769489)"
Sub-patch  19121551; "Database Patch Set Update : 11.2.0.4.4 (19121551)"
Sub-patch  18522509; "Database Patch Set Update : 11.2.0.4.3 (18522509)"
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:18619917, 19309466, 28876684, 28855981, 18189036, 19781326, 1360909816285691, 16756406, 18430495, 17323222, 29483723, 19915271, 1951644814458214, 23713236, 23140259, 29434301, 22502493, 18272672, 1641057016494615, 19174430, 21352646, 16901385, 16596890, 22243719, 1899684321387964, 20334344, 17174582, 22250006, 17798953, 14015842, 1803166815955387, 21534893, 16832076, 16065166, 16579084, 25427662, 2117989811786053, 15990359, 24589081, 17982832, 18685892, 20142975, 2483553816315398, 20861693, 17037130, 17284817, 17891946, 17279227, 1758848017291347, 16731148, 21097043, 24528741, 22321741, 17165204, 2624523717891943, 17359610, 17265217, 17465741, 29621961, 22551446, 1819116416721594, 18614015, 27825893, 18440095, 19769489, 20596234, 1848250216043574, 17360606, 20936905, 22321756, 19211724, 17392698, 1946389329033139, 17477958, 17040764, 18362222, 19463897, 24624166, 1785345614521849, 17816865, 19692824, 21868720, 17951233, 25505407, 1704052731022191, 24975421, 19888853, 18009564, 20882568, 20803583, 2302658518604692, 17622427, 16903536, 29483771, 17865671, 17883081, 1622860417325413, 17082359, 12747740, 22168163, 16091637, 20569094, 1746814130365745, 29962939, 19469538, 29633753, 20598042, 16042673, 2330283917437634, 28734355, 19049453, 20387265, 16941434, 16833527, 2134377517297939, 16069901, 14285317, 22380919, 18436647, 23065323, 2198332517853498, 24790914, 23571055, 16542886, 21286665, 17365043, 1775299525914276, 17296856, 18783224, 22353199, 22083366, 28305362, 2141985016180763, 23294548, 26679352, 13960236, 25328093, 25423453, 1833904417282229, 25600421, 18856999, 18259031, 28806384, 21354456, 2372503618471685, 30237239, 17258090, 16344544, 17903598, 17011832, 1813567818704244, 17786518, 19718981, 25655390, 17242746, 20250147, 1919717517390431, 17835627, 17672719, 17393915, 21566639, 18765602, 2142549626544823, 22228324, 29962927, 18682983, 30179644, 25165496, 1281684618774543, 18747196, 17824637, 19429927, 21429602, 16524926, 1734351419271443, 17019345, 18681862, 17186905, 23330119, 17811438, 2647485317215560, 16875449, 21380789, 17184721, 18508861, 19466309, 2333012417811429, 17019356, 25654936, 17754782, 17752121, 22809871, 1720115918308268, 19777862, 16198143, 29027694, 18828868, 17586955, 2807629526654363, 22977256, 16692232, 27374796, 21142837, 20869721, 1764926525879656, 17847764, 21756699, 19697993, 28364007, 17787259, 2362868530252098, 23007241, 27351628, 18094246, 20031873, 17375354, 2169835026513067, 21538567, 22683212, 16450169, 17478145, 17311728, 1764859617308789, 22836801, 21756677, 18674047, 14084247, 19788303, 2268322527534509, 16833845, 18948177, 17205719, 21756661, 20004021, 1792225413837378, 18084625, 17912217, 11883252, 24842886, 12982566, 2620318214176370, 14764829, 21847223, 16875230, 28079127, 22568797, 1723752129511611, 25635149, 16934803, 17848897, 20441797, 20175161, 1661396418334586, 17288409, 17341326, 17449815, 15913355, 16399083, 1874083720294666, 14565184, 21517440, 17614134, 19854503, 14245531, 1619416018325460, 15979965, 30562923, 20671094, 27870645, 25093656, 1824799116912439, 30562936, 24433711, 19930276, 22092979, 20506715, 2300397920506706, 13871092, 19272701, 17397545, 16785708, 19461270, 2105186213829543, 16220077, 17008068, 18061914, 20448824, 30275359, 1867402419689979, 24411921, 30275351, 17596908, 17036973, 22175564, 1761282820725343, 28199085, 23194294, 17630484, 21051858, 20017509, 2105185217767676, 17232014, 22893153, 12611721, 25555252, 18356166, 1707172119315668, 25764020, 16863422, 21051840, 17267114, 17820741, 1804306421538558, 26243698, 20324049, 30305880, 16392068, 18744139, 2434868526746894, 18628388, 27072923, 14010183, 16595641, 17080436, 1733280020777150, 21453153, 20299015, 18413820, 18264060, 16819962, 2246535221351877, 21051833, 18673342, 30562907, 30562909, 29200700, 2744132616571443, 18328509, 27567477, 18674465, 16422541, 18306996, 1935921921424824, 17443671, 17478514, 21067387, 16268425, 17381384, 1872343417235750, 23328639, 22195448, 24570598, 21172913, 17655240, 1838439116992075, 22195441, 17025461, 30562891, 16472716, 19289642, 2150270222195457, 20475845, 22148226, 26030218, 18331850, 17945983, 1349838224652769, 18673304, 17610798, 19891090, 25369547, 18456514, 832281522657942, 17313525, 17050888, 18317531, 19835133, 17495022, 1173360318798250, 19285025, 18260550, 17390160, 18316692, 19458377, 1436899517551063, 21343838, 12905058, 14735792, 28612674, 16855292, 2331588913364795, 18235390, 18293054, 18673325, 19393542, 30215130, 1465774017532729, 17393683, 17389192, 17783588, 17852463, 19358317, 1744166114034426, 28254374, 20631274, 19207117, 26569225, 17518652, 2466277519475971, 18282562, 19896336, 17348614, 19827973, 17346671, 3102228119791273, 24476274, 22296366, 13853126, 18273830, 17570606, 1355855726007010, 16685417, 18180390, 14692762, 18159793, 17027426, 2447626523177648, 17851160, 16870214, 18202441, 17227073, 20657411, 1900684922606521, 20506699, 28000269, 23536835, 17761775, 20382309, 1630637317801017, 19680952, 16850630, 17694209, 26667015, 17877323, 1823052224563422, 17446237, 17889549, 17551674, 16233738, 22730454, 1757103926667023, 19972570, 18849970, 21532755, 20860659, 22905130, 2116848717016369, 21263635, 17231779, 21343897, 17717883, 27710072, 1852250923209741, 17484731, 21972320, 19972569, 19972568, 17716305, 2105991919972566, 19972564, 26667032, 17394950, 20657441, 17551699, 1700657018051556, 12364061, 18029658, 17546973, 18262334, 19699191, 1722727718018515, 16943711, 17982555, 20828947, 18098207, 18436307, 1958406816898135, 13936038, 19601762, 31010960, 14054676, 25505394, 1822864519013183, 25042823, 17721717, 17239687, 25248384, 25634317, 2013411320273319, 28501075, 21063322, 17344412, 22507210, 16354467, 2179511125505371, 16777840, 25879984, 17811456, 19730508, 17385178, 1816601317484762, 10136473, 6599380, 20717359, 20296213, 27097854, 1395582618193833, 17545847, 16837842, 18964939, 19871910, 25505382, 1781144718554763, 21132297, 25957038, 20004087, 17889583, 19544839, 2663104622507234, 24719736, 18868646, 17042658, 20627866, 14106803, 1395145618139690, 18277454, 13680635, 25823754, 18554871, 18515268, 2016940824908321, 17274537, 17602269, 26575788, 19032867, 17762296, 1482925016929165, 14602788, 28849751, 21794615, 18899974, 29944660, 1844194417811789, 20074391, 14852021, 17705023, 13645875, 24316947, 1666858417786278, 25947799, 20879889, 19578350, 28022101, 22594718, 1638498326439748, 17957017, 19121551, 17570240, 19788842, 18382302, 2708613821330264, 21197626, 14338435, 13944971, 21656630, 18886413, 1715614817936109, 20509482, 27255377, 24717859, 18762750, 21526048, 2456090618096714, 17238511, 26078387, 27053456, 20144308, 25364628, 1824496219433930, 20476175, 19297917, 21174504, 18280813, 28819280, 1761422728357401, 21911701, 17006183, 25809524, 18092127, 19727057, 1769568526039623, 22820579, 20856766, 15861775, 17258582, 21668627, 1948714720925795, 28100487, 26482376, 19554106, 22760679, 21629064, 1819953718091059, 17299889, 21538485, 17546761, 26336977, 25775213, 1815576230803210, 16956380, 19207156, 14705949, 23105538, 26198926, 1925850416314254, 17246576, 17655634, 17890099, 16989630, 20067212, 1972130425077278, 19490948, 18203835, 18203838, 18973907, 18203837, 2948367219615136, 17587063, 18000422, 18641451, 18090142, 21641760, 1701908630559616, 19373893, 18373438, 21820934, 18641461, 17346091, 2142258022351572, 18604493, 23008056, 22901797, 18610915, 17892268, 1750149120907061, 14354737, 17835048, 21787056, 22195485, 22782647, 1708298318641419, 16618694, 14133975, 22195492, 18331812, 18093615, 2438598325897615, 20513399, 21281607, 13866822, 18841764, 17600719, 1784282520558005, 17088068, 9756271, 22195465, 18440047, 19211433, 2151553420331945, 22686674, 18384537, 18607546, 17254374, 18315328, 2311513928790634, 21394225, 16360112, 22195477, 17726838, 18510194, 1757130624766121, 17302277, 21842740, 17551709, 26910644, 17634921, 2548960716538760--------------------------------------------------------------------------------OPatch succeeded.
[oracle@localhost ~]$

升级数据字典:

-- 先检查
set linesize 200
col action_time format a30
col COMMENTS format a20
select * from dba_registry_history;SQL> select * from dba_registry_history;ACTION_TIME                    ACTION                         NAMESPACE                      VERSION                                ID BUNDLE_SERIES                  COMMENTS
------------------------------ ------------------------------ ------------------------------ ------------------------------ ---------- ------------------------------ --------------------
24-AUG-13 12.03.45.119862 PM   APPLY                          SERVER                         11.2.0.4                                0 PSU                            Patchset 11.2.0.2.0
15-NOV-17 10.42.23.468173 PM   APPLY                          SERVER                         11.2.0.4                                0 PSU                            Patchset 11.2.0.2.02 rows selected.SQL> @?/rdbms/admin/catbundle.sql psu apply-- 再次检查
SQL> select * from dba_registry_history;ACTION_TIME                    ACTION                         NAMESPACE                      VERSION                                ID BUNDLE_SERIES                  COMMENTS
------------------------------ ------------------------------ ------------------------------ ------------------------------ ---------- ------------------------------ --------------------
24-AUG-13 12.03.45.119862 PM   APPLY                          SERVER                         11.2.0.4                                0 PSU                            Patchset 11.2.0.2.0
15-NOV-17 10.42.23.468173 PM   APPLY                          SERVER                         11.2.0.4                                0 PSU                            Patchset 11.2.0.2.0
17-JUL-20 10.04.53.432953 PM   APPLY                          SERVER                         11.2.0.4                           200414 PSU                            PSU 11.2.0.4.2004143 rows selected.

安全传送门:https://download.csdn.net/download/u013012406/12624417

每日一记:Oracle升级2020年4月份的数据库补丁Database Patch Set Update : 11.2.0.4.200414 (30670774)相关推荐

  1. 2020年4月份DB-Engines数据库最新排名

    2020年4月份最新的DB-Engines数据库排名出来了,截止目前,该网站实时统计了354种数据库的排名指数,其根据来源于Google,Bing 和Yandex搜索引擎及Stack Overflow ...

  2. Oracle 11.2.0.3.7 PSU补丁升级

    说明:这是新上线主机,还没有建库的.如果库已经存在,那么最后还要进行刷库操作! 环境:Red Hat Enterprise Linux 6.4 (x86_64) 将Oracle数据库从11.2.0.3 ...

  3. oracle 11.2.0.3.4 psu 14275605 下载,Oracle RAC 11.2.0.3.2 升级 11.2.0.3.4

    Oracle RAC 11.2.0.3.2升级11.2.0.3.4 安装环境操作系统:RHEL6.264bitOracle Database版本:11.2.0.3.2Oracle Grid版本:11. ...

  4. 单机 Oracle 11g(11.2.0.4)手动打补丁PSU(11.2.0.4.8)

    环境说明: database : 11.2.0.4 x64 os: centos6.7 x64 准备内容: OPatch : p6880880_112000_Linux-x86-64.zip DB P ...

  5. 11.2.0.3.7 PSU补丁升级

    说明:这是新上线主机,还没有建库的.如果库已经存在,那么最后还要进行刷库操作呢! 环境:SUSE Linux Enterprise Server 11 sp1 (x86_64) 要求将数据库从11.2 ...

  6. Oracle 11.2.0.4 RAC 手动打补丁

    文章目录 1 补丁介绍 1.1 下载补丁和最新OPatch 1.2 补丁说明 2 检查数据库当前OPatch版本 3 确认停止oem 1.查看oem运行状态: 2.如果是运行状态,则需要关闭: 4 更 ...

  7. oracle 11G 11.2.0.4 RAC环境打补丁

    一.准备工作 1,数据库环境 操作系统版本  : RedHat 7.2 x64    数据库版本    : Oracle 11.2.0.4 x64 RAC     Grid          : 11 ...

  8. 【Oracle】11G 11.2.0.4 RAC环境打补丁

    一.准备工作 1,数据库环境 操作系统版本  : RedHat 7.2 x64    数据库版本    : Oracle 11.2.0.4 x64 RAC     Grid          : 11 ...

  9. oracle oui gi是什么,Oracle 11g RAC手动打GI PSU补丁(11.2.0.4.8)

    一.准备工作 1,数据库环境 操作系统版本   : Redhat 6.5 x64 数据库版本     : Oracle 11.2.0.4 x64 RAC Grid           : 11.2.0 ...

最新文章

  1. python查看安装包的版本scipy,numpy,matplotlib等
  2. 在服务器上使用第三方独立组件对Word/Excel进行编程
  3. 之前写的 JSX 的条件语句竟然存在那么多 Bug?
  4. 贾跃亭的乐视股票要被拍卖了,每股2.51元起拍
  5. Eclipse中 Project facet jst.web.jstl has not been defined.解决方案
  6. Java交替打印两个字符串
  7. 【算法】动态规划笔记
  8. 字符流读取的全部方法
  9. 网页版 Nginx 配置文件生成器发布,在线一健生成神器!不用愁了!
  10. 《中国睡眠研究报告2022》:被调查大学生睡前不看手机的不足3%
  11. 小程序发送邮件,小程序云开发使用云函数发送邮件
  12. 新入手Seagate希捷1TB移动硬盘1t USB3.0一个
  13. 再获2亿元A+轮融资,乐生智能能否“扫出”舒适区?
  14. dec在oracle中,在SQL – Oracle中查找匹配的间隔
  15. java代码实现瑟夫环问题
  16. JSOI2014骑士游戏(最短路)
  17. c语言实验植物与颜色,植物的光合作用曲线比较.doc
  18. access vba表字段_ACCESS VBA编程(使用技巧大全)[].doc
  19. zookeeper windows 入门安装和测试
  20. 2019构建餐饮私域流量池,餐饮商家别错过了这个风口,私域流量攻略完整方案!...

热门文章

  1. xbox和微软是一个服务器吗,微软Xbox One X与同配置PC大比拼
  2. 魔兽世界编程宝典读书笔记(5)
  3. 架构师工具-docker环境篇
  4. ubuntu 系统性能提升
  5. python中的format
  6. C++编写简易的飞机大战:画面最美的打飞机!
  7. python底层网络交互模块_Python 利用三个简易模块熟悉前后端交互流程
  8. DCDC直流 400W 15A升压变换器 恒流电源 电源变压器升压模块
  9. 本周资讯top3 【越狱苹果】独家探寻阿里安全潘多拉实验室,完美越狱苹果iOS11.2.1 知道如何从攻击的视角去发现漏洞,才能建立更安全的体系,促进了整个生态的良性发展。以阿里安全潘多拉实验室为例
  10. WinMgmt.exe 产生错误