My sympathies. I have had no problems patching 12.2 non-RAC systems. but
fora couple of, but not all our 12.2 RAC databases, patching has been an
Haver you verified that you actually have a corrupt blocks? If so, I am
wondering if the corruption occurred during the last patching cycle. I'm not
sure if Oracle is going to make any changes to any database objects before the
pre-checks are done.
Ian A. MacGregor
SLAC National Accelerator Laboratory
From: oracle-l-bounce@xxxxxxxxxxxxx <oracle-l-bounce@xxxxxxxxxxxxx> on behalf
of Mladen Gogala <gogala.mladen@xxxxxxxxx>
Sent: Sunday, October 20, 2019 4:36 PM
To: oracle-l <oracle-l@xxxxxxxxxxxxx>
Subject: Oracle 12.2 is junk!
I tried patching plain vanilla Oracle 12.2 on OL 7.7 and patch installation
went fine. However "datapatch" part did not work:
[oracle@ora122 30133625]$ $ORACLE_HOME/OPatch/datapatch -verbose
SQL Patching tool version 126.96.36.199.0 Production on Sun Oct 20 19:19:07 2019
Copyright (c) 2012, 2019, Oracle. All rights reserved.
Log file for this invocation:
Connecting to database...OK
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
Queryable inventory could not determine the current opatch status.
Execute 'select dbms_sqlpatch.verify_queryable_inventory from dual'
and/or check the invocation log
for the complete error.
Prereq check failed, exiting without installing any patches.
Please refer to MOS Note 1609718.1 and/or the invocation log
for information on how to resolve the above errors.
SQL Patching tool complete on Sun Oct 20 19:19:20 2019
So, I did what the message suggests:
[oracle@ora122 30133625]$ sqlplus / as sysdba
SQL*Plus: Release 188.8.131.52.0 Production on Sun Oct 20 19:19:40 2019
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Oracle Database 12c Enterprise Edition Release 184.108.40.206.0 - 64bit Production
SQL> select dbms_sqlpatch.verify_queryable_inventory from dual;
ORA-20001: Latest xml inventory is not loaded into table
So, I went to Oracle Support and looked for the message above. No problems, I
am not the first one to encounter this:
datapatch Fails with "ORA-20001: Latest xml inventory is not loaded into table"
due to Block Corruption "ORA-01578" (Doc ID 2364930.1)
Here is the solution:
a) Fix the corrupted blocks and validate SYSAUX datafile.
Note: You need to restore from valid rman backups or datapump exp/imp.
b) Re-run datapatch
So, I've had a fully functional Oracle DB, I install October patches and now I
have to do recovery? What idiot got rid of catbundle PSU apply? I have been
patching Oracle 11g for years and now I have all sorts of problems with Oracle
12.2 and Oracle 18.8? Do we really need a patching utility that causes
unnecessary problems? I rolled back the patches and will not apply any more
patches to 12.2 until Oracle comes up with the sure fire way to fix the
"datapatch" problems and repopulate the tables from "lsinventory".
Tel: (347) 321-1217