Oracle 将 A 用户下所有表的增删改查 赋予 B 用户
时间:2018-11-09 10:13:24
收藏:0
阅读:640
第一步:创建用户
create user username identified by password;
第二步:给用户赋值接触锁定(仅仅赋予会话权限)
grant create session to xxx;
第三步(登录所要访问表的用户(ytcj),执行如下语句,并把结果保存为sql文件):
select ‘GRANT ALL ON ‘||table_name||‘ to username;‘ from user_tables;
原文:https://www.cnblogs.com/lucifa/p/9933460.html
评论(0)