ora-01950:对表空间XXX无权限

以前执行了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.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值