授权

附加:如果要对某用户下所有的表设置只读,可以先获取所有语句, test对user1的表只读

SELECT 'grant select on USER1.'|| table_name ||'to test;' from dba_tables where owner='USER1';

如果想对所有表进行只读设置,可以对该用户授予select any table系统权限。

grant select on t1 to B with grant option;     授予 表或者视图的查询权限

另:
创建同义词:
create synonym u1.t1 for t1;
存储过程包授权:
grant execute on p1 to u1;
表授权:
grant select on t1 to u1;

with admin option的意思是被授予该权限的用户有权将某个权限(如create any table)授予其他用户或角色,取消是不级联的。

with grant option的意思是:权限赋予/取消是级联的

原文地址:https://www.cnblogs.com/wuer888/p/7484949.html