ORA-6510 : Invoking Natively Compiled (NCOMP) DBMS_WORKLOAD_REPOSITORY Fails

(Doc ID 391008.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version: 10.1.0.2 to 11.2.0.1 - Release: 10.1 to 11.2
Information in this document applies to any platform.
***Checked for relevance on 28-Apr-2010***

Symptoms

When DBMS_WORKLOAD_REPOSITORY is natively compiled using

alter package dbms_workload_repository compile plsql_code_type=native reuse settings;

it fails with the following error:

ERROR at line 1: 
ORA-6510: PL/SQL: unhandled user-defined exception
ORA-6512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 283
ORA-6512: at line 1

The interpreted version of DBMS_WORKLOAD_REPOSITORY works successfully.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms