OCP-1Z0-052-V8.02-183题
来源:互联网 发布:2016年来华留学生数据 编辑:程序博客网 时间:2024/04/29 11:02
183. The HR user creates a stand-alone procedure as follows and grants the EXECUTE privilege on the procedure to many database users:
CREATE OR REPLACE PROCEDURE create_dept ( v_deptno NUMBER, v_dname VARCHAR2, v_mgr NUMBER, 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
table even though they do not have the INSERT privilege on the table. You want only those users who
have privileges on the DEPARTMENTS table to be able to execute the procedure successfully.
What would you suggest to the PL/SQL developers to achieve this?
A.Create the procedure with definer's right.
B.Create the procedure with invoker's right.
C.Grant the EXECUTE privilege with GRANT OPTION on the procedure to selected users.
D.Create the procedure as part of a PL/SQL package and grant the EXECUTE privilege on the package
to selected users.
Answer: B
答案解析:
参考:http://blog.csdn.net/rlhua/article/details/12652569
用户有执行procedure 的权限以至于能够把记录插入到DEPARTMENTS,即使这些用户没有插入DEPARTMENTS表的权限。
你只想只有能够插入DEPARTMENTS表的数据的那些用户执行procedure 成功。
有什么建议来实现?
- OCP-1Z0-052-V8.02-183题
- OCP-1Z0-052-V8.02-1题
- OCP-1Z0-052-V8.02-91题
- OCP-1Z0-052-V8.02-92题
- OCP-1Z0-052-V8.02-80题
- OCP-1Z0-052-V8.02-81题
- OCP-1Z0-052-V8.02-82题
- OCP-1Z0-052-V8.02-79题
- OCP-1Z0-052-V8.02-77题
- OCP-1Z0-052-V8.02-23题
- OCP-1Z0-052-V8.02-72题
- OCP-1Z0-052-V8.02-157题
- OCP-1Z0-052-V8.02-156题
- OCP-1Z0-052-V8.02-155题
- OCP-1Z0-052-V8.02-29题
- OCP-1Z0-052-V8.02-110题
- OCP-1Z0-052-V8.02-165题
- OCP-1Z0-052-V8.02-171题
- 相关数值分析多种算法代码
- CALayer简单教程
- 学习杂记
- 很好的一个面试总结
- PHP实现今天是星期几的几种写法
- OCP-1Z0-052-V8.02-183题
- 使用CSS更改图标的颜色
- 线程安全总结(二)
- cocos2d-x总结(一)HelloWord
- Hadoop中的各种排序
- C++类模板做特化
- Overloading Methods in WCF
- iOS6 SDK新特性
- C++异常处理