Oracle Error ORA-26723: user “string” requires the role “string”

Oracle Error Message

ORA-26723: user “string” requires the role “string”

Reason for the Error

The caller did not have the specified role or called the procedure from a definer’s rights package or procedure.

Solution

Grant the specified role to the caller. If the procedure is called from a definer’s rights package or procedure, change the definer’s rights package or procedure to an invoker’s rights package or procedure. Or grant all the privileges for the specified role explicitly.