Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Unload data

Question posted by: tonik (Guest) on June 27th, 2008 07:01 PM
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

=?ISO-8859-2?Q?Primo=BE_Govekar?='s Avatar
=?ISO-8859-2?Q?Primo=BE_Govekar?=
Guest
n/a Posts
June 27th, 2008
07:01 PM
#2

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

dbaman's Avatar
dbaman
Guest
n/a Posts
June 27th, 2008
07:02 PM
#3

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


 
Not the answer you were looking for? Post your question . . .
189,879 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors