Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Import/Export (DTS) and Replication (2000)
 Transfer from SQL server to oracle

Author  Topic 

sbaroux
Starting Member

9 Posts

Posted - 2004-09-16 : 05:17:03
Hello,

I need to transfer some big tables from SQL server 2000 to oracle (several million records).

I've tried to do it via DTS. It seems to work but it's very very slow.
I've tried via text file, but I've got some error on date fields and numeric fields (separator "." in text file and ',' expected in oracle)

Do you have any suggestion to manage this?

Thanks

Stephanie

syedrehman
Starting Member

7 Posts

Posted - 2004-09-16 : 14:41:55
Have you looked at bcp to output from SQL? Not sure what the equivalent to bcp is in Oracle. bcp allows the use of a format file, which you can use to specify the separator to be ","
Go to Top of Page

naka55n
Starting Member

10 Posts

Posted - 2004-09-16 : 15:46:22
You can use "bcp" to export the data from SQL Server. Oracle includes to similar utilities "imp" to import the data and "exp" to export the data.
Go to Top of Page

dasu
Posting Yak Master

104 Posts

Posted - 2004-09-17 : 00:54:32
I think using bcp u can transfer data from text file to any database
but its not for data base to another database(acording to me).
regards
dasu.g
Go to Top of Page

dasu
Posting Yak Master

104 Posts

Posted - 2004-09-17 : 00:54:47
I think using bcp u can transfer data from text file to any database
but its not for data base to another database(acording to me).
regards
dasu.g
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-09-17 : 01:33:54
I would disagree with you dasu. Here's some sample code if you need it.

http://www.nigelrivett.net/

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

naka55n
Starting Member

10 Posts

Posted - 2004-09-17 : 14:42:39
In my previous post I noted two (imp and exp) Oracle utilites that would allow the data to be imported into Oracle from SQL Server. After reading my response again I realized that imp and exp are specific to the Oracle database. You need to look at the SQL*Loader utility. It will allow you to import fixed length or delimited data into an Oracle table. Sorry for my confusion.
Go to Top of Page

eyechart
Master Smack Fu Yak Hacker

3575 Posts

Posted - 2004-09-17 : 15:00:26
In the other thread you started on this subject, I suggested that you try the Oracle OLE db provider rather than the Microsoft supplied Oracle provider in DTS.

I have had good success with this, as the microsoft version has not had any significant changes in about 4 years.



-ec
Go to Top of Page
   

- Advertisement -