Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: UTL_FILE and Ampersand (&)
Not a good idea to create files like this.
You should replace all non-alphabets out of the name before creating the
file.
for example .. try:
l_cust := translate(lower(cust_rec.cust_corp_nm),
'a'||translate(lower(cust_rec.cust_corp_nm),'#abcdefghijklmnopqrstuvwxyz','# '),
'a') || 'Q.XLS';
Anurag
"Pawan" <pawanputrahanuman_at_yahoo.com> wrote in message
news:84857442.0306121024.5cec31aa_at_posting.google.com...
> Thanks Ana and Anurag. The OS is HP UX 11 and Oracle version is
> 8.1.7.4. The problem is that UTL_FILE writes to multiple files whose
> name is dictated by the l_cust variable. After writing about 15 files
> the code fails as:
> SQL> @t
> DECLARE
> *
> ERROR at line 1:
> ORA-20001: utl_file.other_error
> ORA-06512: at line 307
>
-snip-
Received on Fri Jun 13 2003 - 09:11:04 CDT