Computing.Net > Forums > Unix > Unix shell script and Oracle data

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Unix shell script and Oracle data

Reply to Message Icon

Name: aetjansen
Date: July 14, 2003 at 06:28:21 Pacific
OS: Solaris (8?)
CPU/Ram: ?
Comment:

Hi All, as a newby to unix I ask you this:
I need to build a shell script that puts data from a csv file into an Oracle 8i databasethe width of the data in the csv file is filled with spaces where necessary, in order to get the same with for every field.

I donīt know how to do this, but I have to. I hope you can help!

Best,
Aet Jansen



Sponsored Link
Ads by Google

Response Number 1
Name: WilliamRobertson
Date: July 14, 2003 at 07:30:47 Pacific
Reply:

If the .csv file is reasonably small (say under 100K) try reading it from PL/SQL using UTL_FILE. Otherwise use SQL*Loader, which is very fast but does involve you in shell scripts and control files.

If it's fixed-width format, it probably isn't csv.

In 9i, external tables let you query data files directly which simplifies things a lot.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Unix shell script and Oracle data

unix shell script to unload data www.computing.net/answers/unix/unix-shell-script-to-unload-data/8335.html

Unix Shell Script www.computing.net/answers/unix/unix-shell-script/3580.html

email via shell scripting www.computing.net/answers/unix/email-via-shell-scripting/5956.html