Oracle 一个用户将表权限赋给另一个用户

原文地址:https://blog.csdn.net/u012129031/article/details/76218764

1、将用户user1的表权限赋给用户user2

select   'grant select on user1.' || t.table_name  || ' to user2;'  from user_tables t

 

2、

grant select any table to robbie;       

3、

根据指定用户名获得对应用户所拥有权限的表


SELECT table_name, owner FROM all_tables WHERE owner = 'SCOTT';

猜你喜欢

转载自www.cnblogs.com/dyh004/p/9297881.html