天天看點

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;