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