QuestionQ39

VerifiedPL/SQL Language Fundamentals

User ORA41 successfully executes these statements:

Question Image

Now examine this statement, executed successfully by user ORA61 after a successful login:

EXECUTE ora41.update_emp_proc(100,25000);  

Which two statements are true?

Choose two
Explanation

AUTHID CURRENT_USER creates an invoker's-rights procedure. At run time, unqualified object names are resolved using CURRENT_SCHEMA, which initially equals the logged-in user's schema. Consequently, EMPLOYEES is ORA61.EMPLOYEES in this execution. Running the procedure does not grant ORA61, or cause ORA61 to inherit, UPDATE privilege on ORA41.EMPLOYEES.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!