Oracel給指定用戶授予訪問其他用戶資源權限

一般授予connect權限用戶就能夠連接數據了,授予resource權限用戶就可以建表、索引、視圖、存儲過程了。
其他權限根據具體需求來建,具體示例如下:
登錄數據庫服務器,運行sqlplus,
connect / as sysdba
create user myorcl identified by myorcl tablespace test_data;(需要事先建好test_data表空間)
grant connect to myorcl;
grant resource to myorcl;
如果該用戶需要查詢數據庫中所有數據:grant select any table to myorcl;
如果該用戶需要讀取數據字典、使用OEM工具等:grant select dictionary to myorcl;
如果該用戶需要操作其他用戶的表(如對scott用戶下的emp表進行增刪改查操作):
grant select,insert,update,delete on scott.emp to myorcl;
發佈了9 篇原創文章 · 獲贊 2 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章