I am having a table which is having around 11 million records. Now I have to take this table from one DB to another one so I am using exp and imp. But we want to use SQLLoader so how to extract the tables into flat files using PL/SQL. Any Help?
So far no one beats sqlloader direct path speed in loading data,
so if u knew ur data well yo can spool it using..
edit spool1.sql
---------------
set echo off
set pages 0
set feedback off
set verify off
set term off
set heading off
spool TABLE_NAME.TXT
select '~'||column1||'~'||column2||'~'...||'~' from table_name;
spool off
exit
if date format is not the default use to_char(date_column,'yyyymmdd hh:mi:ss')
use the .ctl delimited by '~'
I often use this but not tried with tables having images saved
Obviously, the answer is to understand and benchmark the different processes, and decide which makes better sense in your own environment based on performance and manageability.
db_link is a variable, we have db_links that link boxes in NJ to boxes in Singapore, obviously this type of mileage can slowdown network traffic. So using a db_link is not always the best solution.
Bookmarks