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

Similar Messages

  • 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

  • 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.

  • 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

  • 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

  • [SOLVED] Pacman "config file could not be read" error during Arch ins

    I've been attempting to get Arch setup for a while now, and after having some trouble with partitions, my wireless connecting, and setting up repos and mirrors, which the Wiki helped me solve, I've hit a bigger bump.  While updating the system using pacman as the Beginners Guide says to do, I get errors when I try to continue the update process as follows :
    btw: I'm typing this on a laptop next to my computer
    [root@McArch~]# pacman -Syu
    error: config file /etc/pacman.d/core could not be read
    error: config file /etc/pacman.d/extra could not be read
    error: config file /etc/pacman.d/community could not be read
    :: Synchronizing package databases . . .
    error: failed to updated core (unexpected error)
    error: failed to updated extra (unexpected error)
    error: failed to updated community (unexpected error)
    error: failed to synchronize any databases
    Any tips as to whats going on?  I've tried to created said files, and even insert mirrors into the file, like in the /etc/pacman.d/mirrorlist file but this doesn't seem to help
    Last edited by Windfinder (2008-09-29 20:43:29)

    Glad you got it working.
    I'm not sure what happened in your install but I just finished using an old 2007.08 iso and pacman first starts out with /etc/pacman.d/core, etc/pacman.d/extra, /etc/pacman.d/community ... etc., but I never had your problem when I did the #pacman -Syu after initial install reboot.  The pacman update removes the above mentioned repos and replaces them with a single /etc/pacman.d/mirrorlist.  You must have messed up an initial config file somehow as I couldn't get the same errors you got.  It looks like you had your /etc/pacman.conf file messed up somehow and when you pointed it to the mirrorlist it could finally work properly.  I'll just include my /etc/pacman.conf file and /etc/pacman.d/mirrorlist so you can compare.  NB*  these are from my x86_64 so for 32 bit machines i686 would replace x86_64 in the files.
    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl %u > %o
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options (all disabled by default)
    #NoPassiveFtp
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # Testing is disabled by default. To enable, uncomment the following
    # two lines. You can add preferred servers immediately after the header,
    # and they will be used before the default mirrors.
    #[testing]
    #Include = /etc/pacman.d/mirrorlist
    [core]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [extra]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    [community]
    # Add your preferred servers here, they will be used first
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    /etc/pacman.d/mirrorlist
    # Arch Linux repository mirrorlist
    # North America
    # - United States
    Server = http://mirror.neotuli.net/arch/$repo/os/x86_64
    Server = http://holmes.umflint.edu/archlinux/$repo/os/x86_64
    Server = http://archlinux.unixheads.org/$repo/os/x86_64
    Server = ftp://ftp.archlinux.org/$repo/os/x86_64
    Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/x86_64
    Server = ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/x86_64
    Server = ftp://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/x86_64
    Server = http://mirrors.easynews.com/linux/archlinux/$repo/os/x86_64
    Server = ftp://ftp.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/x86_64
    Server = http://mirror.rit.edu/archlinux/$repo/os/x86_64
    Server = http://mirror.umoss.org/archlinux/$repo/os/x86_64
    # - Canada
    Server = ftp://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/@carch
    Well it was an interesting way to kill 30+ minutes.

  • Uses the library to get UTL_FILE to read a excel file in PL SQL?

    Good day.
    Someone can give me some code that uses the library to get UTL_FILE to read a excel file in PL SQL?
    I intend to use this library because I want to run a script on my machine to treat an excel file without having to make changes on the server.
    Thank you.

    163d6dc5-fa66-4eb1-b7d5-653dea63bbc8 wrote:
    Good day.
    Someone can give me some code that uses the library to get UTL_FILE to read a excel file in PL SQL?
    I intend to use this library because I want to run a script on my machine to treat an excel file without having to make changes on the server.
    Thank you.
    Ranit's links are useful, you should read them.
    Also check out the FAQ on this forum:Re: 5. How do I read or write an Excel file?
    UTL_FILE is not the best choice for reading data from Excel files.
    It also will not be able to read an Excel file located on your client computer.  As with any PL/SQL code on the database, it can only access things that the server itself can see, so that doesn't include hacking across the network, bypassing network security, and hacking into the client computers operating system to read files directly from it's hard disk.  This isn't how client server architecture is intended to work.

  • Read error! Illegal format of file

    Read error! Illegal format of file. What in the world!! I getting this message and now the song in GB has disappeared. I was doing some editing and I hit save then wham bam this message comes up and the song in GB is blank like there is not a file there. I did check in The HD and its there but when I try to open I get the Read error! Illegal format of file. Any ideas thanks.

    Hey Sam,
    That's strange,
    do this for me:
    click the file get info (apple key + i)
    make sure:
    Open with: Logic Express (default) is checked or select it.
    Or
    Ownership & Permissions:
    Read and write or read only (Never - No access)
    hope this helps, regards,
    Jorge

  • Hi, I am getting an 'Error 4810 occurred at Sound File Read Open.vi' for the attached wav file (plus many other wav files). Any ideas?

    Hi,
    I am getting an 'Error 4810 occurred at Sound File Read Open.vi' for the attached wav file (plus many other wav files).
    Any ideas?

    No attachment exists.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

Maybe you are looking for

  • Cannot restore firmware

    I have a problem with my 2009 Macbook Pro 13". It has crashed during a firmware update, and now it won't boot but only beeps "SOS". I went to a couple of Apple Service Providers, but they could not help me restoring the firmware, the only solution se

  • Configuration scenario cannot be created

    Dear Gurus, I am facing a new issue at my new customer. After logging in the repository of the pi server I realized that the menu "process integration scenario objects" containing configuration sceanario Actions Integration process monitoring process

  • Vanishing Pointer

    My pointer keeps disappearing at random intervals. First when I hover over the buttons at the top right, then eventually over the entire page until it returns for a moment. It is odd. Although I do not see the pointer, the buttons are active and thei

  • Safari 4 Certificates Bug

    This problem only started today. Now I'm unable to access my gmail, ebay, facebook, or pretty much any site that demands a login. If I attempt to access any site that requests user and password information, a safari dialogue stating "safari can't ver

  • TRYING TO RECOVER PREVIOUS BE

    I am running latest Solaris release and mirrored root in zfs. I created a new BE for patching, I applied patches to that BE, I then activated the new BE, this is the message I got: The target boot environment has been activated. It will be used when