ORA-29284: File read error

Good morning,
Need to do two flat file on a 2000 lien.
1 - Read a file. csv
2 - Keep it plain, unformatted information from a table
These are the steps I performed to achieve the first goal ...
1 - READING TEST FILE
CREATE OR REPLACE DIRECTORY PUBLIC_ACCESS AS 'C:\REPORTES_REY';
GRANT READ, WRITE ON DIRECTORY PUBLIC_ACCESS TO PUBLIC;
-- THIS PL / SQL works ok..
DECLARE
v1 utl_file.file_type;
v2 varchar2(600);
begin
v1:= utl_file.fopen('PUBLIC_ACCESS','prueba20110218.csv','R'); -- WORKS WELL ...
--v1:= utl_file.fopen('PUBLIC_ACCESS','sui_facturacion_alcantarillado_15085_2011_01_76845_001.csv','R');
loop
     begin
          utl_file.get_line(v1,v2);
          dbms_output.put_line('el contenido del archivo es: '||v2);
          exception
          when no_data_found then
          exit;
     end;
          dbms_output.put_line(' - ');  JUMP LINE
end loop;
     utl_file.fclose(v1);
exception
     when others then
     dbms_output.put_line(sqlerrm);
end;
but when you change the file name by map prueba20110218.csv de-> sui_facturacion_alcantarillado_15085_2011_01_76845_001.csv displays the following error
ORA-29284: File read error+
- this error to be?
I am grateful for the attention and cooperation extended ...
good day ...
REYNEL SALAZAR MARTÍNEZ
Cali-Colombia

Thank you very much for your cooperation extended
The file if it exists, the operating system is Windows, I'm running for the line of command and the file is in the same direction as the file prueba20110218.csv
Segi therefore his advice and remove:
exception
when others then
dbms_output.put_line(sqlerrm);
then run the following code:
DECLARE
v1 utl_file.file_type;
v2 varchar2(800);
begin
v1:= utl_file.fopen('PUBLIC_ACCESS','prueba20110218.csv','R'); FUNCIONA BIEN...+
v1:= utl_file.fopen('PUBLIC_ACCESS','sui_facturacion_alcantarillado_15085_2011_01_76845_001.csv','R',32767);
loop
begin
utl_file.get_line(v1,v2);
dbms_output.put_line('el contenido del archivo es: '||v2);
exception
when no_data_found then
exit;
end;
dbms_output.put_line(' - ');  SALTO DE LINEA+
end loop;
utl_file.fclose(v1);
exception
when others then
dbms_output.put_line(sqlerrm);
end;
+/+
ORA-06502: PL / SQL: error: character string buffer too small numeric or value
I do not understand the error -> ORA-06502
thanks...
good day
Reynel Salazar Martínez
Cali-Colombia

Similar Messages

  • UTL_FILE - file read error

    Hi,
    I am using UTL_FILE to read one file and write it into other file.
    When i am executing procedure that uses UTL_FILE, i get error "ORA-29284: file read error".
    I have checked that file exists with all permissions (r,w,e). Is there any limitaion of size to be read by utl_file. my file size is 62 kb.
    I have set max_linesize to 32767/
    Can anybody tell me the reason why it is happening?

    can you post the script being used...
    What's the database version
    A database object called Directory is also needed in database that is created using the create directory command which directs to the folder in the file system. Is that already created?
    Regards

  • ORA-29285: file write error

    Hi,
    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

    Not enough information.
    964643 wrote:
    Hi,
    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);And what value has v_file_path got? Is this the name of an Oracle Directory Object as it should be?
    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?Not without seeing complete code so that we can try and reproduce the problem or spot where you may be going wrong.

  • When i try to install iPlanet App Server on NT, I do not get screen to enter license key valid for evaluation. --- " cache File Read error"

    When i try to install iPlanet App Server on NT, I do not get screen to enter license key valid for evaluation.
    Also during installation screens an error window is displayed saying "cache File Read error -- Could not read ProductKey entry from the cache file "

    Hi,
    I also get the following message:
    "Could not read ProductKey entry from the cache file"
    I have no idea how to provide the installation software with the key. I also tried "keycheck.exe"
    Do you have a solution for this problem? Did you finish the installation?
    Christian

  • Encountering ORA-29285: file write error

    Hi. I am running a simple code and got this error? ORA-29285: file write error
    I swear this is working yesterday and and all my write to text code =(
    Error starting at line 1 in command:
    Declare
    v_file utl_file.file_type;
    v_dir_folder varchar (30) := 'DATA_PUMP_DIR';
    BEGIN
    v_file := UTL_FILE.FOPEN(v_dir_folder,'Test.txt','w');
    UTL_FILE.PUT_LINE(v_file, 'text1');
    UTL_FILE.FCLOSE(v_file);
    END;
    Error report:
    ORA-29285: file write error
    ORA-06512: at "SYS.UTL_FILE", line 77
    ORA-06512: at "SYS.UTL_FILE", line 690
    ORA-06512: at line 8
    29285. 00000 - "file write error"
    *Cause:    Failed to write to, flush, or close a file.
    *Action:   Verify that the file exists, that it is accessible, and that
    it is open in write or append mode.

    989873 wrote:
    Hi. I am running a simple code and got this error? ORA-29285: file write error
    I swear this is working yesterday and and all my write to text code =(
    Error starting at line 1 in command:
    Declare
    v_file utl_file.file_type;
    v_dir_folder varchar (30) := 'DATA_PUMP_DIR';
    BEGIN
    v_file := UTL_FILE.FOPEN(v_dir_folder,'Test.txt','w');
    UTL_FILE.PUT_LINE(v_file, 'text1');
    UTL_FILE.FCLOSE(v_file);
    END;
    Error report:
    ORA-29285: file write error
    ORA-06512: at "SYS.UTL_FILE", line 77
    ORA-06512: at "SYS.UTL_FILE", line 690
    ORA-06512: at line 8
    29285. 00000 - "file write error"
    *Cause:    Failed to write to, flush, or close a file.
    *Action:   Verify that the file exists, that it is accessible, and that
    it is open in write or append mode.Does "Test.txt" now exist?
    If so, which OS user owns this file?
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Source file read error for sqldeveloper

    While downloading SQLDeveloper, after almost 70%complete, i got an source file read error.
    i've tried again to download but the page hangs on the license agreement page after clicking I ACCEPT.
    Please resolve this issue.
    Thanks in Advance
    Using:
    MS Win XP Home
    Firefox 1.5.3
    Tony Garabedian

    sybrand_b wrote:
    Why are you assuming utl_file works with binary files? It doesn't!It does in 10g, where file open mode B was introduced. But even with R mode you should be able to open DOC file. You might (or might not) have problem reading it:
    SQL> declare
      2      fh UTL_FILE.FILE_TYPE;
      3      input_buffer varchar2(4000);
      4  begin
      5      fh := UTL_FILE.FOPEN('TEMP','Stats.doc','r');
      6      UTL_FILE.GET_LINE(fh,input_buffer,4000);
      7      DBMS_OUTPUT.PUT_LINE(input_buffer);
      8      UTL_FILE.FCLOSE(fh);
      9    exception
    10      when others then UTL_FILE.FCLOSE(fh);
    11  end;
    12  /
    ÐÏࡱᠠ              >  þÿ                 2          4      þÿÿÿ    1
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿì¥Á €    ð¿             ¸
    PL/SQL procedure successfully completed.
    SQL> SY.

  • Adobe Lens Profile Creator - ERROR (Detect corners failed because file reading errors ocurred)

    1) I have successfully created a lens profile for a Nikon AF Micro Nikkor 40mm 2.8 lens used in a Nikon D5200 Camera. For this I converted the raw .nef files to .DNG first using Adobe's DNG Converter.
    2) When trying to create another lens profile using the EXACT SAME .DNG files as posted in 1), I am no longer able to create a lens profile because of the message "Detect corners failed because file reading errors ocurred". I am also unable to create any other lens profile using different photos.
    3) I have also tried using a fresh install of Adobe Lens Profile Creator in another mac and I get the exact same error.
    4) I AM ABLE to create a lens profile if I use .jpg files (generated from the same raw .nef files as mentioned) but this doesn't help because then the profiles don't show up when trying to open a raw file in Adobe Camera Raw.
    Please help as this is exasperating.
    Thank you.

    Thanks! I had the same error message in Adobe Lens Profile Creator 1.0.4 for OSX and I found the problem to be the letter ö in the folder name for the DNGs. The lens is an old ISCO-Göttingen and the progress stopped at 2% with the mentioned error message. Changed the folder name and now it works!

  • Video File Read Error

    Dear DVDSP Brains,
    I am using DVDSP3 and have created a DVD with several menus. Whenever I try and build it the log gives me the following error message:
    Compiling VTS#2 (MM to Film Menu Trans)...
    Writing VTS020.VOB
    Generating Transition: MM to Film Menu Trans, Clip 1...
    Generating Transition: MM to Film Menu Trans, Clip 3...
    Muxing VTS021.VOB
    Done.
    Compiling VTS#3 (MM to TV Movies Trans)...
    Writing VTS030.VOB
    Generating Transition: MM to TV Movies Trans, Clip 1...
    Generating Transition: MM to TV Movies Trans, Clip 3...
    Muxing VTS031.VOB
    Done.
    Compiling VTS#4 (Film Menu to MM Trans)...
    Writing VTS040.VOB
    Generating Transition: Film Menu to MM Trans, Clip 1...
    Generating Transition: Film Menu to MM Trans, Clip 3...
    Muxing VTS041.VOB
    Video File Read Error
    Build cancelled
    Formatting finished.
    Building was not successful. See log.
    The clip it seems to have a problem with "Film Menu to MM Trans, Clip 3..." is - I think - a still that has been added to the end of a transition movie between menus. I added the still to allow a dissolve to occur into the next menu and its buttons. I'm not sure if my diagnosis is correct.
    I have seached the forum and attempted to implement some of the advice given that might be relevant.
    I have tried to re-encode the Film Menu to MM Trans.
    I trashed preferences.
    I deleted the PAR files (which oddly has now caused he disc to have 5.7GB where it only had 3.2 GB before !!!)
    I am at a loss and trying not to panic.
    Your help would be much appreciated!
    Detsky

    I deleted the PAR directories in both the directory where the DVDSP document exists, and in my user directory (~mr88cet/Movies/Gary's Live DVD2 Build). I also tried deleting that whole directory. None of those deletions helped.
    I exported the first video fragment in that track. That also didn't help.
    Not surprisingly, doing a "build" only didn't help.
    Could you tell me more about how this could clarify a problem with importing one of my clips?

  • How do I repair a file read error

    I have a file that refused to be backed up in my nightly backup (I'm using Carbon Copy Cloner).  I suspect that the disk may be corrupted somewhere in that file's allocated space, but running Disk Utility from Option+Reboot does not show any errors for either Verify Disk or Repair Disk
    The file itself (/private/var/log/system.log.1) is not terribly important, but if I delete it I'm worried that I will get an error next time that space on the HDD is used.
    Previously I had noticed that my Mac was hanging for 5-10 minutes at a time - I realise now that it would have been while it was updating the system log (before it became system.log.1) .  I don't want that to happen again
    My question is, how do I delete that file and make sure that the errored sector never gets used again?

    Did you run a repair permissions in Disk Utility to see if that fixed anything? 
    The only way I know to map out bad sectors is to back everything up and do a secure erase writing zero's to the hard drive. This resets the bad sector table for the hard drive. Then restore your system.

  • Can't open .pdf file - read error

    Hi,
    I recieved a .pdf file but upon opening i receive the following error message:
    "Error encountered while processing node xfa[0].form[0].form1[0].#subform[5].ApplicationEligibility[0]. Unable to find suitable font for Japanese encoding."
    Is there any way to fix this? I have searched the forum but cannot find a solution.
    Thanks,
    Neil

    I just installed the font pack and it solved the problem.
    Thanks

  • What changed from AME v4.0 to v4.2 that would cause file read errors?

    is anyone aware of a change in how AME read files in order to encoder when it moved to v4.2 and still exists in v5.0.
    was this the point where quicktime was no longer used and AME used its own codecs etc?

    it looks like they added ImporterFastMPEG.prm file to the system, if you remove it ev
    erything works swimmingly

  • File read errors when installing the oe schema.

    Hi,
    I'm new to Oracle and I've been playing around with the sample hr schema that came included with Oracle 11g XE (installed on a machine running Windows 7). I downloaded the oe schema off the otn website and I'm trying to install the sample database. I've pasted the errors I get in SQL Plus below.
    I'm assuming the 'unable to open *.sql' errors are because oracle is looking for them in a different directory. Those files are present in the same directory as oe_main.sql whose location I specify at the start. Should'nt this be enough?
    Thanks,
    Aditya
    SQL*Plus: Release 11.2.0.2.0 Beta on Mon Jun 27 13:45:03 2011
    Copyright (c) 1982, 2010, Oracle. All rights reserved.
    SQL> connect sys as sysdba
    Enter password:
    Connected.
    SQL> @?/demo/schema/oe/oe_main.sql
    Enter value for sys_password: oe
    User dropped.
    old 1: CREATE USER OE IDENTIFIED BY &pass
    new 1: CREATE USER OE IDENTIFIED BY OE
    User created.
    old 1: ALTER USER OE DEFAULT TABLESPACE &tbs
    new 1: ALTER USER OE DEFAULT TABLESPACE users
    old 2: QUOTA UNLIMITED ON &tbs
    new 2: QUOTA UNLIMITED ON users
    User altered.
    old 1: ALTER USER OE TEMPORARY TABLESPACE &ttbs
    new 1: ALTER USER OE TEMPORARY TABLESPACE temp
    User altered.
    Grant succeeded.
    Grant succeeded.
    Connected.
    Grant succeeded.
    Connected.
    Session altered.
    Session altered.
    SP2-0310: unable to open file "oe_cre.sql"
    SP2-0310: unable to open file "oe_p_cat.sql"
    SP2-0310: unable to open file "oe_p_pi.sql"
    SP2-0310: unable to open file "oe_p_cus.sql"
    SP2-0310: unable to open file "oe_p_ord.sql"
    SP2-0310: unable to open file "oe_p_itm.sql"
    SQL>
    Edited by: 868550 on 27-Jun-2011 01:26

    Hi Aditya,
    I'm assuming the 'unable to open *.sql' errors are because oracle is looking for them in a different directory. Those files are present in the same directory as oe_main.sql whose location I specify at the start. Should'nt this be enough?No. The main-script calls the subscripts relative to the directory you started your sqlplus from. You should change to */demo/schema/oe*, start +@oe_main.sql+ there and the installation should finish without further issues.
    -Udo

  • File reading error

    Hi friends, pleasehelp me on this issue, i had a file consisting mutiple input records. in reciever side it has to write each record into each file please help me urgently

    HI
    You need to use multi maps
    at sender side add the sender interface and receiver side add the number of message type you want. then it will be mapped
    Use this blog
    Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure
    This blog involved BPM. Your requirement can be met without using BPM just use the message mapping provided here and create RA, ID, RD for any number of receivers you want.
    Thanks
    Gaurav

  • Redolog read error

    Hi all,
    i am trying to recover the database after copying the archivelog in standby database.
    i am getting below error, please suggest
    ORA-00333:Redolog read error block 43008 count 2048

    Hi,
    After copy, you can use RMAN and catalog copied archived log to standby database with
    RMAN> catalog start with '<copied archived log directory>'
    +for recover database, start  APPLY service with+
    sqlplus> alter database recover managed standby  database disconnect from session; Redo transport service is working ? why you are coping archived logs to standby side?
    Regards
    Mahir M. Quluzade

  • Utl_file read error ORA-29284

    Hi,
    I am using utl_file.get_line procedure to read. For small files it works ok.
    But I have a file about 3 Mb which I am trying to read with utl_file.get_line. After reading about 1 mb I get ORA-29284 error.
    Is there a restriction for this? Is there a workaround?

    seth2 wrote:
    Platform or database does not matter, I tried this in a few different database versions and platforms. All I am asking is if there is a restiriction about using this because the error does not make any sense since I get the error after reading half the file. it is most likely related to the size of the file. I also checked metalink and I couldn't find a solution.It would have been nice, and very useful for the troubleshooting process, for you to mention that you have been able to reproduce the problem on (list platforms) and (list DB versions). That, together woth sample code, would allow those of us who are interested to determine whether wee can possibly bother to reproduce.
    That said - is this always on the same file? You may have a linesize problem, and may need to change your max linesize. http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/u_file.htm#BABGGEDF

Maybe you are looking for