In your multitenant container database (CDB) that contains pluggable databases (PDBs), the hr user executes the followin

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899559
Joined: Mon Aug 02, 2021 8:13 am

In your multitenant container database (CDB) that contains pluggable databases (PDBs), the hr user executes the followin

Post by answerhappygod »

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:CREATE OR REPLACE PROCEDURE create_test_v(v_emp_idNUMBER,v_enameVARCHAR2, 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 from inserting values into tables on which they do not have any privileges?

A. Create the create_test procedure with definer's rights.
B. Grant the execute privilege to users with grant option on the create_test procedure.
C. Create the create_test procedure with invoker's rights.
D. Create the create_test procedure as part of a package and grant users the execute privilege on the package.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!

This question has been solved and has 1 reply.

You must be registered to view answers and replies in this topic. Registration is free.


Register Login
 
Post Reply