229k views
4 votes
When must authid current user be included in an autonomous transaction subprogram?

a. when using commit or rollback
b. when using grant on the subprogram
c. when declaring invoker's rights
d. when declaring definer's rights

User Lsimmons
by
8.7k points

1 Answer

6 votes

Final answer:

The 'authid current_user' clause must be included in an autonomous transaction subprogram when declaring definer's rights.

Step-by-step explanation:

The 'authid current_user' clause must be included in an autonomous transaction subprogram when declaring definer's rights. With definer's rights, the subprogram executes with the privileges of the subprogram owner or definer. When the 'authid current_user' clause is not specified, the subprogram executes with the privileges of the invoker, which may not have the necessary privileges to perform certain actions.

User Lukejanicke
by
8.4k points