Oracle Create&drop directory

Oracle 10g 中完成對數據文件的操作,需要使用directory對象,以下是創建方法:

CREATE [OR REPLACE] DIRECTORY directory AS 'pathname'

eg:

create or replace directory expdp_dir as 'e:/oracle/exportdatapump';

(oralce 中新的數據導出,導入工具也需要使用directory對象才能完成)

賦予權限

grant read,write on directory expdp_dir to scott;

使用目錄 

expdp scott/tiger schema = scott direcotry=expdb_dir dumpfile=scott.dmp

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章