Assign the execute privilege to a routine
The Execute privilege enables users to invoke a UDR. You might
invoke the UDR from the EXECUTE or CALL statements or from a function
in an expression. By default, the following users have Execute privilege,
which enables them to invoke a UDR:
- Any user with the DBA privilege can execute any routine in the database.
- If the routine is registered with the qualified CREATE DBA FUNCTION or CREATE DBA PROCEDURE statements, only users with the DBA privilege have the Execute privilege for that routine by default.
- If the database is not ANSI compliant, user public (any user with Connect database privilege) automatically has the Execute privilege to a routine that is not registered with the DBA keyword.
- In an ANSI-compliant database, the procedure owner and any user with the DBA privilege can execute the routine without receiving additional privileges.