为什么我得到ORA-01952:未授予'ROJIB'系统权限?
创造角色:
SQL> create role security;
Role created.
然后为角色'安全'创建授权:
SQL> grant create table,create view to security;
Grant succeeded.
授予用户:
SQL> grant security to rojib;
Grant succeeded.
在撤销后,我收到错误:
SQL> revoke create table from rojib;
revoke create table from rojib
*
ERROR at line 1:
ORA-01952: system privileges not granted to 'ROJIB'
1 回答
那是因为你授予了 ROLE
SECURITY
的特权,所以你需要 ROLESECURITY
的特权 REVOKE ,而不是 USER .例如,
Create a USER:
Create a ROLE:
Grant privileges to the ROLE:
Grant ROLE to the USER:
Revoke privilege from the ROLE:
Revoke ROLE from the USER: