一般授予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;