Oracle数据创建只读用户

记得授权完成后重新登录用户,不然也会遇到权限不足的一些问题

创建一个用户

create user test identified by 123456

授予连接权限

grant connect to test

 

授予只能查询的权限

       授权所有表的只读权限

grant select any table to test

 

      授予单个表的只读权限

grant select on 其他用户.表名 to test

 还有对对调试存储过程的,查询字典的,查询序列的,调试连接会话的,视图的,物化视图的等等

具体可以查看oracle数据库的官方文档

 

grant debug any procedure to u1;

grant debug connect session to u1;

grant select any dictionary to u1;

grant select any sequence to u1;

grant select any table to u1;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值