How to fix the Oracle error PLS-00708: Pragma string must be declared in a package specification?

In this post, you’ll learn more about the Oracle ErrorPLS-00708: Pragma string must be declared in a package specification with the details on why you receive this error and the possible solution to fix it.

Oracle Error Description

PLS-00708: Pragma string must be declared in a package specification

Reason for the Error PLS-00708: Pragma string must be declared in a package specification

The named pragma was not declared in a package specification, as required. For example, the pragma RESTRICT_REFERENCES must be declared in a package specification.

How to fix the Error PLS-00708: Pragma string must be declared in a package specification ?

You can fix this error in Oracle by following the below steps

Remove or relocate the misplaced pragma.

Tags :

Leave Your Comment