2019-09-03 15:12:31.654 INFO DbUpgrade returned error AutoUpgException [UPG-1400#UPGRADE FAILED [orcl]] - ExecuteDbUpgrade.executeStage
upg_summary.log shows :
Datapatch
Error: prereq checks failed!
$ORACLE_BASE/cfgtoollogs/sqlpatch/sqlpatch_<timestamp>/sqlpatch_invocation.log
Connecting to database...OK
Gathering database info...done
Bootstrapping registry and package to current versions...done
Error: prereq checks failed!
verify_queryable_inventory returned ORA-06502: PL/SQL: numeric or value error: string buffer too small
Prereq check failed, exiting without installing any patches.
Solution 2:
1) Copy login.sql file which is created by autoupgrade under $ORACLE_BASE/cfgtoollogs/upgrade/auto/sql to directory which is defined by SQLPATH Variable
echo $SQLPATH -- to find sqlpath directory
2) re-run autoupgrade