ora-01950:對表空間XXX無權限


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

感謝:


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM