1、创建用户user1

create user user1 identified by xxxx

default tablespace XXXX_table

temporary tablespace temp

profile default

grant connect to user1;

2、方式一:批量表赋权

SELECT ‘grant select on PPOSUAT_17.‘|| table_name ||‘ to testuser_17;‘ from dba_tables where owner=‘PPOSUAT_17‘;

方式 二、sys赋权

如果想对所有表进行只读设置,可以对该用户授予select any table系统权限。

--释放

revoke select on user1.tableName from user2;

本文出自 “ahead51Jie” 博客,请务必保留此出处http://ahead51.blog.51cto.com/179590/1905407

给oracle用户查询其它用户表的权限

标签:select any table

本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉 本文系统来源:http://ahead51.blog.51cto.com/179590/1905407

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐