以前执行了grant dba to 用户
查了一下dba角色中有一项 :
DBA UNLIMITED TABLESPACE YES
现在执行了revoke dba from 用户
报错:ora-01950:对表空间XXX无权限
For example: ORA-01950: no privileges on tablespace 'DATA'
办法:
alter user username quota umlimited on tablespacename;
或者 grant resource to username 也可以
因为 grant resource to username 时 自动获得了有unlimited tablespace的系统权限
从online documents 找到这段话:
When you grant the DBA and RESOURCE roles to a user or role with Oracle7 release 7.2.2 or later, the user or role is also granted the UNLIMITED TABLESPACE system privilege. When you revoke either role from a user or role, the UNLIMITED TABLESPACE system privilege is also revoked. The UNLIMITED TABLESPACE can also be revoked independent of the DBA and RESOURCE roles.
解决ORA-01950错误
本文介绍了解决ORA-01950错误的方法。当尝试撤销用户DBA角色时出现此错误,原因是用户失去了对特定表空间的无限使用权限。文章提供了两种解决方案:一是通过设置用户的表空间配额为无限;二是授予用户资源角色。
2万+

被折叠的 条评论
为什么被折叠?



