Home » RDBMS Server » Server Utilities » UTL_FILE problem - getting file in ascii format
UTL_FILE problem - getting file in ascii format [message #112697] Mon, 28 March 2005 15:33 Go to next message
abeiko
Messages: 29
Registered: March 2005
Junior Member
I am using utl_file to export table data into a flat file. However, the data is coming out in the "display" format. I need it to be in ascii format. Does anyone know of a conversion function I could use on the table columns ? Any help would be appreciated.
Re: UTL_FILE problem - getting file in ascii format [message #112699 is a reply to message #112697] Mon, 28 March 2005 16:36 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
You are confused.
I am confused.
By default UTL_FILE creates the ASCII file only (which... is kind of a text file).
I forgot the basics...Someone should correct me if i am wrong.
Re: UTL_FILE problem - getting file in ascii format [message #112815 is a reply to message #112697] Tue, 29 March 2005 08:59 Go to previous messageGo to next message
abeiko
Messages: 29
Registered: March 2005
Junior Member
Let me clarify... one field that is stored in the database as a number(4) is coming out in the flat file as '1'. I need it to be '000A' (without the quotes of course). Another example is '1940' should be 000000194} (with the bracket on the end).

Any ideas???
Re: UTL_FILE problem - getting file in ascii format [message #113027 is a reply to message #112815] Wed, 30 March 2005 11:58 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
I have no idea.
I beleive, you may need some conversion.
try this function.

http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions22a.htm#77039

I couldnt figure out the exact charactersets involved..
and i may be completely Wrong too!
Previous Topic: SQL*LOADER
Next Topic: IMP-00038
Goto Forum:
  


Current Time: Thu Jul 04 06:33:19 CDT 2024