windows下oracle赋查询权限

来源:互联网 发布:2017淘宝数据魔方 编辑:程序博客网 时间:2024/06/05 00:59

1.创建用户指定表空间

create user 用户名identified by 密码default tablespace 空间名quota 100m on users;

2.赋予用户登录的权限

grant create session to 用户名;

3.单个表授权

grant select on 空间名.表名to 用户名;

4.空间所有表查询的权限

首先查询所有表的查询权限语句

select 'grant select on 空间名.' || tname || ' to 用户名;' from tab;

将查询的结果(如:)

grant select on 空间名.表名to 用户名;

grant select on 空间名.表名to 用户名;

grant select on 空间名.表名to 用户名;

grant select on 空间名.表名to 用户名;


复制到窗口执行即可

0 0