I wouldn’t say 12.2 is junk. But the patching process has taken several steps
backward. Almost to the bad old days when it was basically a crapshoot.
Sent from my iPad
On Oct 20, 2019, at 18:37, Mladen Gogala <gogala.mladen@xxxxxxxxx> wrote:
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 188.8.131.52.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 184.108.40.206.0 Production on Sun Oct 20 19:19:40 2019
Copyright (c) 1982, 2016, Oracle. All rights reserved.
Oracle Database 12c Enterprise Edition Release 220.127.116.11.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