Click here to Skip to main content
15,891,684 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All,

I m trying to copy data from one table to other table in oracle both tables are in 2 different oracle database
I m not allowed to access first table directly from second database and viceversa
I m taking data from first table into dataset and then inserting row by row into second table
There are 28000 records and it takes 6 minutes to upload entire table this much time is not allowed for me
How can i minimize this time.
Destination table dont have any index.
Since i cant access source table directly from destination table i cant use simple procedure ie select from sourcetable for taking the values
I need to send dataset to procedure and i dont know how to do so
Can someone tell me how to do so?
Posted
Updated 14-Jul-11 0:17am
v2
Comments
Rhys Gravell 14-Jul-11 6:18am    
Please do not repost, have a look at the responses when you asked this yesterday

Use oracle ODAC[^] and OracleBulkCopy[^] - if this doesn't do the trick, you're out of luck. If those 28000 doesn't contain a lot of blobs, you should be able to create something that does the job in well under a minute, maybe in less than 10 seconds.

Best regards
Espen Harlinn
 
Share this answer
 
Comments
thatraja 17-Jul-11 20:50pm    
5! for the 2nd link
Espen Harlinn 18-Jul-11 5:57am    
Thank you, thatraja!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900