Oracle数据库 19c OCP 082考题解析第10题

考试科目:1Z0-082

考试题量:90
通过分数:60%
考试时间:150min
本文为云贝教育郭一军guoyJoe原创,请尊重知识产权,转发请注明出处,不接受任何抄袭、演绎和未经注明出处的转载。【云贝教育】Oracle 19c OCP 082题库解析(10) - 课程体系 - 云贝教育本文为云贝教育郭一军guoyJoe原创,请尊重知识产权,转发请注明出处,不接受任何抄袭、演绎和未经注明出处的转载。

10. You want to apply the principle of Least Privilege in all your live databases.
One of your requirements is to revoke unnecessary privileges from all users who have them using Privilege Analysis.
Which two are types of analyses that can be done using the DBMS PRIVILEGE CAPTURE package?
A.analysis of privileges that a user has on other schema's objects
B.analysis of privileges that a user has on their own schema objects
C.analysis of privileges granted indirectly to a role that are then used by a user who has been granted that role
D.analysis of privileges granted directly to a role that are then used by a user who has been granted that role
E.analysis of all privileges used by the sys user


参考答案:AC

解析:

DBMS PRIVILEGE CAPTURE不能分析SYS,也不能分析自己schema的,BDE排除,所以选AC,具体测试详情见下面的脚本

权限分析脚本

role :teacher

owner:teacher1

table:teacher_name

role :student

owner:student1

table:student_name

--1.创建用户

create user student1

identified by "apps"

default tablespace apps_data_tablespace

temporary tablespace apps_tmp_tablespace;

create user teacher1

identified by "apps"

default tablespace apps_data_tablespace

temporary tablespace apps_tmp_tablespace;

--2.授权

--3.创建表

create table student1.student_table_test(id number);

create table teacher1.teacher_table_test(id number);

--4.创建角色并授权

create role student_role;

grant create session to student_role;

--create session 等价于role connect

create role teacher_role;

grant student_role to teacher_role;

grant student_role to student1;

grant teacher_role to teacher1;

--5分析关系

teacher访问student表对应AC

teacher访问teacher表对应BD

--6创建分析策略

BEGIN

DBMS_PRIVILEGE_CAPTURE.CREATE_CAPTURE(

name => 'analysis_role_teacher',

description => '分析teacher角色',

type => DBMS_PRIVILEGE_CAPTURE.G_ROLE,

roles => role_name_list('TEACHER_ROLE')

);

END;

/

--7.开始权限分析

BEGIN

dbms_privilege_capture.enable_capture(NAME =>'analysis_role_teacher');

END;

/

--8关闭权限分析

BEGIN

dbms_privilege_capture.DISABLE_CAPTURE(NAME =>'analysis_role_teacher');

END;

/

--9分析填充视图

BEGIN

dbms_privilege_capture.GENERATE_RESULT(NAME =>'analysis_role_teacher');

END;

/

select * from dba_Role_privs where granted_role='TEACHER_ROLE';

select * from DBA_TAB_PRIVS WHERE GRANTEE ='TEACHER_ROLE';

select * from dba_sys_provs where GRANTEE ='TEACHER_ROLE';

select user_name from DBA_UNUSED_SYSPRIVS ;

select * from DBA_USED_SYSPRIVS ;

--10删除策略函数

BEGIN

dbms_privilege_capture.DROP_CAPTURE (NAME =>'analysis_role_teacher');

END;

/

Oracle 19c OCP 考试为理论考试,需通过两门考试才能拿到"Oracle 19c OCP 证书"。

O racle 19c OCP 1z0-082考试详情

O racle 19c OCP 1z0-083考试详情

Oracle 19c OCP证书如下线下考试在提交培训记录后,需要一周的时间才可以获取到证书,线上考试在通过考试的一小时后可以获取证书。

相关推荐
SelectDB32 分钟前
SelectDB 实时分析性能突出,宝舵成本锐减与性能显著提升的双赢之旅
大数据·数据库·数据分析
V+zmm1013432 分钟前
电器维修系统小程序+论文源码调试讲解
java·数据库·微信小程序·小程序·毕业设计
PawSQL37 分钟前
推理模型对SQL理解能力的评测:DeepSeek r1、GPT-4o、Kimi k1.5和Claude 3.7 Sonnet
java·数据库·人工智能·sql·sql优化·pawsql·deepseek
*星星之火*41 分钟前
【GPT入门】第12课 FunctionCall 生成数据库sql代码
数据库·sql·gpt
陈卓4101 小时前
Redis-缓存穿透&击穿&雪崩
数据库·redis·缓存
泡泡Java1 小时前
Redis离线安装(内网,源码安装)
数据库·redis·缓存
想做富婆1 小时前
存储过程和自定义函数在银行信贷业务中的应用(oracle)
数据库·存储过程·银行贷款业务
珹洺1 小时前
数据库系统概论(三)数据库系统的三级模式结构
java·运维·服务器·数据库·oracle
不知真不只1 小时前
数据库---sqlite3
数据库
Huooya1 小时前
Spring的基础事务注解@Transactional
数据库·spring·面试