Oracle Error PLS-00304: cannot compile body of ‘string’ without its specification

Oracle Error Message

PLS-00304: cannot compile body of ‘string’ without its specification

Reason for the Error

The compiled package specification required to compile a package body could not be found. Some possible causes follow: –the package name is misspelled –the package specification was never compiled –the compiled package specification is not accessible The package specification must be compiled before compiling the package body, and the compiler must have access to the compiled specification.

Solution

Check the spelling of the package name. Compile the package specification before compiling the package body. Also, make sure the compiler has access to the compiled specification.