Computing.Net > Forums > Unix > Read win file from Unix pl_sql

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.

Read win file from Unix pl_sql

Reply to Message Icon

Name: Giuseppe77
Date: February 19, 2004 at 08:35:51 Pacific
OS: win xp
CPU/Ram: p4/512MB
Comment:

Hi all,
I need some help. I must read a txt file create in windows o.s. from pl/sql Stored procedure (oracle 9i) on solaris o.s.Can you help me?thanks

Giuseppe77



Sponsored Link
Ads by Google

Response Number 1
Name: Jim Boothe
Date: February 19, 2004 at 09:24:17 Pacific
Reply:

The init.ora file for the database has a parameter called utl_file_dir which is a list of directories that plsql can access.

You need to do an ascii transfer of your windows text file to one of these directories. You can then open that file with UTL_FILE.FOPEN, and you can read it with UTL_FILE.GET_LINE, etc.


0

Response Number 2
Name: Giuseppe77
Date: February 20, 2004 at 00:40:41 Pacific
Reply:

thanks for reply, but I do that.My problem is: Oracle(installed on Solaris) don't read the files because this is in win ascii format.There is a way, in pl/sql, to transform the files from win ascii format to unix asci format?

Giuseppe77


0

Response Number 3
Name: FishMonger
Date: February 20, 2004 at 17:56:07 Pacific
Reply:

man dos2unix


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


my script doesnt work in ... sed/awk word search



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: Read win file from Unix pl_sql

how to read binary files in Unix www.computing.net/answers/unix/how-to-read-binary-files-in-unix/4566.html

ruuning a dos file from unix www.computing.net/answers/unix/ruuning-a-dos-file-from-unix/197.html

Download file from UNIX www.computing.net/answers/unix/download-file-from-unix/2287.html