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 12.2.0.1 and later
Information in this document applies to any platform.

Symptoms

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. 

Changes

Database Upgrade to 12.2.0.1.

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