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 你的用戶名;
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章