My Oracle Support Banner

EM 13C:Upgrade Fails With ORA-20000: Insufficient privileges to analyze an object in Schema (Doc ID 2960858.1)

Last updated on JULY 26, 2023

Applies to:

Enterprise Manager Base Platform - Version 13.5.0.0.0 to 13.5.0.0.0 [Release 13c]
Information in this document applies to any platform.

Goal

In Enterprise Manager Cloud Control upgrade from 13.4 to 13.5 with Software Only Install and configure later fails
with the following error during configureGC.sh:

From /oms_home/cfgtoollogs/omsca/omsca<timestamp>.log

INFO: Completed migrating policy store with exit code: 2
Jul 07, 2023 1:27:51 PM oracle.sysman.omsca.adapter.wls.OMSWLSAdapter adapterPostDeployAndReposSetup
SEVERE: Exception occurred while securing OMS:
java.lang.Exception: Migrating policy store failed with exit code: 2
at oracle.sysman.emctl.util.UpgradeOPSS.performUpgrade(UpgradeOPSS.java:224)
at oracle.sysman.omsca.adapter.wls.OMSWLSAdapter.adapterPostDeployAndReposSetup(OMSWLSAdapter.java:3693)
at oracle.sysman.omsca.framework.OMSGenericAdapter.postDeployAndReposSetup(OMSGenericAdapter.java:333)
at oracle.sysman.omsca.framework.OMSCAUpgradeInstall.execute(OMSCAUpgradeInstall.java:598)
at oracle.sysman.omsca.framework.OMSConfigAssistantDriver.main(OMSConfigAssistantDriver.java:289)

From secure.log

Initializing WebLogic Scripting Tool (WLST) ...
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Migrate policies jps-config: /<oms_base_dir>/em/gc_inst13.5/em/EMGC_OMS1/sysman/config/upgrade_migrate_policies.xml
Migrating policyStore
set common.components.home to /<oms_base_dir>/em/oem13.5/oracle_common
COMMAND FAILED due to an unknown reason, Check the stack trace for details
Name of Exception: javax.persistence.PersistenceException
Code of Exception: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.7.v20190604-418f1a1c56): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: java.sql.SQLException: ORA-20000: Insufficient privileges to analyze an object in Schema
ORA-06512: at "SYS.DBMS_STATS", line 42258
ORA-06512: at "SYS.DBMS_STATS", line 42213
ORA-06512: at "SYS.DBMS_STATS", line 42031
ORA-06512: at "SYS.DBMS_STATS", line 41211
ORA-06512: at "SYS.DBMS_STATS", line 41912
ORA-06512: at "SYS.DBMS_STATS", line 42163
ORA-06512: at "SYS.DBMS_STATS", line 42244
ORA-06512: at line 1
Error Code: 20000
Call: BEGIN DBMS_STATS.gather_schema_stats(ownname=>NULL, no_invalidate=>FALSE, options=>'GATHER AUTO'); END;
Query: DataModifyQuery(sql="BEGIN DBMS_STATS.gather_schema_stats(ownname=>NULL, no_invalidate=>FALSE, options=>'GATHER AUTO'); END;")
SEVERE: Exception occurred while migrating policystore
2023-07-07 13:27:51,829 [main] INFO util.EmctlUtil logp.251 - Exit code: 2
2023-07-07 13:27:51,830 [main] INFO util.EmctlUtil logp.251 - error messages of the command :
Jul 07, 2023 1:25:49 PM oracle.security.jps.internal.config.xml.XmlConfigurationFactory validateFileLocation
INFO: JPS Config: /<oms_base_dir>/em/gc_inst13.5/em/EMGC_OMS1/sysman/config/upgrade_migrate_policies.xml
Jul 07, 2023 1:26:00 PM oracle.security.jps.az.internal.runtime.policy.AbstractPolicyImpl initializeReadStore
INFO: Property for read store in parallel: oracle.security.jps.az.runtime.readstore.threads = null

 

 

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.