修改权限:

chmod 775 -R $ORACLE_HOME/OPatch

chmod 777 -R /u01/orasoft
chown -R oracle:oinstall /u01/orasoft

冲突检查:

$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/orasoft/32545008/32545013

$ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/orasoft/32545008/32579761

[oracle@db3 ~]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/orasoft/32545008/32545013
Oracle Interim Patch Installer version 12.2.0.1.25
Copyright (c) 2022, Oracle Corporation.  All rights reserved.PREREQ sessionOracle Home       : /u01/app/oracle/product/19c/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.25
OUI version       : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2022-03-27_20-14-55PM_1.logInvoking prereq "checkconflictagainstohwithdetail"Prereq "checkConflictAgainstOHWithDetail" passed.OPatch succeeded.
[oracle@db3 ~]$
[oracle@db3 ~]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -phBaseDir /u01/orasoft/32545008/32579761
Oracle Interim Patch Installer version 12.2.0.1.25
Copyright (c) 2022, Oracle Corporation.  All rights reserved.PREREQ sessionOracle Home       : /u01/app/oracle/product/19c/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.25
OUI version       : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2022-03-27_20-15-59PM_1.logInvoking prereq "checkconflictagainstohwithdetail"Prereq "checkConflictAgainstOHWithDetail" passed.OPatch succeeded.
[oracle@db3 ~]$

冲突分析
oracle用户

$ORACLE_HOME/OPatch/opatch  apply /u01/orasoft/32545008/32545013 -analyze

y

y

$ORACLE_HOME/OPatch/opatch  apply /u01/orasoft/32545008/32579761 -analyze

y

y

[oracle@db3 32545008]$ $ORACLE_HOME/OPatch/opatch  apply /u01/orasoft/32545008/32545013 -analyze
Oracle Interim Patch Installer version 12.2.0.1.25
Copyright (c) 2022, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/19c/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.25
OUI version       : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2022-03-27_20-19-54PM_1.logVerifying environment and performing prerequisite checks...
OPatch continues with these patches:   32545013Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
You are calling OPatch with -ocmrf option while this OPatch is generic, not being bundled with OCM. The -ocmrf option is being deprecated. Please remove it while calling OPatch.Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/19c/db_1')Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '32545013' to OH '/u01/app/oracle/product/19c/db_1'
ApplySession: Optional component(s) [ oracle.network.gsm, 19.0.0.0.0 ] , [ oracle.rdbms.ic, 19.0.0.0.0 ] , [ oracle.rdbms.tg4db2, 19.0.0.0.0 ] , [ oracle.tfa, 19.0.0.0.0 ] , [ oracle.options.olap.api, 19.0.0.0.0 ] , [ oracle.ons.cclient, 19.0.0.0.0 ] , [ oracle.options.olap, 19.0.0.0.0 ] , [ oracle.network.cman, 19.0.0.0.0 ] , [ oracle.oid.client, 19.0.0.0.0 ] , [ oracle.ons.eons.bwcompat, 19.0.0.0.0 ] , [ oracle.net.cman, 19.0.0.0.0 ] , [ oracle.xdk.companion, 19.0.0.0.0 ] , [ oracle.jdk, 1.8.0.191.0 ]  not present in the Oracle Home or a higher version is found.
Users request no RAC file generation.  Do not create MP files.Skip patching component oracle.rdbms.rsf, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.util, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.assistants.acf, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.assistants.deconfig, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.assistants.server, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.buildtools.rsf, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.ctx, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.dbjava.ic, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.dbjava.jdbc, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.dbjava.ucp, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.dbtoolslistener, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.duma, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.javavm.client, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.ldap.owm, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.ldap.rsf, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.marvel, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.network.rsf, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.oracore.rsf, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.precomp.common.core, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.dbscripts, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.deconfig, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.oci, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rhp.db, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.sdo, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.sdo.locator.jrf, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.sqlplus, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.wwg.plsql, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.xdk, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.odbc, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.xdk.rsf, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.dbdev, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.xdk.parser.java, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.javavm.server, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.sdo.locator, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.install.plugins, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.mgw.common, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.ons, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.ons.ic, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.ldap.rsf.ic, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.oraolap, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.ctx.atg, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.install.common, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.sqlplus.ic, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.oraolap.dbscripts, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.xdk.xquery, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.network.listener, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.dv, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.oraolap.api, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.scheduler, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.crs, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.ctx.rsf, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.ldap.security.osdt, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.precomp.rsf, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.ldap.client, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.network.client, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.drdaas, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.rman, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.lbac, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.nlsrtl.rsf, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.ovm, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rdbms.rsf.ic, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.precomp.common, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.precomp.lang, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.jdk, 1.8.0.201.0 and its actions.
The actions are reported here, but are not performed.ApplySession skipping inventory update.
Patch 32545013 successfully applied.
Log file location: /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2022-03-27_20-19-54PM_1.logOPatch succeeded.
[oracle@db3 32545008]$ $ORACLE_HOME/OPatch/opatch  apply /u01/orasoft/32545008/32579761 -analyze
Oracle Interim Patch Installer version 12.2.0.1.25
Copyright (c) 2022, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/19c/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.25
OUI version       : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2022-03-27_20-25-05PM_1.logVerifying environment and performing prerequisite checks...--------------------------------------------------------------------------------
Start OOP by Prereq process.
Launch OOP...Oracle Interim Patch Installer version 12.2.0.1.25
Copyright (c) 2022, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/19c/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.25
OUI version       : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2022-03-27_20-25-45PM_1.logVerifying environment and performing prerequisite checks...
OPatch continues with these patches:   32579761Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.
You are calling OPatch with -ocmrf option while this OPatch is generic, not being bundled with OCM. The -ocmrf option is being deprecated. Please remove it while calling OPatch.Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/app/oracle/product/19c/db_1')Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '32579761' to OH '/u01/app/oracle/product/19c/db_1'
ApplySession: Optional component(s) [ oracle.xag, 19.0.0.0.0 ] , [ oracle.has.crs.cvu, 19.0.0.0.0 ] , [ oracle.rhp.crs, 19.0.0.0.0 ] , [ oracle.has.crs, 19.0.0.0.0 ] , [ oracle.has.cvu, 19.0.0.0.0 ]  not present in the Oracle Home or a higher version is found.
Users request no RAC file generation.  Do not create MP files.Skip patching component oracle.rdbms, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.has.common.cvu, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rhp.db, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.has.db, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.has.rsf, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.has.db.cvu, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.has.common, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.Skip patching component oracle.rhp.common, 19.0.0.0.0 and its actions.
The actions are reported here, but are not performed.ApplySession skipping inventory update.
Patch 32579761 successfully applied.
Log file location: /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2022-03-27_20-25-45PM_1.logOPatch succeeded.

关闭数据库,关闭监听

[oracle@db3 ~]$ sqlplus / as sysdbaSQL*Plus: Release 19.0.0.0.0 - Production on Sun Mar 27 20:29:42 2022
Version 19.3.0.0.0Copyright (c) 1982, 2019, Oracle.  All rights reserved.Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
[oracle@db3 ~]$
[oracle@db3 orasoft]$ lsnrctl stopLSNRCTL for Linux: Version 19.0.0.0.0 - Production on 27-MAR-2022 20:31:39Copyright (c) 1991, 2019, Oracle.  All rights reserved.Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=db3)(PORT=1521)))
TNS-12541: TNS:no listenerTNS-12560: TNS:protocol adapter errorTNS-00511: No listenerLinux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12541: TNS:no listenerTNS-12560: TNS:protocol adapter errorTNS-00511: No listenerLinux Error: 111: Connection refused

创建补丁 oracle用户

$ORACLE_HOME/OPatch/opatch  apply /u01/orasoft/32545008/32545013 -oh /u01/app/oracle/product/19c/db_1

$ORACLE_HOME/OPatch/opatch  apply /u01/orasoft/32545008/32579761 -oh /u01/app/oracle/product/19c/db_1

[oracle@db3 ~]$ $ORACLE_HOME/OPatch/opatch  apply /u01/orasoft/32545008/32545013 -oh /u01/app/oracle/product/19c/db_1
Oracle Interim Patch Installer version 12.2.0.1.25
Copyright (c) 2022, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/19c/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.25
OUI version       : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2022-03-27_20-30-26PM_1.logVerifying environment and performing prerequisite checks...
OPatch continues with these patches:   32545013Do 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/19c/db_1')Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '32545013' to OH '/u01/app/oracle/product/19c/db_1'
ApplySession: Optional component(s) [ oracle.network.gsm, 19.0.0.0.0 ] , [ oracle.rdbms.ic, 19.0.0.0.0 ] , [ oracle.rdbms.tg4db2, 19.0.0.0.0 ] , [ oracle.tfa, 19.0.0.0.0 ] , [ oracle.options.olap.api, 19.0.0.0.0 ] , [ oracle.ons.cclient, 19.0.0.0.0 ] , [ oracle.options.olap, 19.0.0.0.0 ] , [ oracle.network.cman, 19.0.0.0.0 ] , [ oracle.oid.client, 19.0.0.0.0 ] , [ oracle.ons.eons.bwcompat, 19.0.0.0.0 ] , [ oracle.net.cman, 19.0.0.0.0 ] , [ oracle.xdk.companion, 19.0.0.0.0 ] , [ oracle.jdk, 1.8.0.191.0 ]  not present in the Oracle Home or a higher version is found.
+Patching component oracle.rdbms.rsf, 19.0.0.0.0...Patching component oracle.rdbms.util, 19.0.0.0.0...Patching component oracle.rdbms, 19.0.0.0.0...Patching component oracle.assistants.acf, 19.0.0.0.0...Patching component oracle.assistants.deconfig, 19.0.0.0.0...Patching component oracle.assistants.server, 19.0.0.0.0...Patching component oracle.buildtools.rsf, 19.0.0.0.0...Patching component oracle.ctx, 19.0.0.0.0...Patching component oracle.dbjava.ic, 19.0.0.0.0...Patching component oracle.dbjava.jdbc, 19.0.0.0.0...Patching component oracle.dbjava.ucp, 19.0.0.0.0...Patching component oracle.dbtoolslistener, 19.0.0.0.0...Patching component oracle.duma, 19.0.0.0.0...Patching component oracle.javavm.client, 19.0.0.0.0...Patching component oracle.ldap.owm, 19.0.0.0.0...Patching component oracle.ldap.rsf, 19.0.0.0.0...Patching component oracle.marvel, 19.0.0.0.0...Patching component oracle.network.rsf, 19.0.0.0.0...Patching component oracle.oracore.rsf, 19.0.0.0.0...Patching component oracle.precomp.common.core, 19.0.0.0.0...Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...Patching component oracle.rdbms.deconfig, 19.0.0.0.0...Patching component oracle.rdbms.oci, 19.0.0.0.0...Patching component oracle.rhp.db, 19.0.0.0.0...Patching component oracle.sdo, 19.0.0.0.0...Patching component oracle.sdo.locator.jrf, 19.0.0.0.0...Patching component oracle.sqlplus, 19.0.0.0.0...Patching component oracle.wwg.plsql, 19.0.0.0.0...Patching component oracle.xdk, 19.0.0.0.0...Patching component oracle.odbc, 19.0.0.0.0...Patching component oracle.xdk.rsf, 19.0.0.0.0...Patching component oracle.dbdev, 19.0.0.0.0...Patching component oracle.xdk.parser.java, 19.0.0.0.0...Patching component oracle.javavm.server, 19.0.0.0.0...Patching component oracle.sdo.locator, 19.0.0.0.0...Patching component oracle.rdbms.install.plugins, 19.0.0.0.0...Patching component oracle.mgw.common, 19.0.0.0.0...Patching component oracle.ons, 19.0.0.0.0...Patching component oracle.ons.ic, 19.0.0.0.0...Patching component oracle.ldap.rsf.ic, 19.0.0.0.0...Patching component oracle.oraolap, 19.0.0.0.0...Patching component oracle.ctx.atg, 19.0.0.0.0...Patching component oracle.rdbms.install.common, 19.0.0.0.0...Patching component oracle.sqlplus.ic, 19.0.0.0.0...Patching component oracle.oraolap.dbscripts, 19.0.0.0.0...Patching component oracle.xdk.xquery, 19.0.0.0.0...Patching component oracle.network.listener, 19.0.0.0.0...Patching component oracle.rdbms.dv, 19.0.0.0.0...Patching component oracle.oraolap.api, 19.0.0.0.0...Patching component oracle.rdbms.scheduler, 19.0.0.0.0...Patching component oracle.rdbms.crs, 19.0.0.0.0...Patching component oracle.ctx.rsf, 19.0.0.0.0...Patching component oracle.ldap.security.osdt, 19.0.0.0.0...Patching component oracle.precomp.rsf, 19.0.0.0.0...Patching component oracle.ldap.client, 19.0.0.0.0...Patching component oracle.network.client, 19.0.0.0.0...Patching component oracle.rdbms.drdaas, 19.0.0.0.0...Patching component oracle.rdbms.rman, 19.0.0.0.0...Patching component oracle.rdbms.lbac, 19.0.0.0.0...Patching component oracle.nlsrtl.rsf, 19.0.0.0.0...Patching component oracle.ovm, 19.0.0.0.0...Patching component oracle.rdbms.rsf.ic, 19.0.0.0.0...Patching component oracle.precomp.common, 19.0.0.0.0...Patching component oracle.precomp.lang, 19.0.0.0.0...Patching component oracle.jdk, 1.8.0.201.0...
Patch 32545013 successfully applied.
Sub-set patch [29517242] has become inactive due to the application of a super-set patch [32545013].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2022-03-27_20-30-26PM_1.logOPatch succeeded.
[oracle@db3 ~]$ +
bash: +: command not found...
[oracle@db3 ~]$
[oracle@db3 ~]$ $ORACLE_HOME/OPatch/opatch  apply /u01/orasoft/32545008/32579761 -oh /u01/app/oracle/product/19c/db_1
Oracle Interim Patch Installer version 12.2.0.1.25
Copyright (c) 2022, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/19c/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.25
OUI version       : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2022-03-27_20-48-18PM_1.logVerifying environment and performing prerequisite checks...--------------------------------------------------------------------------------
Start OOP by Prereq process.
Launch OOP...Oracle Interim Patch Installer version 12.2.0.1.25
Copyright (c) 2022, Oracle Corporation.  All rights reserved.Oracle Home       : /u01/app/oracle/product/19c/db_1
Central Inventory : /u01/app/oracle/oraInventoryfrom           : /u01/app/oracle/product/19c/db_1/oraInst.loc
OPatch version    : 12.2.0.1.25
OUI version       : 12.2.0.7.0
Log file location : /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2022-03-27_20-49-22PM_1.logVerifying environment and performing prerequisite checks...
OPatch continues with these patches:   32579761Do 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/19c/db_1')Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '32579761' to OH '/u01/app/oracle/product/19c/db_1'
ApplySession: Optional component(s) [ oracle.xag, 19.0.0.0.0 ] , [ oracle.has.crs.cvu, 19.0.0.0.0 ] , [ oracle.rhp.crs, 19.0.0.0.0 ] , [ oracle.has.crs, 19.0.0.0.0 ] , [ oracle.has.cvu, 19.0.0.0.0 ]  not present in the Oracle Home or a higher version is found.Patching component oracle.rdbms, 19.0.0.0.0...Patching component oracle.has.common.cvu, 19.0.0.0.0...Patching component oracle.rhp.db, 19.0.0.0.0...Patching component oracle.has.db, 19.0.0.0.0...Patching component oracle.has.rsf, 19.0.0.0.0...Patching component oracle.has.db.cvu, 19.0.0.0.0...Patching component oracle.has.common, 19.0.0.0.0...Patching component oracle.rhp.common, 19.0.0.0.0...
Patch 32579761 successfully applied.
Sub-set patch [29585399] has become inactive due to the application of a super-set patch [32579761].
Please refer to Doc ID 2161861.1 for any possible further required actions.
Log file location: /u01/app/oracle/product/19c/db_1/cfgtoollogs/opatch/opatch2022-03-27_20-49-22PM_1.logOPatch succeeded.
[oracle@db3 ~]$

启库,更新datapatch,将补丁中的sql文件加载到数据库中

oracle用户
sqlplus /nolog
Connect / as sysdba;
startup;
alter pluggable database all open;
quit;

cd $ORACLE_HOME/OPatch
./datapatch -verbose

cd $ORACLE_HOME/rdbms/admin
sqlplus /nolog
CONNECT / AS SYSDBA
@utlrp.sql

[oracle@db3 ~]$ cd $ORACLE_HOME/OPatch
[oracle@db3 OPatch]$ ./datapatch -verbose
SQL Patching tool version 19.11.0.0.0 Production on Sun Mar 27 20:59:06 2022
Copyright (c) 2012, 2021, Oracle.  All rights reserved.Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_15528_2022_03_27_20_59_06/sqlpatch_invocation.logConnecting to database...OK
Gathering database info...done
Bootstrapping registry and package to current versions...done
Determining current state...doneCurrent state of interim SQL patches:No interim patches foundCurrent state of release update SQL patches:Binary registry:19.11.0.0.0 Release_Update 210413004009: InstalledSQL registry:Applied 19.3.0.0.0 Release_Update 190410122720 successfully on 27-MAR-22 07.46.46.742608 PMAdding patches to installation queue and performing prereq checks...done
Installation queue:No interim patches need to be rolled backPatch 32545013 (Database Release Update : 19.11.0.0.210420 (32545013)):Apply from 19.3.0.0.0 Release_Update 190410122720 to 19.11.0.0.0 Release_Update 210413004009No interim patches need to be appliedInstalling patches...Patch installation complete.  Total patches installed: 1Validating logfiles...done
Patch 32545013 apply: SUCCESSlogfile: /u01/app/oracle/cfgtoollogs/sqlpatch/32545013/24175065/32545013_apply_ORCL_2022Mar27_21_00_37.log (no errors)
SQL Patching tool complete on Sun Mar 27 21:16:58 2022
[oracle@db3 OPatch]$

19c 单实例打补丁相关推荐

  1. 抢鲜体验:Oracle 19C单实例数据库安装步骤详解

    抢鲜体验:Oracle 19C单实例数据库安装步骤详解 原创: 李宏达 数据和云 今天 作者:李宏达,云和恩墨北区交付工程师. 大家一直期待的 Oracle Database 19c 今天已经提供公开 ...

  2. ORACLE 19C 单实例数据库安装

    目录 环境信息 安装前准备 开始安装 安装程序 配置监听 安装数据库 安装后 本地连接数据库 总结 本文涉及的安装包下载: 链接:https://pan.baidu.com/s/1cXxAUTvWE6 ...

  3. Oracle单实例打补丁

    1.更新opatch包 1.1 chown oracle.oinstall p6880880_112000_Linux-x86-64_opatch.zip 1.2 unzip p6880880_112 ...

  4. Oracle11.2.0.4数据库单实例补丁安装

    Oracle11.2.0.4数据库单实例补丁安装 1.解压p6880880_112000_Linux-x86-64.zip 生成OPatch文件夹,覆盖原有OPatch文件夹 2.解压p2881387 ...

  5. Oracle 19c 19.10DBRU 最新补丁升级看这一篇就够了

    作者 | JiekeXu 来源 | JiekeXu DBA之路(ID: JiekeXu_IT) 大家好,我是 JiekeXu,很高兴又和大家见面了,今天和大家聊聊 Oracle 19c RU 升级的事 ...

  6. oracle安装卡在create inventory_滴滴云服务器上安装Oracle12cR2单实例数据库

    一.相关说明 Oracle数据库是由美国甲骨文公司推出的一款优秀的关系型数据库.当前最新版为Database 19c.本文简述Oracle Database 12cR2在滴滴云主机上的安装过程.如需更 ...

  7. 滴滴云服务器上安装Oracle12cR2单实例数据库

    一.相关说明 Oracle数据库是由美国甲骨文公司推出的一款优秀的关系型数据库.当前最新版为Database 19c.本文简述Oracle Database 12cR2在滴滴云主机上的安装过程.如需更 ...

  8. mysql 单实例部署_Mysql 数据库单机多实例部署手记

    最近的研发机器需要部署多个环境,包括数据库.为了管理方便考虑将mysql数据库进行隔离,即采用单机多实例部署的方式. 找了会资料发现用的人也不是太多,一般的生产环境为了充分发挥机器性能都是单机单实例运 ...

  9. 表单实例(判断两次密码是否一致)

    表单实例(判断两次密码是否一致) 一.实例描述: 本例是一个综合性的练习,除了们正在学习的JS知识外,还用到了HTML的表格,表单等相关知识. 二.截图 三.代码 1 <!DOCTYPE htm ...

最新文章

  1. 干货|一文读懂中国7大支付体系(附27页流程图)
  2. RocketMQ 很慢?引出了一个未解之谜
  3. uva 725 Division(暴力模拟)
  4. VC6.0编写BHO #error : WINDOWS.H already included. MFC apps must not #include windows.h
  5. Apple着手抛弃32位macOS应用程序
  6. 织梦dede所有标签调用方法大全
  7. 忙了1天的qte-arm环境的搭建
  8. 管理感悟:下结论的套路
  9. 铃木dl250参数_豪爵铃木DL250 ABS测评-通勤篇
  10. 对接微信公众(开放)平台,获取微信用户信息,实现第三方登录
  11. 每日英语--Week8
  12. 呕心沥血互联网产品经理巨作
  13. 相遇在世界尽头与冷酷仙境
  14. [CTSC2010]珠宝商 SAM+后缀树+点分治
  15. GitHub上20多万张不可描述图片的数据集
  16. 大佬H5网页手机端怎么应用微信快捷登陆?
  17. c语言黑白棋程序设计报告,C语言游戏编程 黑白棋游戏
  18. 【五六七人口普查】我国区县级人口基本情况
  19. 1.在表格中操作时间,对时间格式转化,2.自定义规则验证身份证号
  20. 博途S7-1200 和 S7-1200之间PROFINET以太网S7通信教程

热门文章

  1. Java读取Yaml文件
  2. 懒,不想登录Cisco Packet Tracer 7.3怎么办?
  3. (三)5.自动控制原理 Time domain analysis and correct 稳态误差
  4. Excel信息批量替换Word模板生成新文件
  5. RSSI,RSRP,RSRQ and SINR
  6. 从python’s revenge看python反序列化
  7. OPENWRT路由器设置
  8. html实现iphone桌面,HTML_Html5实现iPhone开机界面示例代码,今天我突发其想,想到可以用H - phpStudy...
  9. 【Java 数据结构】树和二叉树
  10. 鸟哥的Linux私房菜 读书笔记