Skip to content

MRP Patching ohne Downtime

Oracle bietet für MRP Patches unter Linux x86_64 die Option, diese im die laufende Datenbank Instanz einzuspielen – ohne Downtime. Zeit, sich diese Möglichkeit im Detail anzusehen! Als Basis wird eine Oracle 19.33 Installation genutzt und der MRP vom November 2026. MRP Patch bereitstellen und entpacken Im ersten Schritt legen wir ein Verzeichnis an, in...

 Chris Pfundtner
Nov 20, 202610 min read

racle bietet für MRP Patches unter Linux x86_64 die Option, diese im die laufende Datenbank Instanz einzuspielen – ohne Downtime. Zeit, sich diese Möglichkeit im Detail anzusehen!

Als Basis wird eine Oracle 19.33 Installation genutzt und der MRP vom November 2026.

MRP Patch bereitstellen und entpacken

Im ersten Schritt legen wir ein Verzeichnis an, in dem wir den MRP entpacken können:

mkdir -p /u01/patches/MRP/19.33

Jetzt den MRP Patche entpacken:

unzip -o /u01/stage/MRP/p40196156_1933000DBRU_Linux-x86-64.zip \ -d /u01/patches/MRP/19.33

OPatch Voraussetzungen prüfen

In der ReadMe des MRP finden wir heraus das die mindest Version des OPatch 12.2.0.1.52
sein muss. Unsere Version überprüfen wir mit:

$ORACLE_HOME/OPatch/opatch version OPatch Version: 12.2.0.1.54

Wir brauchen OPatch nicht zu aktualisieren.

MRP Patches im Home ONLINE einspielen

Ohne die Datenbank herunterzufahren spielen wir nun den MRP Patch ein.
Wichtig ist der Parameter -online. Dafür brauchen wir auch einen connect string auf die Datenbank. der Connect String besteht aus SID:sys:sys_pwd[:rac_knoten].

cd $ORACLE_HOME $ORACLE_HOME/OPatch/opatch napply /u01/patches/MRP/19.33/40196156 \ -online -connectString ORCL:sys:oracle Oracle Interim Patch Installer version 12.2.0.1.54 Copyright (c) 2026, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/product/19.33_EE Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/product/19.33_EE/oraInst.loc OPatch version : 12.2.0.1.54 OUI version : 12.2.0.7.0 Log file location : /u01/app/oracle/product/19.33_EE/cfgtoollogs/opatch/opatch2026-11-19_14-34-21PM_1.log Verifying environment and performing prerequisite checks... OPatch Apply Session is Online. The following online patch(es) will be applied: 33566299 The following special offline patch(es) (which are applicable when the system is up) will be applied in this session: 40127726 40130806 The following offline patch(es) will be skipped: 40096495 40180925 This(these) offline patch(es) need to be applied in a separate offline patching session when the system is down OPatch continues with these patches: 33566299 40127726 40130806 Do you want to proceed? [y|n] y User Responded with: Y All checks passed. Backing up files... Applying interim patch '33566299' to OH '/u01/app/oracle/product/19.33_EE' Patching component oracle.rdbms, 19.0.0.0.0... Installing and enabling the online patch 'bug33566299.pch', on database 'ORCL'. Applying interim patch '40127726' to OH '/u01/app/oracle/product/19.33_EE' Patching component oracle.dbdev, 19.0.0.0.0... Applying interim patch '40130806' to OH '/u01/app/oracle/product/19.33_EE' Patching component oracle.ctx, 19.0.0.0.0... Patches 33566299,40127726,40130806 successfully applied. Log file location: /u01/app/oracle/product/19.33_EE/cfgtoollogs/opatch/opatch2026-11-19_14-34-21PM_1.log OPatch succeeded.

Wichtig ist die folgende Information:

The following offline patch(es) will be skipped: 40096495 40180925 This(these) offline patch(es) need to be applied in a separate offline patching session when the system is down

Somit wird ersichtlich, ein ONLINE Patching enthält nicht alle Patches des MRP. Der Grund ist auch leicht verständlich. Wenn der Patch eine Änderung am Oracle Executable benötigt, geht das – zumindest aktuell – nicht. Ein ONLINE Patching ist somit kein vollständiges Patching. Man muss immer prüfen, was genau behoben wird und ob dies ausreichend ist.

Prüfen wir jetzt mit OPatch welche Patches vorhanden sind:

opatch lspatches 33566299;XF23.1INCREASE_COLUMN_LIMIT_1K - TRC - KFDS_UNITTESTINIT - ORA-600 [KFDS_UNITTESTINIT 04];(online) 40127726;Fix for Bug 40127726;(online) 40130806;Fix for bug 40130806;(online) 39803650;OJVM RELEASE UPDATE: 19.33.0.0.261020 (39803650) 39915792;Database Release Update : 19.33.0.0.261020 (39915792) 29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)

Datapatch durchführen

Im nächsten Schritt führen wir den datapatch durch.

$ORACLE_HOME/OPatch/datapatch SQL Patching tool version 19.33.0.0.0 Production on Thu Nov 19 14:40:29 2026 Copyright (c) 2012, 2026, Oracle. All rights reserved. Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_39067_2026_11_19_14_40_29/sqlpatch_invocation.log Connecting to database...OK Gathering database info...done Note: Datapatch will only apply or rollback SQL fixes for PDBs that are in an open state, no patches will be applied to closed PDBs. Please refer to Note: Datapatch: Database 12c Post Patch SQL Automation (Doc ID 1585822.1) Bootstrapping registry and package to current versions...done Determining current state...done Current state of interim SQL patches: Interim patch 38906621 (OJVM RELEASE UPDATE: 19.31.0.0.260421 (38906621)): Binary registry: Not installed PDB CDB$ROOT: Rolled back successfully on 30-SEP-26 01.36.36.108705 PM PDB ORCLPDB1: Rolled back successfully on 30-SEP-26 01.38.20.139874 PM PDB PDB$SEED: Rolled back successfully on 30-SEP-26 01.38.21.021831 PM Interim patch 39222882 (OJVM RELEASE UPDATE: 19.32.0.0.260721 (39222882)): Binary registry: Not installed PDB CDB$ROOT: Rolled back successfully on 11-NOV-26 02.08.31.397774 PM PDB ORCLPDB1: Rolled back successfully on 11-NOV-26 02.10.18.329053 PM PDB PDB$SEED: Rolled back successfully on 11-NOV-26 02.10.18.687733 PM Interim patch 39803650 (OJVM RELEASE UPDATE: 19.33.0.0.261020 (39803650)): Binary registry: Installed PDB CDB$ROOT: Applied successfully on 11-NOV-26 02.08.41.993547 PM PDB ORCLPDB1: Applied successfully on 11-NOV-26 02.10.28.219434 PM PDB PDB$SEED: Applied successfully on 11-NOV-26 02.10.28.072334 PM Current state of release update SQL patches: Binary registry: 19.33.0.0.0 Release_Update 261009085306: Installed PDB CDB$ROOT: Applied 19.33.0.0.0 Release_Update 261009085306 successfully on 11-NOV-26 02.09.23.908869 PM PDB ORCLPDB1: Applied 19.33.0.0.0 Release_Update 261009085306 successfully on 11-NOV-26 02.10.48.362635 PM PDB PDB$SEED: Applied 19.33.0.0.0 Release_Update 261009085306 successfully on 11-NOV-26 02.10.48.568870 PM Adding patches to installation queue and performing prereq checks...done Installation queue: For the following PDBs: CDB$ROOT PDB$SEED ORCLPDB1 No interim patches need to be rolled back No release update patches need to be installed No interim patches need to be applied SQL Patching tool complete on Thu Nov 19 14:40:54 2026

Recompile mit UTLrp

Da wir eine Container-Datenbank haben, müssen wir sicherstellen das im Container und allen
PDB’s auch der recompile läuft. Dazu können wir ein perl-script von Oracle nutzen:

$ORACLE_HOME/perl/bin/perl $ORACLE_HOME/rdbms/admin/catcon.pl -n 1 -e \ -b utlrp -d $ORACLE_HOME/rdbms/admin utlrp.sql

Was findet man im Alert.log?

Interessante Meldung dabei im alert.log:

WARNING: Online patches are installed. Please replace the online patches WARNING: with regular (offline) patches on next instance startup.

Hier wird nochmals klargestellt, dass man den Online eingespielten MRP bei nächster Gelegenheit (Downtime), den Patch normal einspielen muss.

MRP Patches OFFLINE im Home einspielen

Nachdem alles aus dem Oracle Home gestoppt wurde (Listener, Datenbank Instanzen), kann man den MRP jetzt OFFLINE einspielen.

cd $ORACLE_HOME $ORACLE_HOME/OPatch/opatch napply /u01/patches/MRP/19.33/40196156 Oracle Interim Patch Installer version 12.2.0.1.54 Copyright (c) 2026, Oracle Corporation. All rights reserved. Oracle Home : /u01/app/oracle/product/19.33_EE Central Inventory : /u01/app/oraInventory from : /u01/app/oracle/product/19.33_EE/oraInst.loc OPatch version : 12.2.0.1.54 OUI version : 12.2.0.7.0 Log file location : /u01/app/oracle/product/19.33_EE/cfgtoollogs/opatch/opatch2026-11-19_15-15-33PM_1.log Verifying environment and performing prerequisite checks... The following patches are duplicate and are skipped: [ 40127726 40130806 ] Conflicts/Supersets for each patch are: Patch : 33566299 Better duplicate of 33566299 Online patch(es) [ 33566299 ] will be rolled back as offline content is getting replaced. OPatch continues with these patches: 33566299 40096495 40180925 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/19.33_EE') Is the local system ready for patching? [y|n] y User Responded with: Y Backing up files... Applying interim patch '33566299' to OH '/u01/app/oracle/product/19.33_EE' Rolling back interim patch '33566299' from OH '/u01/app/oracle/product/19.33_EE' Patching component oracle.rdbms, 19.0.0.0.0... The patch will be removed from database instances. RollbackSession removing interim patch '33566299' from inventory OPatch back to application of the patch '33566299' after auto-rollback. Patching component oracle.rdbms, 19.0.0.0.0... Applying interim patch '40096495' to OH '/u01/app/oracle/product/19.33_EE' ApplySession: Optional component(s) [ oracle.crypto.rsf, 19.0.0.0.0 ] not present in the Oracle Home or a higher version is found. Patching component oracle.ldap.rsf, 19.0.0.0.0... Patching component oracle.rdbms, 19.0.0.0.0... Patching component oracle.rdbms.rsf, 19.0.0.0.0... Applying interim patch '40180925' to OH '/u01/app/oracle/product/19.33_EE' Patching component oracle.perlint, 5.28.1.0.0... Patches 33566299,40096495,40180925 successfully applied. OPatch Session completed with warnings. Log file location: /u01/app/oracle/product/19.33_EE/cfgtoollogs/opatch/opatch2026-11-19_15-15-33PM_1.log OPatch completed with warnings.

Wie man sieht, werden die zuvor Online einspielten Patches zuerst Rollbacked und dann wieder installiert.

Da er mit Warnings beendet, sehen wir uns mal das log an:

vi /u01/app/oracle/product/19.33_EE/cfgtoollogs/opatch/opatch2026-11-19_15-15-33PM_1.log

Das einzige Warning das er meldet ist:

[Nov 19, 2026 3:18:16 PM] [INFO] The following warnings have occurred during OPatch execution: [Nov 19, 2026 3:18:16 PM] [INFO] 1) OUI-67335: Online patch(es) [ 33566299 ] will be rolled back as offline content is getting replaced.

Das er einen Rollback machen muss, ist ja kein Problem, da der Patch ja eingespielt wird wieder. Das können wir sehen wenn wir uns die Patches ansehen:

$ORACLE_HOME/OPatch/opatch lspatches 40180925;Fix for Bug 40180925 40096495;Fix for bug 40096495 33566299;XF23.1INCREASE_COLUMN_LIMIT_1K - TRC - KFDS_UNITTESTINIT - ORA-600 [KFDS_UNITTESTINIT 04] 40127726;Fix for Bug 40127726;(online) 40130806;Fix for bug 40130806;(online) 39803650;OJVM RELEASE UPDATE: 19.33.0.0.261020 (39803650) 39915792;Database Release Update : 19.33.0.0.261020 (39915792) 29585399;OCW RELEASE UPDATE 19.3.0.0.0 (29585399)

Bei Patch 33566299 steht nun nicht mehr online dabei. Da hier ein Rollback war und neu eingespielt wurde, macht das auch Sinn und wirkt richtig. Das die anderen beide noch auf online stehen wirkt auch richtg, da er die ja gezielt übersprungen hat.

root.sh ausführen

Nun führen wir das root.sh-Script aus als root und melden uns nachher wieder ab:

su - /u01/app/oracle/product/19.33_EE/root.sh exit

DB starten und Datapatch durchführen

Nun starten wir die Datenbank und führen den Datapatch aus:

sqlplus / as sysdba <<< 'startup' $ORACLE_HOME/OPatch/datapatch Current state of interim SQL patches: Interim patch 38906621 (OJVM RELEASE UPDATE: 19.31.0.0.260421 (38906621)): Binary registry: Not installed PDB CDB$ROOT: Rolled back successfully on 30-SEP-26 01.36.36.108705 PM PDB ORCLPDB1: Rolled back successfully on 30-SEP-26 01.38.20.139874 PM PDB PDB$SEED: Rolled back successfully on 30-SEP-26 01.38.21.021831 PM Interim patch 39222882 (OJVM RELEASE UPDATE: 19.32.0.0.260721 (39222882)): Binary registry: Not installed PDB CDB$ROOT: Rolled back successfully on 11-NOV-26 02.08.31.397774 PM PDB ORCLPDB1: Rolled back successfully on 11-NOV-26 02.10.18.329053 PM PDB PDB$SEED: Rolled back successfully on 11-NOV-26 02.10.18.687733 PM Interim patch 39803650 (OJVM RELEASE UPDATE: 19.33.0.0.261020 (39803650)): Binary registry: Installed PDB CDB$ROOT: Applied successfully on 11-NOV-26 02.08.41.993547 PM PDB ORCLPDB1: Applied successfully on 11-NOV-26 02.10.28.219434 PM PDB PDB$SEED: Applied successfully on 11-NOV-26 02.10.28.072334 PM Current state of release update SQL patches: Binary registry: 19.33.0.0.0 Release_Update 261009085306: Installed PDB CDB$ROOT: Applied 19.33.0.0.0 Release_Update 261009085306 successfully on 11-NOV-26 02.09.23.908869 PM PDB ORCLPDB1: Applied 19.33.0.0.0 Release_Update 261009085306 successfully on 11-NOV-26 02.10.48.362635 PM PDB PDB$SEED: Applied 19.33.0.0.0 Release_Update 261009085306 successfully on 11-NOV-26 02.10.48.568870 PM Adding patches to installation queue and performing prereq checks...done Installation queue: For the following PDBs: CDB$ROOT PDB$SEED ORCLPDB1 No interim patches need to be rolled back No release update patches need to be installed No interim patches need to be applied SQL Patching tool complete on Thu Nov 19 15:32:39 2026

Im alert.log gibt es keine Beschwerden zu den Patches.

Recompile

Da wir eine Container-Datenbank haben, müssen wir sicherstellen das im Container und allen
PDB’s auch der recompile läuft. Dazu können wir ein perl-script von Oracle nutzen:

$ORACLE_HOME/perl/bin/perl $ORACLE_HOME/rdbms/admin/catcon.pl -n 1 -e \ -b utlrp -d $ORACLE_HOME/rdbms/admin utlrp.sql

Patchhistory in der Datenbank

sqlplus / as sysdba <<_EOF set lines 500 set pages 1000 set serveroutput on set long 2000000 col action_time for a22 col action for a10 col description for a60 col status for a20 col version for a10 col source_version for a20 col target_version for a20 col comp_id for a15 select to_char(action_time, 'YYYY-MM-DD hh24:mi:ss') as action_time , con_id , action , status , description , source_version , target_version , patch_id from cdb_registry_sqlpatch order by action_time ; _EOF

Liefert mir keine MRP-Patches, also leider wenig hilfreich.
Im alert.log finden wir die aktuellen Patches, da das alert.log sie aus den Binaries ausliest:

Patch Id: 29585399 Unique Patch Id: 22840393 Patch Description: OCW RELEASE UPDATE 19.3.0.0.0 (29585399) Patch Apply Time: 2019-04-18T09:21:33+02:00 Patch Type: Release Update Patch Id: 39915792 Unique Patch Id: 29514650 Patch Description: Database Release Update : 19.33.0.0.261020 (39915792) Patch Apply Time: 2026-11-11T12:51:52+01:00 Patch Type: Release Update Patch Id: 39803650 Unique Patch Id: 29440738 Patch Description: OJVM RELEASE UPDATE: 19.33.0.0.261020 (39803650) Patch Apply Time: 2026-11-11T12:56:29+01:00 Patch Type: Release Update Patch Id: 40130806 Unique Patch Id: 29580011 Patch Description: Fix for bug 40130806 Patch Apply Time: 2026-11-19T14:35:21+01:00 This patch overlays patches: 39915792 Bugs Fixed: 40130806 Patch Id: 40127726 Unique Patch Id: 29581413 Patch Description: Fix for Bug 40127726 Patch Apply Time: 2026-11-19T14:35:21+01:00 This patch overlays patches: 39915792 Bugs Fixed: 40127726 Patch Id: 33566299 Unique Patch Id: 29482390 Patch Description: XF23.1INCREASE_COLUMN_LIMIT_1K - TRC - KFDS_UNITTESTINIT - ORA-600 [KFDS_UNITTESTINIT 04] Patch Apply Time: 2026-11-19T15:17:03+01:00 This patch overlays patches: 39915792 Bugs Fixed: 33566299 Patch Id: 40096495 Unique Patch Id: 29575544 Patch Description: Fix for bug 40096495 Patch Apply Time: 2026-11-19T15:17:20+01:00 This patch overlays patches: 39915792 Bugs Fixed: 40096495 Patch Id: 40180925 Unique Patch Id: 29580824 Patch Description: Fix for Bug 40180925 Patch Apply Time: 2026-11-19T15:17:47+01:00 This patch overlays patches: 39915792 Bugs Fixed: 40180925

Alertlog prüfen

Im Alert.log sind keine ungewöhnlichen Meldungen zu finden. Somit passt alles.

Zusammenfassung

Ja, man kann auch MRPs und damit CSPUs Online einspielen, aber nur jene Patches, die ausschließlich im Data Dictionary Fehler beheben. Sobald Code im Oracle Executable geändert werden muss, geht es nicht ohne Downtime.

Man muss sich somit genau anschauen, welche Patches Online eingespielt werden und ob dies beispielsweise die gewünschten Fehler und Sicherheitslücken behebt.

Did you enjoy this article?

Recommend it — Standard Reader surfaces well-loved writing to more readers across the network.

Across the AtmosphereDiscussions