Oracle
1Z0-063 · Question #105
In your multitenant container database (CDB) that contains pluggable databases (PDBs), the hr user executes the following commands to create and grant privileges on a procedure…
The correct answer is C. Create the create_test procedure with invoker's rights. See the full explanation below for the reasoning.
Question
In your multitenant container database (CDB) that contains pluggable databases (PDBs), the hr user executes the following commands to create and grant privileges on a procedure: CREATEORREPLACEPROCEDUREcreate_test_v(v_emp_idNUMBER,v_enameVARCHA R2,v_SALARYNUMBER,v_dept_idNUMBER) BEGIN INSERT INTO hr.test VALUES (v_emp_id, v_ename, v salary, v_dept_id); END; / GRANT EXECUTE ON CREATE_TEST TO John, jim, smith, king; How can you prevent users having the execute privilege on the create_test_v procedure frominserting values into tables on which they do not have any privileges?
Options
- ACreate the create_test procedure with definer's rights.
- BGrant the execute privilege to users with grant option on the create_test procedure.
- CCreate the create_test procedure with invoker's rights.
- DCreate the create_test procedure as part of a package and grant users the execute privilege on
How the community answered
(42 responses)- A14% (6)
- B2% (1)
- C76% (32)
- D7% (3)
Community Discussion
No community discussion yet for this question.