v$parameter2 will contain a row *per entry* which
should make this process easier.
hth
connor
- "Vergara, Michael (TEM)" <mvergara_at_guidant.com>
wrote: > Linda:
>
> Try this:
>
> Enclose the string in single quotes, as:
> fileid0 :=
> UTL_FILE.FOPEN(''''||v_utl_file_dir_name||'''',
> 'sequence_data','W')
> ;
>
> And consider that utl_file_dir can have multiple
> paths, separated as
> utl_file_dir = '/path1,/path2,/path3'
> ...or even...
> utl_file_dir = *
> ...(even though Oracle recommends against this), and
> your script
> would not handle either of these.
>
>
> ---
>
> Michael P. Vergara
> Oracle DBA
> Guidant Corporation
> (909) 914-2304
>
> -----Original Message-----
> Sent: Monday, November 19, 2001 11:20 AM
> To: Multiple recipients of list ORACLE-L
>
>
>
> Hello,
>
> Is it possible in PL/SQL to read v$parameter and
> pass the value for
> utl_file_dir to the UTL_FILE.FOPEN statement? This
> is my current attempt,
> and it's failing with the error, below.
>
> select value into v_utl_file_dir_name from
> v$parameter where name =
> 'utl_file_dir' ;
> fileid0 :=
>
UTL_FILE.FOPEN(v_utl_file_dir_name,'sequence_data','W')
> ;
>
>
>
>
>
Connor McDonald
http://www.oracledba.co.uk (mirrored at
http://www.oradba.freeserve.co.uk)
"Some days you're the pigeon, some days you're the statue"
Do You Yahoo!?
Everything you'll ever need on one web page from News and Sport to Email and Music
Charts
http://uk.my.yahoo.com
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: =?iso-8859-1?q?Connor=20McDonald?=
INET: hamcdc_at_yahoo.co.uk
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 19 2001 - 16:54:32 CST