Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: UTL_FILE replaces 0A by 0D 0A

Re: UTL_FILE replaces 0A by 0D 0A

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Wed, 13 Sep 2006 21:16:44 +0800
Message-ID: <450804BC.4E69@yahoo.com>


Kalle Heuwes wrote:
>
> Hi, Urs !
>
> Unfortunately it also happens with UTL_FILE.put.
> Besides it is not only appended at the end of a row; it is even
> replaced in the middle of a string:
>
> DECLARE
> lc_filename VARCHAR2 (100) := 'test.txt';
> lt_file UTL_FILE.file_type;
> BEGIN
> lt_file := UTL_FILE.fopen ('EXPORT', lc_filename, 'w');
> UTL_FILE.put(lt_file, 'hgfxxx' || CHR(10) || 'xxxgjhg');
> UTL_FILE.fclose (lt_file);
> END;
>
> Kind regards
> Kalle

any joy with put_raw ?

-- 
Connor McDonald
Co-author: "Mastering Oracle PL/SQL - Practical Solutions"
Co-author: "Oracle Insight - Tales of the OakTable"

web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: connor_mcdonald_at_yahoo.com


"Semper in excremento, sole profundum qui variat."

------------------------------------------------------------
Received on Wed Sep 13 2006 - 08:16:44 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US