Oracle資料建立唯讀使用者

2021-09-02 22:41:18 字數 628 閱讀 3705

記得授權完成後重新登入使用者,不然也會遇到許可權不足的一些問題

建立乙個使用者

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;

Oracle建立唯讀許可權使用者

我們使用者histest下面有很多表,需建立使用者 hongshu no1.先建立乙個使用者hongshu,密碼hongshu no2.給他一些許可權,包括連線許可權,因為他要建立同義詞,還需要給他同義詞 grant connect to hongshu grant create synonym t...

Oracle資料庫建立唯讀使用者

建立乙個唯讀使用者user2,只能查詢管理員使用者user1下的表,不能增刪改。操作環境 pl sql developer 1 用管理員使用者user1登入,建立使用者user2 並授權 建立使用者user1,密碼123456 create user user2 identified by 1234...

建立唯讀使用者

1.建立乙個使用者名為readonly密碼為123456的使用者 create user readonly with encrypted password 123456 2.更新使用者預設為唯讀事務 alter user readonly set default transaction read o...