In PL/SQL, a package-level CONSTANT must be initialized at the point of declaration because its value can never be supplied or altered afterward (error PLS-00322: declaration of a constant must contain an initialization assignment), and a variable declared NOT NULL must likewise be initialized in its own declaration because it can never legally hold a null value (error PLS-00218: a variable declared NOT NULL must have an initialization assignment); violating either rule prevents the package specification from compiling. A package specification containing only variable, constant, and type declarations, with no subprogram specs, needs no corresponding package body. Ordinary public package-level variables, once properly declared, may be read and assigned by any program unit that references the package.
Community Discussion