P. 1
Oracle Advanced Techniques

Oracle Advanced Techniques

4.78

|Views: 2,119|Likes:
Published by sbukka

More info:

Published by: sbukka on Jul 28, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

01/15/2013

pdf

text

original

x

About the hardest part to working with UTL_FILE is simply
getting started.

x

So before you write anything fancy, modify your
initialization file,
restart your database, and then run the
following test script (it can't get much simpler than this):

DECLARE

fid UTL_FILE.FILE_TYPE;

BEGIN

/* Change the directory name to one to which you at least
|| THINK you have read/write access.
*/
fid := UTL_FILE.FOPEN ('c:\temp', 'test.txt', 'W');
UTL_FILE.PUT_LINE (fid, 'hello');
UTL_FILE.FCLOSE (fid);

END;
/

utlfile.tst

07/27/08 Copyright
2001 Steven Feuerstein

PL/SQL Advanced Techniques - page 227

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->