如何授予角色读取和创建视图权限?
以下是我完成的步骤:
-
角色"CUSTOM_ROLE"的授权声明:
将MY_VIEW_1选择授予CUSTOM_ROLE;
-
将角色分配给用户标识:
授予CUSTOM_ROLE USERID_123;
错误:
01924. 00000 - "role '%s' not granted or does not exist"
*Cause: Either the role was not granted to the user, or the role did not exist.
*Action: Create the role or grant the role to the user and retry
the operation.
请帮忙。谢谢。
在授予角色之前创建角色。消息指出该角色不存在。
我建议您使用以下方法检查该角色是否存在:
select role from dba_roles where role = 'CUSTOM_ROLE';
如果此查询不返回任何行,则使用
CREATE ROLE custom_role;
以创建它。
看到这个:
https://www.techonthenet.com/oracle/roles.php
详情