160.View the Exhibit to observe the roles assigned to the SLP_REP user. Which statement is true a

本文讨论了数据库用户SLP_REP的角色分配情况,特别是SELECT_CATALOG_ROLE角色的使用条件。用户必须明确启用角色才能使用,而不能直接授予他人,也不依赖DBA的操作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

160.View the Exhibit to observe the roles assigned to the SLP_REP user.


Which statement is true about the assignment of the SELECT_CATALOG_ROLE role to the SLP_REP
user?
A.The user must enable the role explicitly.
B.The user can grant the role to other users.
C.The user cannot use the role until the DBA enables it explicitly.
D.The user can start using the role immediately without any changes.
答案:A
解析:
A:正确,从图中可以看到角色SELECT_CATALOG_ROLE 的default为N,因此不是默认的,如果想要使用那么需要启用该角色
   alter user slp_rep default role none; --将用户的默认角色设置为none
   alter user slp_rep default role resource,connect; --设置三个都为默认角色
   alter user slp_rep default role all;--设置所有的默认角色
   alter user slp_rep default role all except SELECT_CATALOG_ROLE;--设置除了SELECT_CATALOG_ROLE其他都为默认的角色
   select * from user_role_privs;--从字段DEF查看启用状态
   set role overall_manage identified by password;--启用角色,如果有密码的话增加identified by password语句
   set role none; --恢复默认
B:错误,首先它不是默认的,并且admin为N因此不可以授予其他用户
C:错误,前半句诗对的,他不能使用这个角色,需要启用一下,但是并不是dba来启用,而是它自己
D:错误,需要启用
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值