Discussion Locked

Import to Oracle froma flat file

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there any way to import comma separated flat file to Oracle database without doing any programming at the front end ? i mean something similar to DTS in Sql Server 7 where we can import from excel, access or any other source to sql server database.

1 reply

by william shipway

There are a couple of different ways of doing this, but a method I've used before is to create an ODBC connection to the database.

You mentioned excel so I will assume you have a windows environment...

Create an ODBC connector in the Control Panel (under Admin Tools / Data Sources in Windows 2000). You can use the Microsoft Oracle driver for this. Supply a unsername/password that has the right database priveleges to write to the tables.

Open Excel, and connect to an external data source - select the one you set up above. Then import the flat file, either directly or into a separate worksheet then copy & paste. Save the changes out to the data source. Should be that easy!

You can also do this directly with MS Query, though never tried it myself.

HTH
William

This discussion is closed to new replies.