Database Error Messages

Release
toggle
  • 23ai
  • 21c
  • 19c
Updated
Jun 24, 2024

PLW-06026

package specification exposes global variable string

Cause

A global variable was directly declared in a package specification.


Action

Rewrite the code to avoid exposing a global variable directly in the package specification. For example, move the global variable to the package body and provide a function to access and return its value. If this is not feasible, then add an "ACCESSIBLE BY" clause (white-list) to the containing package specification, restricting access to a set of known-safe units.