浙林龙哥

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

1)

exp user/password@BeiJingOracle file=raw_data.dmp tables=DATA_RAWDATA

 


2)

# mkdir /home/oracle/u1

 

# sqlplus user/password@BeiJingOracle


>create or replace directory DPDATA1 as '/home/oracle/u1';
>grant read, write on directory DPDATA1 to datasearch;

>declare
fhandle utl_file.file_type;
begin
fhandle := utl_file.fopen('DPDATA1', 'example.txt', 'w');
utl_file.put_line(fhandle , 'eygle test write one');
utl_file.put_line(fhandle , 'eygle test write two');
utl_file.fclose(fhandle);
end;

/

>expdp datasearch/datasearch tables=DATA_CLIENT directory=DPDATA1 dumpfile=test.dmp job_name=DATA_CLIENT_EXPORT

posted on 2010-03-01 13:15  浙林龙哥  阅读(352)  评论(0编辑  收藏  举报