ORA-29285: file write error
967646Oct 11 2012 — edited Oct 11 2012Hi,
We are getting this error ORA-29285: file write error while writing to a text file using utl_file.putf package.
Using fopen funtion in code to open file as below:
V_FILEHANDLE:=UTL_FILE.FOPEN(v_file_path,'ABC','W', max_linesize);
Here max linesize = 32000, so as far as I think, limitation on length of records while writing the file is not an issue.
Further code is written as:
UTL_FILE.PUTF(V_FILEHANDLE, v_text1||'|'||v_text2||'|');
UTL_FILE.NEW_LINE(V_FILEHANDLE);
UTL_FILE.FFLUSH(V_FILEHANDLE); -- This is called after every 500 lines are written to the file.
UTL_FILE.FCLOSE(V_FILEHANDLE);
We are encountering this error every now and then, and strangely this gets resolved when we re-run the program and file gets written successfully.
Can someone please help on this please?
Oracle database 11g, version: 11.1.0.7.0
Thanks,
Sonam