Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: exporting directly from one server to another
Btw, you should test out the following approach:
The script:
set linesize 300
set pagesize 0
set feedback off
set trimspool on
spool /tmp/apps_insert.sql
select 'insert /*+ APPEND NOLOGGING */ into '
|| owner || '.' || table_name
|| ' select * from ' || owner || '.' || table_name || '@dblink;'
from dba_tables
where owner in ('AP', 'APPLSYS', 'APPS', 'AR', 'GL', 'JE')
order by owner;
spool off
exit
The nologging option as a hint works starting from 9i, otherwise you should use alter commands to set a table temporarily to nologging.
This approach can be faster, since it doesn't require regular array inserts, like import does - regular inserts are always logged.
Tanel.
> From memory, it's been a while since I did this,=20
> it goes something like this:
>
> login to destination server:
> mknod destination_pipe p
> imp file=3Ddestination_pipe <other import options>
> (now import is blocking on the pipe, waiting for data to arrive.
> It will patiently wait till it starts receiving data.)
>
> login to source server:
> mknod source_pipe p
> cat source_pipe | ssh destination_server cat >> destination_pipe
> (Now the cat and the ssh are blocking on input to the source_pipe.)
> Finally:
> exp file=3Dsource_pipe <other export options>
>
> And you should see the export take off on the source box and
> a few seconds later, see an import take off on the destination box.
-- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------Received on Mon May 24 2004 - 11:25:44 CDT