Oracle 創建只讀用戶權限
create user 你的用戶名 identified by oracle;
比如這裏有兩個用戶user1和user2,user1下有一個表A,要想user2能查詢A表
1、登錄user1,授權select給user2:grant select on A to user2
2、登錄user2,select * from user1.A;
你也可以創建同義詞 create or replace synonym A for user1.A;
grant select_catalog_role,create session to 你的用戶名;
查任何表
grant select any table to 你的用戶名;
比如這裏有兩個用戶user1和user2,user1下有一個表A,要想user2能查詢A表
1、登錄user1,授權select給user2:grant select on A to user2
2、登錄user2,select * from user1.A;
你也可以創建同義詞 create or replace synonym A for user1.A;
grant select_catalog_role,create session to 你的用戶名;
查任何表
grant select any table to 你的用戶名;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
oracle存儲過程使用MD5加密
dreamZhf
2020-07-08 12:36:08
oracle查詢IP地域信息
dreamZhf
2020-07-08 12:36:08
Oracle sql 判重
星星702
2020-07-08 11:55:31
Oracle 歸檔日誌介紹
Has_it
2020-07-08 11:45:27
log_archive_dest_n 和log_archive_dest和 log_archive_duplex_dest
Has_it
2020-07-08 11:45:24
Oracle遇到錯誤
Has_it
2020-07-08 11:45:23
Oracle索引錯誤的解決辦法
Has_it
2020-07-08 11:45:21
Oracle 12c 進程
_梓杰_
2020-07-08 11:20:01
使用Oracle透明網關(Gataway)操作SQL Server
_梓杰_
2020-07-08 11:20:01
Oracle Data Guard(一)簡介
_梓杰_
2020-07-08 11:20:01
ASH (Active Session History)活躍會話歷史信息
_梓杰_
2020-07-08 11:20:01
Oracle Data Guard(三)Oracle Data Guard補充技術
_梓杰_
2020-07-08 11:20:01
Oracle Data Guard(二)DG服務&故障恢復
_梓杰_
2020-07-08 11:20:01