Home » RDBMS Server » Server Administration » Error in using UTL_FILE package
Error in using UTL_FILE package [message #369834] Thu, 19 October 2000 09:29 Go to next message
guruprasad
Messages: 6
Registered: October 2000
Junior Member
Hi,

I am trying to use UTL_FILE package to do file processing. I am reading from several tables and forming a record and then I am trying to write it to a file. But, I am getting the below error

ERROR at line 1:
ORA-20010: ORA-20000: ORU-10027: buffer overflow, limit of 2000 bytes
ORA-06512: at "CISDBA.SUPPLIER_PACKAGE", line 92
ORA-06512: at line 1

I am using UTL_FILE.fopen(direc, file,'w',32767) to open the file and then using UTL_FILE.put_line(out_file, output) to write its contents. 'output' is the buffer length of size Varchar2(32767) which is maximum length and 'out_file' is the file handle. I couldn't get any help from the Oracle documentation.

An earliest help would be greatly appreciated.

Thanks,
Guru
Re: Error in using UTL_FILE package [message #369841 is a reply to message #369834] Thu, 19 October 2000 15:27 Go to previous messageGo to next message
Andrew again...
Messages: 270
Registered: July 2000
Senior Member
Seems like that is a DBMS_OUTPUT error. If you are sure that you want to use that, jack up the buffer (1,000,000 max) using:

DBMS_OUTPUT.ENABLE (1000000);
Re: Error in using UTL_FILE package [message #369843 is a reply to message #369841] Fri, 20 October 2000 03:28 Go to previous message
guruprasad
Messages: 6
Registered: October 2000
Junior Member
Hi andrew,

Thanks a lot. It worked.

Cheers,
Guru
Previous Topic: Installing package
Next Topic: Two dB, same machine??
Goto Forum:
  


Current Time: Sat Apr 27 08:21:15 CDT 2024