--以dba身份登入
C:\Users\Administrator>sqlplus / as sysdba
--建立使用者
SQL> create user bfzg0828 identified by bfzg0828 default tablespace users quota
unlimited on users;
--授予連接配接角色,資源角色給使用者
SQL> grant connect,resource to bfzg0828;
授權成功。
--授權建立資料連結
SQL> grant create table,create database link to bfzg0828;
--建立檔案夾
SQL> create or replace directory oracle_exp as 'D:\oracle';
檔案夾已建立。
--在實體機上d盤建立檔案oracle
......
--給使用者授予檔案夾讀寫權限
SQL> grant read,write on directory
oracle_exp to bfzg0828;
grant read,write on directory oracle_exp to bfzg;