以前執行了grant dba to 用戶
查了一下dba角色中有一項 :
DBA UNLIMITED TABLESPACE YES
現在執行了revoke dba from 用戶
報錯:ora-01950:對表空間XXX無權限
辦法:
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.
感謝: