My Oracle Support Banner

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

Last updated on FEBRUARY 03, 2022

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 to 11.1.0.6 [Release 9.2 to 11.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.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!


In this Document
Symptoms
Cause
Solution

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