可学答题网 > 问答 > 1Z0-052题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

The HR user creates&en


The HR user creates a stand-alone procedure as follows and grants the EXECUTE privilege on the procedureto many database users: CREATE OR REPLACE PROCEDURE create_dept ( v_deptno NUMBER, v_dname VARCHAR2, v_mgrNUMBER, v_loc NUMBER)BEGIN INSERT INTO hr.departments VALUES (v_deptno, v_dname, v_mgr, v_loc); END; The users having permission to execute the procedure are able to insert records into the DEPARTMENTS tableeven though they do not have the INSERT privilege on the table. You want only those users who haveprivileges on the DEPARTMENTS table to be able to execute the procedure successfully.  What would yousuggest to the PL/SQL developers to achieve this()

  • ACreate the procedure with definer’s right.
  • BCreate the procedure with invoker’s right.
  • CGrant the EXECUTE privilege with GRANT OPTION on the procedure to selected users.
  • DCreate the procedure as part of a PL/SQL package and grant the EXECUTE privilege on the package toselected user
参考答案
参考解析:
分类:1Z0-052题库
相关推荐

1、A user receives the&en

A user receives the following error while executing a query:ORA­01555:snapshot too oldWhich two&ens...

2、The user HR owns 

The user HR owns the EMP table. The user HR grants privileges to the user SCOTT by&en...

3、The session of user&en

The session of user SCOTT receives the following error after executing an UPDATE command onthe&...

4、The user HR receives&e

The user HR receives the following error while inserting data into the TTK table:ERROR at&ensp...

5、The user SCOTT who&ens

The user SCOTT who is the owner of ORDERS and ORDERJTEMS tables issues the following GRANT...

6、The HR user creates&en

The HR user creates a stand-alone procedure as follows and grants the EXECUTE privilege on&ensp...