大家好,我是考100分的小小码 ,祝大家学习进步,加薪顺利呀。今天说一说oracle创建用户并赋予查询权限_linux更改组用户的权限,希望您对编程的造诣更进一步.
–普通用户test,需要创建查询用户(cxtest),授权test的部分表或试图查询权限
— 使用 SYSTEM创建用户
create user cxtest
identified by cxtest
default tablespace USERS
temporary tablespace TEMP
profile DEFAULT;
grant create session to cxtest;
grant create synonym to cxtest;
代码100分
—test用户赋权VJK_WBFK_CPXX、VJK_WBFK_GZB、VJK_WBFK_QMCCB给cxtest
代码100分grant select on VJK_WBFK_CPXX to cxtest;
grant select on VJK_WBFK_GZB to cxtest;
grant select on VJK_WBFK_QMCCB to cxtest;
–cxtest用户建同义词
create synonym VJK_WBFK_CPXX for test.VJK_WBFK_CPXX;
create synonym VJK_WBFK_GZB for test.VJK_WBFK_GZB;
create synonym VJK_WBFK_QMCCB for test.VJK_WBFK_QMCCB;
—cxtest用户下查询测试
代码100分select * From VJK_WBFK_CPXX;
select * From VJK_WBFK_GZB;
select * From VJK_WBFK_QMCCB;
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
转载请注明出处: https://daima100.com/9254.html