My Oracle Support Banner

Initializing CONSTANT PLS_INTEGER With Packaged Function Fails with PLS-00222 Error (Doc ID 2365986.1)

Last updated on MAY 19, 2018

Applies to:

PL/SQL - Version and later
Information in this document applies to any platform.


Initializing a CONSTANT PLS_INTEGER fails with PLS-00222 error. For example, the below package will fail with PLS-00222 error when compiled.

Issue is not seen when using standalone function or when using SIMPLE_INTEGER or INTEGER datatype instead of PLS_INTEGER. 


Database Upgrade to


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.