ORACLE创建用户赋予只读权限

conn username/password

 

create user zhangsan identified by 112233;

 

grant create session to zhangsan;  允许登录

 

grant unlimited tablespace to zhangsan

 

 

要几张表就grant几次

-------------使用管理员身份执行以下操作

grant select on tablename to zhangsan;

比如:

grant select on DJ_TABLE to zhangsan;

授予视图

GRANT SELECT ON VIEW_MANNUM TO zhangsan;

 

 

 

查询sqlselect * from YQZHDJ.DJ_ACTTYPE;

你可能感兴趣的:(ORACLE创建用户赋予只读权限)