Oracle Error PLW-05018: unit string omitted optional AUTHID clause; default value DEFINER used

Oracle Error Message

PLW-05018: unit string omitted optional AUTHID clause; default value DEFINER used

Reason for the Error

The AUTHID clause is missing. The unit is allowed to have an AUTHID clause. If the clause is missing, DEFINER’s rights are used by default. Good practice suggests that an explicit AUTHID clause should always be used.

Solution

Write an explicit AUTHID clause for the unit.