第77题-OCP认证062考试题库2019最新考题解析
最新学讯:近期OCP认证正在报名中,因考试人员较多请尽快报名获取最近考试时间,报名费用请联系在线老师,甲骨文官方认证,报名从速!
我要咨询2018年的时候,OCP 11g考试题库大更新,052 053出现了很多新题,
2019年,11g即将停考的前期,Oracle又出现了一次大变动,12c出现了很多新题,比如062 063题库大更新
OCP解析公开课时间:【每周五晚8点】
OCP解析公开课地址:http://ke.qq.com/course/326223
OCP解析群资料分享:1015267481 验证:ocp
-------------------------------------------------------
QUESTION 77
You execute the following piece of code with appropriate privileges:BEGIN
DBMS_REDACT.ADD_POLICY(
object_schema => 'SCOTT',
object_name => 'EMP',
column_name => 'SAL',
policy_name => 'SCOTT_EMP',
function_type => DBMS_REDACT.FULL,
expression => 'SYS_CONTEXT(''SYS_SESSION_ROLES'',''MGR'')
= ''FALSE''');
END;
BEGIN
DBMS_REDACT.ADD_POLICY(
object_schema => 'SCOTT',
object_name => 'EMP_VW',
column_name => 'SAL',
policy_name => 'SCOTT_EMP_VW',
function_type => DBMS_REDACT.NONE,
expression => 'SYS_CONTEXT(''SYS_SESSION_ROLES'',''MGR'')
= ''FALSE''');
END;
User SCOTT has been granted the CREATE SESSION privilege and the MGR role.
Which two statements are true when a session logged in as SCOTT queries the SAL column in the view and the table?
A. Data is redacted for t he EMP.SAL column only if t he SCOTT session does not have the MGR role set.
B. Data is redacted for EMP.SAL column only if t he SCOTT session has the MGR role set.
C. Data is never redacted for t he EMP_V.SAL column.
D. Data is redacted for t he EMP_V.SAL column only if t he SCOTT session has the MGR role set.
E. Data is redacted for t he EMP_V.SAL column only if t he SCOTT session does not have the MGR role set.
Correct Answer: AC
(解析:第一种情况:
如 果 scott 用 户 没 有 mgr 角 色 , 那 么 : 查 看 emp 时 sal 是 - 1 上 面 用DBMS_REDACT.UPDATE_FULL_REDACTION_VALUES 修改过的默认的值。但是查看 emp_vw 时,能够看得正常的数据。
第二种情况:
如果 scott 有 mgr 角色,那么:查看 emp 时 sal 是正常的值。通过 em_vw 查看时 sal 也是正常的值。注意表和视图 redact 的区别。