记得授权完成后重新登录用户,不然也会遇到权限不足的一些问题
创建一个用户
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;