Dbms_lob.fileopen gives ORA-22288. Can open the same file with utl_file.

What could cause the following behaviour:
Database 11gR2
declare
   l_amt        number := dbms_lob.lobmaxsize;
   l_dst_loc    clob;
   l_dst_offset number := 1;
   l_lang_ctx   number := dbms_lob.default_lang_ctx;
   l_src_loc    bfile;
   l_src_offset number := 1;
   l_warning    number;
begin
   l_src_loc := bfilename('ODS_SERVER_DIRECTORY', '_CIVKD_ASU.CSV');
   dbms_lob.createtemporary(l_dst_loc, true);
   dbms_lob.fileopen(l_src_loc, dbms_lob.file_readonly);
   dbms_lob.loadclobfromfile(l_dst_loc
                            ,l_src_loc
                            ,l_amt
                            ,l_dst_offset
                            ,l_src_offset
                            ,dbms_lob.default_csid
                            ,l_lang_ctx
                            ,l_warning);
   commit;
   dbms_lob.fileclose(l_src_loc);
   dbms_output.put_line(substr(l_dst_loc, 1, 200));
end;
ORA-22288: file or LOB operation FILEOPEN failed
ORA-06512: in "SYS.DBMS_LOB", line 805
ORA-06512: in line 31
22288. 00000 -  "file or LOB operation %s failed\n%s"
*Cause:    The operation attempted on the file or LOB failed.
*Action:   See the next error message in the error stack for more detailed
           information.  Also, verify that the file or LOB exists and that
           the necessary privileges are set for the specified operation. If
           the error still persists, report the error to the DBA.However opening and reading the exact same file succeeds when using utl_file.
declare
   l_file utl_file.file_type;
   l_regel varchar2(4000);
begin
   l_file := utl_file.fopen('ODS_SERVER_DIRECTORY', '_CIVKD_ASU.CSV', 'R');
   -- Haal de volgende regel op
   utl_file.get_line(l_file, l_regel);
   dbms_output.put_line(l_regel);
   utl_file.fclose_all;
end;So it seems the file is available and accessable by the database.
It's the first time we run into this particular error and it's one of the first 11gR2 instances so maybe there is something 11g specific we don't know about?

Some progress made. It turns out the directory object points to a shared drive. It's a windows server and Oracle runs as Local System. I always thought that it was impossible to read anything from a shared drive in this situation. Apparently in some situations you can using utl_file but not usign dbms_lob.

Similar Messages

  • When I try to open a pages document on my mac book pro it says "The file 'thesis.pages' couldn't be opened." But i can open the same file on my iPad and iPhone without a problem.

    When I try to open a pages document on my mac book pro it says "The file 'thesis.pages' couldn't be opened." But i can open the same file on my iPad and iPhone without a problem.

    Thanks very much for the instructions.  I encountered this problem this morning myself and the recommendation fixed the problem immediately.  When things like this happen with iCloud and Pages it makes me wonder if I might be better off using something else, having just recently had to fix the problem that the current Pages can't read documents I created with a much earlier version until they were "upgraded" by an interim version.

  • How can I make Adobe Acrobat Pro give a warning to another person who is trying to open the same file I currently have open?

    How can I make Adobe Acrobat Pro give a warning to another person who is trying to open the same file I currently have open?

    You can't.

  • I need to send an email where the recipient opens the PDF file with a password,   can anybody help me and show me how to do that

    Hello,  I am trying to send an email where the recipient opens the PDF file with a password,   can anybody show me how to do that

    Hi surez,
    To password protect a PDF file, you need to use Acrobat. If you don't have Acrobat, you can try it for free for 30 days. See www.adobe.com/products/acrobat.html for more information.
    In Acrobat, you choose File > Properties when the document is open, and then click the Security tab to set up a password.
    Please let us know how it goes.
    Best,
    Sara

  • I have just purchased the new Canon 7D II.  I am using CS6 and Lightroom 5.0, neither of which can open the RAW files although I see from the list of supported cameras that the 7D II is covered.  I have updated both CS6 and LR so that is not the problem.

    I have just purchased the new Canon 7D II.  I am using CS6 and Lightroom 5.0, neither of which can open the RAW files although I see from the list of supported cameras that the 7D II is covered.  I have updated both CS6 and LR so that is not the problem.  Not sure what to do next.

    It has been indicated that both of those cameras will be supported in the final release of Camera Raw 8.7. But there is no announced release date. There never is. I assume it will be before December 31. But that is only my guess based on the fact that the release candidate expires then.

  • How do I stop more than one user opening the same file?

    I'm about to install Lion Server and we're concerned that more than one person will be able to open the same file at the same time. Can this be prevented? If not it seems to make the concept of a server pointless?
    Any help appreciated. Already annoyed I have to phone and order 10.7 Server as it's no longer on the App Store. Can't run 10.8 as the Mac Pro is too old and Apple have cut us off.

    The file server software supports file locking, but multiple file access is application-dependent. In some cases it's entirely valid for multiple users to access the same file. It's up to the application to allow or deny this.
    Ordinarily, if an application requires exclusive access it should flag the file accordingly when it opens the file. This will prevent other users from opening the file. However, it's not up to the server to do this.

  • Two users opened the same file at the same time with file on Win2K Server

    I just had a problem with a file that could not be saved. After a little investigation I discovered that two users had the same file open at the same time. This is with both users using InDesign CS2 and saving to a Windows 2000 Server. Any ideas how this even happened? The only thing I can think of is if they both opened the file at the exact same time but even that I doubt. I guess the more likely possibility is that the user on 10.5 (which we have had a lot of problems with, it's hard to tell how many of them are CS3 problems (yes CS3) and how many are Windows 2003 Server problems) had InDesign CS2 flake out and not tell her the file was open. Has anybody else seen this? The other user was using 10.4. Both computers have the most recent updates for the OS and for their various adobe products.

    I have videos on mov file and my quick time player does not play them.
    The MOV file container is the generic QT file container. Any audio and video data compatible with the computer system used to create the file can be placed in the MOV file container. Unfortunate, other systems cannot play the file unless they too are configured with the same components as those used to create the file. The normal procedure here is to use the Finder "Info" or alternative media play "Inspector" window to determine what codecs were used to create the original file and, if they are available for your Mac, install them on your system for playback use. Also be advised that some "legacy" codecs may require playback in the QT 7 Player for proper QT support.
    I opened with other players, there is no sound. Then I opened the same file on my windows 7, it plays perfectly with the sound and everything? What is the problem?
    This would indicate these players either access your QT codec component configuration which does not include the required codec or the app has its own built-in codec support which does not include the required audio codec but you Windows 7 media player is configured with the required codec support. This may incidate the use of a really old codecs that may or may not be available/supported on a Mac any longer.

  • Using Illustrator CS and being able to open the same file on two machines!

    Hi,
    Don't know if anybody can help?
    I have been using macs for many years and now we have moved over to windows!
    We are using a server (not sure which type? NT?) and we have found that with the Mac you could not have two users in the same file but with Windows I can be in an Illustrator file and a colleague can also open the same file - no error message comes up or anything! We can then both do changes in that file and the last to save has the updated file.
    Can we do anything so you get a error message for the second user?
    Any ideas?
    Thanks
    Carole

    Hi,
    this does not make sense? Its the SAME version of Illustrator as that was on the Mac but when working on the PC you can both be in the file. On the Mac you get an error message saying the file is already open and you cannot access it.
    This must be a Windows issue or a Server issue as the problem is not on the Mac?

  • Can you share bridge so other designers in the office can access the same files?

    Can you share bridge so other designers in the office can access the same files?

    Just to bring this into context, it helps to keep in mind Adobe's reluctance add any functionality to its software that would encourage working over a network.  The following can be read in many archived messages at the Photoshop forum:
    This is the boilerplate text often used in connection to saving to a network in the Photoshop forums. Please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe:
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://kb2.adobe.com/cps/406/kb406793.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

  • Opening the same file in by different users

    As a newbie to InDesign I got a workflow question.
    Working with a team of 6 designers, we would like all to work in the same InDesign document. We need to create a big salebooks book, therefore it is necessary to open the same file in different copy of indesign?
    Currently we are working with CS5 and when I have a indd file open, none of my coworkers are able to open the file except for a copy. I understand that really working together on the same file is something you could do. But can’t be like in MS-Office? The moment you open a indd file which is already opened by a other user, you will get a message and you can then either to open as read only or a notification when the other user is ready editing the file
    Is this possible? Or do we need some additional tools?

    But can’t be like in MS-Office? The moment you open a indd file which is already opened by a other user, you will get a message and you can then either to open as read only or a notification when the other user is ready editing the file Is this possible? Or do we need some additional tools?
    I would actually be surprised if there are no workflow management plugins that do this.
    As you imply, it's really not that hard to do.
    Making it look really slick would probably require a plugin.
    But you could do it fairly easily with some simple scripting, a few hours of work.
    One script that runs whenever anyone opens or closes a file and registers that open/closure with a server.
    Plus some extra stuff to deal with messaging.

  • When opening a filn in illusrtator CC I have memory plroble,.  Opening the same file in CS5 does not make problems

    When opening a filn in illusrtator CC I have memory plroble,.  Opening the same file in CS5 does not make problems.
    How can I get in contact with an adobe employee, where I can finally solve my problem with CC (with whom I can send email back and forth or who calls me)... On my PC CC does not work well... I often need to use my old CS5 version.

    You have not provided any proper system info, so nobody can even guess.
    Mylenium

  • Why can't I open ccitt g4 compression tiff files with ps6? and could open theses same files with ps3?

    Why can't I open CCITT G4 compression , TIFF format files with PS6?  I used to open these same files with PS3.   Can anyone help me out with this????

    This is what I get when trying to open ccitt G4 compression files. Tiff format.   Thanks for trying to answer my question and Problem.  I found a site where supposedly I can download a plug in into photoshop 6 that will open the files.  don't know if it will work but am gonna try it.

  • Illustrator CS3 opening the same file twice

    Hoping someone has an answer for this because I'm stumped.
    Just set up CS3 on a new iMac for one of my users, imported her Illustrator files from her hold PC (also running cs3).
    When she opens a file its opening the same file twice. When she modifies one, its all being mirrored on the other. When she saves, she has to save both "files" although they're really only 1 file.
    Any ideas?

    You can open multiple windows looking at the same file. It comes in handy when you're zoomed in, working on some detail and want to see the big picture...
    Open a new one by going to the window menu and selecting "new window" This will open a new window with "filename:2" in the title bar.
    To get rid of additional windows, just close them. You'll have to save the file to get it to remember that the other windows are closed.

  • HT4796 I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    I have made a file using the Pages app.I mailed it to a friend.When she tried opening the same file on her pc at home , It did not open.Please help me as to how to open the file in the Microsoft word format on her pc.

    Send it as a PDF.

  • No printing :I can't print anymore, printing the same file with another programs is ok, printing form LR: Preparing  and Printing indicatorbar in the left hand upper corner are running, but no output at all rom my printer. I have been printing before. I u

    No printing :I can't print anymore, printing the same file with another program is ok, printing form LR (in the same system and printer of course :-) ): Preparing  and Printing indicatorbar in the left hand upper corner are running and completing, but no output at all to my printer. I have been printing before. Next I upgraded to LR5.7.1 but the problem stays. Perhaps some adjustment is changed by me unintentionally, but I have no idea. Does anybody know what to check? Printing to file is also strange,the canvas only seems to accept A4, and crops any image relative to that size, so a 10x15 cm print on 10 x 15 cm paper is cropped to 10x15/2. Anybody any idea? (system win 8.1 64, printer HP B8550)

    I accidentally solved my mystery.  For some reason it was set to "print to file".  I changed it to "printer" and now I am able to print.

Maybe you are looking for

  • Button timeline AS 2.0 problem

    I have an .swf called main, inside it has frame animation including a set of navigation buttons on its own level. The navigation buttons are inside a movie clip called nav_mc. I dropped the nav_mc clip into a frame on the main timeline. The navigatio

  • Refresh Query with variable is not working

    I have issue with my query. 0customer -Property (key and text) and Selection parameter When I place 0customer in the filter area and save the query execute the query and refresh the query I am able to change the customer number parameter values. Vari

  • Safe mode reboot with wireless keyboard?

    Is there a way to do this?

  • Do I need to register a domain name?

    Hi, I'm new to iWeb and have a simple question. Do I need to register my website's name or do I just type it in during the "Publish" stage? Thanks, Andrew

  • Assignment of purchase a/c

    hello all, Please help me , the scenario is my client has only one company code and two plants his requirment is to see the total purchase in p&l a/c  for preparation of balance sheet how we can assign the purchase a/c plant wise so that he could see