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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: utl_file on Redhat Linux Oracle 9 standard engine

RE: utl_file on Redhat Linux Oracle 9 standard engine

From: John Dunn <john.dunn_at_sefas.co.uk>
Date: Wed, 09 Jul 2003 06:00:49 -0700
Message-ID: <F001.005C410D.20030709055433@fatcity.com>


Thought I already was....??? I set max_linesize to 998. I have also tried with 32767.

utl_file.FOPEN(var_transfer_dir,var_file_name||'.KIC','r',32767);

Still no joy

-----Original Message-----
Sent: 09 July 2003 14:40
To: Multiple recipients of list ORACLE-L

Hi!

Desc utl_file shows:

FUNCTION FOPEN RETURNS RECORD

 Argument Name                  Type                    In/Out Default?
 ------------------------------ ----------------------- ------ --------
   ID                           BINARY_INTEGER          OUT
   DATATYPE                     BINARY_INTEGER          OUT
 LOCATION                       VARCHAR2                IN
 FILENAME                       VARCHAR2                IN
 OPEN_MODE                      VARCHAR2                IN
 MAX_LINESIZE                   BINARY_INTEGER          IN     DEFAULT

Starting from 8.0.5 or so the max linesize was 32767 chars, but the default max linesize has remained same (1023)

So use FOPEN with max_linesize.

Btw, I found this answer from metalink with first search: utl_file line size

Tanel.
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 4:24 PM

> I have a problem with utl_file in Oracle 9 on Linux, standard engine....
>
> It does not seem to want to read lines longer than 997 characters. It
works
> fine if the line is 997 characters or less.
>
> I get a utl_file.write_error exception if the line is longer than 997
> charcaters!!!!!!!!!!! Why a write error when I am reading?
>
> I have set the line size in the utl_file.FOPEN and utl_file.read_line to
998
>
>
> Is this a bug?
>
>
> original_kic_file_handle :=
> utl_file.FOPEN(var_transfer_dir,var_file_name||'.KIC','r',998);
>
>
> utl_file.get_line(original_kic_file_handle,var_current_line,998);
>
>
> John
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: John Dunn
> INET: [EMAIL PROTECTED]
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Tanel Poder
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: John Dunn
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Jul 09 2003 - 08:00:49 CDT

Original text of this message

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