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 example

RE: utl_file example

From: Nirmal Kumar Muthu Kumaran <NIRMALK_at_qtel.com.qa>
Date: Mon, 12 Nov 2001 04:26:47 -0800
Message-ID: <F001.003C2263.20011112040021@fatcity.com>

Hi,

Verify "UTL_FILE_DIR" init.ora parameter is defined properly.

In FOPEN function specify, filepath and filename as separate.

SCOTT_at_ORANS.QTEL.COM.QA> ;
  1  DECLARE
  2      fid UTL_FILE.FILE_TYPE;
  3  BEGIN
  4      fid := UTL_FILE.FOPEN('c:\','test.log','w');
  5      UTL_FILE.PUT_LINE(fid, 'Test file for usage of UTL_FILE package');
  6      UTL_FILE.FCLOSE(fid);
  7* END;

SCOTT_at_ORANS.QTEL.COM.QA> / PL/SQL procedure successfully completed.

SCOTT_at_ORANS.QTEL.COM.QA>
SCOTT_at_ORANS.QTEL.COM.QA> HTH. Rgds,
Nirmal,
-----Original Message-----

From:   Szecsy Tamas [SMTP:tszecsy_at_GEOMETRIA.hu]
Sent:   Monday, November 12, 2001 1:55 PM
To:     Multiple recipients of list ORACLE-L
Subject:        utl_file example

Hi,

Sorry for the previous post with a wrong subject in it.

Could somebody help me out with a very short utl_file example for Windows NT? I would like write error data into a simple text file, but I get exceptions.

TIA, Tamas Szecsy

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Szecsy Tamas

  INET: tszecsy_at_GEOMETRIA.hu
Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051 San Diego, California        -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (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 Mon Nov 12 2001 - 06:26:47 CST

Original text of this message

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