My Oracle Support Banner

DBMS_SHARED_POOL Is Invalid and Will Not Recompile With Error PLS-00201 (Doc ID 406882.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.1.0.6 [Release 9.2 to 11.1]
Information in this document applies to any platform.
***Checked for relevance on 01-Sep-2017***

Symptoms

DBMS_SHARED_POOL is invalid and gets errors when compiled manually such as:

When compiled as sys:

SQL> alter package dbms_shared_pool compile body;
Warning: Package Body altered with compilation errors.

SQL> show errors
Errors for PACKAGE BODY DBMS_SHARED_POOL:

LINE/COL ERROR
-------- -----------------------------------------------------------------
23/7 PL/SQL: SQL Statement ignored
23/48 PLS-00201: identifier 'X$KGLOB' must be declared


When compiled as system:

Errors for PACKAGE BODY SYSTEM.DBMS_SHARED_POOL:

LINE/COL ERROR
-------- -----------------------------------------------------------------
23/7 PL/SQL: SQL Statement ignored
23/48 PL/SQL: ORA-00942: table or view does not exist
79/9 PL/SQL: SQL Statement ignored
84/14 PL/SQL: ORA-00942: table or view does not exist
101/7 PL/SQL: Statement ignored
101/10 PLS-00364: loop index variable 'REC' use is invalid

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.