| objauth$ | objpriv$ | |
| dba_col_privs | all_col_privs | user_col_privs |
| - | all_col_privs_made | user_col_privs_made |
| - | all_col_privs_recd | user_col_privs_recd |
| dba_tab_privs | all_tab_privs | user_tab_privs |
| - | all_tab_privs_made | user_tab_privs_made |
| - | all_tab_privs_recd | user_tab_privs_recd |
| column_privileges | table_privileges | table_privilege_map |

| Privilege | Description |
|---|---|
| Select | Ability to query the table with a select statement. |
| Insert | Ability to add new rows to the table with the insert statement. |
| Update | Ability to update rows in the table with the update statement. |
| Delete | Ability to delete rows from the table with the delete statement. |
| References | Ability to create a constraint that refers to the table. |
| Alter | Ability to change the table definition with the alter table statement. |
| Index | Ability to create an index on the table with the create index statement. |
语法:
grant privileges on object to user;grant select, insert, update, delete on suppliers to smithj;
grant all on suppliers to smithj;
grant select on suppliers to public;

授权(Grant)之后,你想取消授权,那就得revoke了。
语法:
revoke privileges on object from user;revoke all on suppliers from anderson;
如果你有授权给public(所有用户),现在想撤权,可以执行:
revoke all on suppliers from public;
| Privilege | Description |
|---|---|
| Execute | Ability to compile the function/procedure.Ability to execute the function/procedure directly. |
语法:
grant execute on object to user;grant execute on Find_Value to public;
语法:
revoke execute on object from user;撤销anderson针对Find_Value Funciton的执行权限,可以执行:
revoke execute on Find_Value from anderson;
revoke execute on Find_Value from public;
转载请注明出处:http://blog.csdn.net/pan_tian/article/details/11763889
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26687597/viewspace-1207644/ ,如需转载,请注明出处,否则将追究法律责任。