UTL_FILE.get_line not able to read large files...

Dear all,

UTL_FILE.get_line is not able to read data from file. can you suggest me to fix this problem...

Here is my code;

declare

l_file_handle UTL_FILE. Type_de_fichier;

l_input_line varchar2 (6000);

Start

l_file_name: = 'abc.csv ';

l_path: = ' / u02/R12UAT/apps/apps_st/appl/XXSES/12.0.0/bin';

l_file_handle: = UTL_FILE. FOPEN (l_path, l_file_name, 'R', 32767);

loop

UTL_FILE. GET_LINE (l_input_file, l_input_line);

fnd_file.put_line (fnd_file.log, l_input_line);

end loop;

UTL_FILE.fclose (l_file_handle);

end;

After reading a few lines I have a get the error;

ORA-06502: PL/SQL: digital or value error: character string buffer too small

I have to read data from file with UTL_FILE. Do not use SQLLDR

Thank you.

Kind regards

Ravi.

Your call to FOPEN() function specifies a size of 32K maximum line. When you call GET_LINE() without specifying the number of characters to get, Oracle will therefore assume you want to get 32K characters. However, your stamp, L_INPUT_LINE, is defined as VARCHAR2 (6000). That is, it is much too small.

The solution is to call GET_LINE() with the third parameter set to 6000.

BTW, you can also set a condition of release on the loop.

Tags: Database

Similar Questions

  • Stor.e TV 1.5 TB - not able to read .avi files

    I transferred .avi files from my computer on Stor.e tv and for some reason the icon on the left is a question mark instead of the usual.

    Not only that I am not able to read .avi files.
    The strangest thing happened only in some of the files (4) I was transferred.

    Can someone please help?
    Thank you.

    Hello

    Have you tried to repeat this procedure?
    Delete the files copied to the HARD drive and copy the files once more.

  • PS is not able to read the files from my Olympus OM - D E - M1 camera

    I have an old Version of Photoshop, CS3, Version 10.0. Now, I bought a new camera, an Olympus OM - D E - M1, and the PS is not able to read the files. Can I download a few extend camera raw?

    Per-Erik Pedersen

    Hi Peders,

    Thanks for posting on the Adobe forums.

    This camera is supported by Camera Raw 8.2, which is available in Photoshop CS 6. Please check the following KB Articles:

    Camera Raw plugin | Supported devices

    Applications of camera Raw compatible Adobe

    Kind regards

    Sandeep

  • Not able to vacuum large files and folders from Recycle Bin

    Recently, I took a few big files and folders because there is not enough available disk space. But these files are not getting deleted from the Recycle Bin.

    How have you tried to remove them?

  • Not able to read files audio wma

    I myself had this new cool device and everything is working fine beside it is not able to read files audio wma.
    It works without any problem on my Samsung android phone, but on my Slate7 it says format not supported in specifications indicates that it is supported.
    I installed the same player that I use on my Samsung android phone, any suggestions I should do to fix this?

    To my knowledge 4.1 Android doesn't have the necessary codec to play default WMA files. Please see the compatible audio formats listed by Android developers:

    http://developer.Android.com/Guide/Appendix/media-formats.html

    However, for me MXPlayer/VLC works to play WMA files. You can try this one, and there is no harm to try. Two of them are available on PlayStore. You can uninstall them if you don't like them or if they do not meet your needs.

  • I'm not able to open the file (photo) to a specific folder in Windows 7

    I'm not able to open the file (photo) for a particular folder in Windows 7, get the error 'Photo Viewer Windows can not open this photo because you don't have permission to access the location of the file'

    I'm not able to open the file (photo) for a particular folder in Windows 7, get the error 'Photo Viewer Windows can not open this photo because you don't have permission to access the location of the file'

    =============================================
    Maybe I saved the info on the net will be useful:

    =====
    Windows 7 - appropriating a file or a folder
    http://TechNet.Microsoft.com/en-us/library/cc753659.aspx

    Posted in Forum MS responses by: Ski1382

    This solved the problem for me too, you can select the top of the file (in
    my case g:\ my documents-my pictures.)

    Properties-> Security-> advanced-> change permissions

    Check "include permissions inheritable" AND "replace all permissions of the child".

    Work done :)

    And... the following answers Forum thread can be interesting to read:

    Photo Gallery can't open this photo because you
    do not have permission to the location of the file asscess
    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-pictures/Photo-Gallery-cant-open-this-picture-because-you/bc4c3f20-6c55-4c63-a73e-d856d493d9a0?page=1&TM=1327456739375

    More information:

    Maybe this article would provide a few ideas:

    Windows 7 - How to take ownership & Grant
    Permissions to access files & folder in Windows 7
    http://www.Blogsdna.com/2159/how-to-take-ownership-grant-permissions-to-access-files-folder-in-Windows-7.htm

  • I would use Yuanti SC police for my web development project. However, my developer is not able to use the file .ttc I extracted from the library of fonts, and .ttf, .otf .woff formats not available anywhere on the web.

    I would use Yuanti SC police for my web development project. However, my developer is not able to use the file .ttc I extracted from the library of fonts, and .ttf, .otf .woff formats not available anywhere on the web. Please, let me know how can I use this font for my project.

    Thank you

    Anton

    Unless the site you develop is for the Asian market, I don't know why you want to use that particular font. The Basic, standard and digital alphabet punctuation glyphs has sans serif, Roman characters, but the rest is thousands of Kanji characters. While you can use the font .ttf and .otf and web fonts, it would be very unusual to use one so great. Pages should load quickly and 78 MB, with a value of faces to download for those who have connections slow Internet is not fast.

    I would take a different font without serifs. There are literally thousands who look identical or virtually identical to Yuanti.

    131 free and high quality without font serif to choose here. I'm sure you can find a desired.

  • Qosmio G20 is not able to read a cd after burning

    Hello

    I need help please.

    My laptop just came back from the center of toshiba. The problem is, that I can burn a cd, but after I reinsert the laptop is not able to read. It always says E: / is not accessible incorrect function. On another pc, the cd can be read perfectly. Toshoba Center says it's a software problem and we should use the recovery disc. We did this, but it's always the same.
    Please can someone help?

    Thank you

    Read your ad I didn't understand what the service does exactly, but it's really odd if this occurs after the installation of clean operating system with recovery DVDs.

    Have you installed an additional burning software?
    Have you tried burning different things on different blank media?

    Sorry, but it is not possible to give a precise answer. Tell us a little more of this.

  • Tecra A3 - 152 - not able to read CD - R (or CD - RW), burned by itself or another PC

    Hello

    My TECRA A3-152 offers the CARPET * a DVD-RAM UJ - 831S player (1.40 firmware version) with the Microsoft (dated the 1.07.2001) 5.1.2535.0 driver
    The laptop is not able to read the CD - R or CD - RW engraved with any other PC (or alone). The CD is reported as empty.

    However, the reader is able to read commercial CD - R with SW or sounds or other stuff.
    After several hypotheses about the SW problems or compatibility issues, I intend to replace the drive with another.

    Any suggestion?

    Thanks - regards
    Antonio Giarrusso

    Hello

    Maybe it s only a problem of compatibility. In my experience not on each CD or DVD is compatible. I mean that not every CD manufacturing is supported by the firmware and so this question might appear.

    But let's try some common tips.
    First of all, I would recommend delete Sonic record now and the DLA.
    Then restart the computer and enter the registry.

    1. in the registry editor, expand my computer, and then expand HKEY_LOCAL_MACHINE.
    2. expand SYSTEM, and then expand CurrentControlSet.
    3. expand Control and class.
    4. under category, click on {4D36E965-E325-11CE-BFC1-08002BE10318}.
    5. in the right pane (topic area), click UpperFilters and delete. Click then click LowerFilters and delete is also.
    6. click on Yes to confirm the deletion.

    After this procedure, restart the laptop and try to read the CD

  • Not able to view the files in Windows XP after installing Ubuntu 10.10.

    Original title: problem opening of windows.

    I installed ubuntu 10.10 on my system unfortunately it took total hard drive in a single partition and now I am not able to access microsoft windows. What to do there are a lot of important files in that partition. I am not able to view the files that have been seen in windows. Please suggest.
    concerning
    Hari

    Hi hari,.

    It seems that Ubuntu has supported the installation of Windows. At this point, I would recommend youto contact support Ubuntu uninstall Ubuntu. This should return Windows XP & you can access your files.

    Hope the helps of information.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • DVD-ROM not able to read any Dvd or cd...

    Hi, my dvd rom is not able to read any disc, I can see the drive in my computer, when I insert a disc, it runs for the first time, the light shows and thn it stops completely, and when I click on the dvd icon in my computers it drive ejects, when I tried to google my problem I got to know tht, this may be due the updates for vista and the solution was to remove the upper filter or lower in the registry, I tried tht so but thn too the problem persists, try wht should I do?

    try to use the DVD rom in another IDE or SCSI port in your computer.

  • I'm not able to see the file in the facebook using Windows Phone group.

    I'm not able to see the file in facebook groups. Using Facebook for windows phone v5. Someone please help me

    Hello

    It seems that your problem is specifically related to Facebook.

    I suggest you contact the Support of Facebook for support on this.

    Please do not hesitate to answer, in the case where you are facing in the future other problems with Windows.

  • I do an update to photoshop CC 2014. Since I can not open or read jpeg files. Why?

    I do an update to photoshop CC 2014. Since I can not open or read jpeg files. Why?

    Hi francoisef,

    Please update the Camera Plugin for Photoshop. Reference: Camera Raw of Adobe Photoshop CC and CS6 Installer

    Let us know if that helps.

    Kind regards

    Mohit

  • I am not able to open my files Adobe Bridge and, sometimes, of file managers, what to do?

    I'm not able to open my files Adobe Bridge and I can't drag files to it in Indesign, Photoshop or Acrobat (I think it's the same thing with Illustrator too). More of Indesign, Photoshop, and Adobe Acrobat sometimes do not open files when I double click on it in Windows Explorer, Total Commander or even bridge. To open all the files, the only stable is via file/open, which is very inconvenient. What can I do to fix this?

    Check after resetting Bridge preferences,

    • Start Adobe Bridge, and immediately press Ctrl + Alt + Shift (Windows) or command + Option + shift (Mac OS down) so that the dialog box will reset the settings displayed, or press the keys Ctrl + Alt + Shift (Windows) or command + Option + shift (Mac OS), and then luanch bridge.

    • Select all three options - reset preferences, reset Standard Workspaces and all miniature Purge Cache - and then click OK
    Also check in the user account did work for you
  • WMP player not able to read files on fuse + after Real Network update

    In the evening, I received a noticed that there was actual update available. I installed it.  My fuse + was connected at the time. When it was done the options showed to read by the drive and the external card.  I tried to display to use it, but it seems to not work.  Windows Media Player also seems to not work.  I disconnected my player and plugged in.  Still not able to view files with WMP.  But, then was able to display using Real.  I don't like the actual display.  Was able to view files with explores.  Deleted in real.  Now able to see the player of fuse.  Only able to see 3 pictures on the external card.  I have 7 GB of data on a 8 GB card.

    Could be something else, but now seem to point to the actual update.

    I have a second player who still works with WMP.  I could see the files on the card with WMP when installed in my second player.  When I put it in my original drive is back to normal.

    Back to normal with no real software.  I liked Real SP.

    the real update may have changed the accociations with the "rocket" since it is try plugged in. uninstall the "rocket" in the Device Manager and then scaning for hardware changes. This should refreash installation.

Maybe you are looking for