Importing a SQL Server table into Oracle
I have a very large table in SQL Server that has millions of records, and I want to export it into an Oracle database. Please tell me how.
You can accomplish this a few ways. First, you can use SQL Server's Data Transformation Services (DTS). With DTS, you can create a connection to your SQL Server instance and another connection to Oracle (through OLE DB) and push the data into Oracle.
Or, you can use DTS to dump the contents of the table to a comma-delimited file. From there, you can use Oracle's SQL*Loader utility to load the contents of a comma-delimited file into a table. Oracle's documentation, found on Technet if you don't have a copy, details how to use SQL*Loader to load a comma-delimited file in the Oracle 9i Utilities Guide.
For More Information
- Dozens more answers to tough Oracle questions from Brian Peasland are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.