Oracle Error PLS-00709: pragma string must be declared in package specification and body

Oracle Error Message

PLS-00709: pragma string must be declared in package specification and body

Reason for the Error

The named pragma was declared in a package specification but not in the corresponding package body or vice-versa, as well as the package body.

Solution

Add the pragma to that part of the package declaration that does not have the pragma.