Connecting Tech Pros Worldwide Help | Site Map

Unload data

  #1  
Old June 27th, 2008, 08:01 PM
tonik
Guest
 
Posts: n/a
I want to unload data from table in oracle to table in anothe
database,for example DB2

Can you help me with a sample code
thanks

  #2  
Old June 27th, 2008, 08:01 PM
=?ISO-8859-2?Q?Primo=BE_Govekar?=
Guest
 
Posts: n/a

re: Unload data


tonik wrote:
Quote:
I want to unload data from table in oracle to table in another
database,for example DB2.
>
Can you help me with a sample code?
thanks!
>
There should be some commercial/noncomercial programs on the market, but
only with PL/SQL I would make a SELECT that returns INSERT statements.
Something like bellow:

SELECT 'INSERT INTO table_name (col1int,col2varchar,...)
VALUES ('||col1int||','''||col2varchar||''',...);'
FROM table_name;

Depends also on number of tables to be transported (should be crazy when
more than 10 ;-)).

Regards
Primz
  #3  
Old June 27th, 2008, 08:02 PM
dbaman
Guest
 
Posts: n/a

re: Unload data


You need to unload data into portable text file
Use spool in oracle tounload
If Oracle tables are large,then you can try fastreade
www.wisdomforce.co

fastreader willautomatically create data loader to DB

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to unload data Julia Sats answers 4 June 27th, 2008 06:14 PM
unload data on DB2 Z/OS to DB2 UDB on Windows JAW answers 4 November 12th, 2005 11:42 AM
unload data shabnam via DBMonster.com answers 2 November 12th, 2005 10:48 AM
How to unload data Julia Sats answers 6 October 9th, 2005 04:53 AM