Oracle Ora -01045-由角色不起作用而授予的特权
我正在使用Oracle DB V21C之后,尝试使用Privs的“创建会话”创建角色学生,创建表,创建视图“ A a授予用户”'user3',但是当试图与该用户连接时,我得到了ORA-01045。我检查了授予该角色的私人,一切似乎正常,我试图使用Admin选项授予特权的角色,而什么也没有发生。我从dba_sys_privs中使用了select *,其中grantee ='pertays',一切似乎都不错。该角色是使用系统创建的,因此用户是因为我最初试图通过Scott创建角色,但是获得了一个错误的特权,但是Scott具有创建角色的特权。
im using oracle db v21c , after trying to create a role student with privs 'create session , create table , create view ' a granted that role to a user 'user3' but when trying to connect with that user i got ora-01045. i checked that privs granted to that role and everything seems normal , i have tried using granting the role the privileges with admin option and nothing happens . I used select * from dba_sys_privs where grantee='student' and all seems good . The role is created with system and so the user because at first i was trying to create the role with scott , but get an error insufficient privileges, but scott have the privilege to create role.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
默认情况下,角色不活跃。您必须更改用户以设置默认角色(然后再次登录),或更改用户的当前会话以设置当前角色:
或
Roles are not active by default. You must either alter the user to set a default role (and then login again), or alter the user's current session to set a current role:
or