Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Import tables from a txt 3

Status
Not open for further replies.

NiteCrawlr

Programmer
Mar 16, 2001
140
BR
HELP!!!

My problem is kinda easy but I don't have a least idea of how to do it, I have a Script file (txt) where there is some data where I want to put them in a Oracle table, how do I do it?
What is the easiest way to do that??

Thanks

Frederico
 
Depends on what is the format of the txt file. Do you want to put each line of the txt file to the table or only a part of the line? You need to show a sample
 
The txt was generated from the same table but it was from SQL Server, they both have the same type of format, I'm just importing the info from the SQL Server.

Obs: The SQL Server is in another computer.
 
The easiest way to do this is with SQLLDR80.exe. It allows you to schedule uploads from text files in the way you wish your payload to be delivered.
 
Another tip if the data volume is not high: generate a script with insert's from sql-server and then execute it in sql*plus (oracle side). Don't forget to set autocommit 100 (or so) to go smoothly.

HTH

seagull69
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top