ORA-22288: file or LOB FILEOPEN operation failed

Hello

I am developing a small function to extract a file from the file system and return it as a BLOB. I created and Oracle Directory (CREATE or REPLACE DIRECTORY GRMS_TMP AS ' / tmp';) and gave the public access to this directory.

Below the code and output... am I missing something?

Thank you very much, Pier Paolo.

Function FAOGETFILE (p_FileName Varchar2)

Return of the Blob

v_OutBlob BLOB;

v_FileSrc BFILE.

Begin

v_FileSrc: = BFILENAME ('GRMS_TMP', p_FileName);

-Insert data into the Table

Insert the FAO. FAO_GRMS_WS_BLOB

Values (FAO. FAO_GRMS_WS_BLOB_S.NextVal, p_FileName Empty_Blob(), Sysdate)

Return BLOB_DATA in v_OutBlob;

DBMS_OUTPUT. PUT_LINE('SYS.) DBMS_LOB. FILEEXISTS (v_FileSrc) '. SYS. DBMS_LOB. FILEEXISTS (v_FileSrc));

-Open the file

DBMS_LOB. FileOpen (v_FileSrc, DBMS_LOB. LOB_READONLY);

-File loading

DBMS_LOB. LOADFROMFILE (DEST_LOB = > v_OutBlob,)

SRC_LOB = > v_FileSrc,

AMOUNT = > DBMS_LOB.getLength (v_FileSrc));

-Closing file

DBMS_LOB. Close (v_FileSrc);

Return v_OutBlob;

End FAOGETFILE;

On the file system, I have all rights/privileges to access the file:

File:

drwxrwxrwt 38 root root 270336 16 Feb 10:32 tmp

File:

-rwxrwxrwx 1 Xxxuser 42 16 Feb 10:14 temp.txt dev

When I run the service I get the following:

Error report-

ORA-22288: file or LOB FILEOPEN operation failed

No such file or directory

Output: SYS. DBMS_LOB. FILEEXISTS (v_FileSrc) 0

In addition to the suggestion of Hoek - / tmp is on the server database, no?

Tags: Database

Similar Questions

  • Can't do dmg file in the folder - "operation failed with status 1"

    I have a 1 TB hard that often went around. There are some personal files here although I am trying lock creating a DMG using disk utility and turning on encryption. However, whenever I try to do that, I always get an error code - status 1 to be exact. Note that it only does on some records. I had about 15 cases work this way with success, but I get this error a LOT... probably about 40% of the time. "Whenever I try too search ' operation failed with status 1," nothing appears! So frustrating! Any help at all is greatly appreciated! Please see the photos to see more. Thank you! Information... Files in JPEG areinformation1st picture2nd photophoto 3

    Please launch the Console application in one of the following ways:

    ☞ Enter the first letters of his name in a Spotlight search. Select from the results (it should be at the top).

    ☞ In the Finder, select go utilities ▹ of menu bar or press the combination of keys shift-command-U. The application is in the folder that opens.

    ☞ Open LaunchPad and start typing the name.

    The title of the Console window should be all Messages. If it isn't, select

    SYSTEM LOG QUERIES ▹ all Messages

    in the list of logs on the left. If you don't see this list, select

    List of newspapers seen ▹ display

    in the menu at the top of the screen bar.

    Click on the clear view icon in the toolbar. Then take an action that does not work the way you expect. Select all of the lines that appear in the Console window. Copy to the Clipboard by pressing Control-C key combination. Paste into a reply to this message by pressing command + V.

    The journal contains a large amount of information, almost everything that is not relevant to solve a particular problem. When you post a journal excerpt, be selective. A few dozen lines are almost always more than enough.

    Please don't dump blindly thousands of lines in the journal in this discussion.

    Please do not post screenshots of log messages - text poster.

    Some private information, such as your name or e-mail address, can appear in the log. Anonymize before posting.

    When you post the journal excerpt, an error message may appear on the web page: "you include content in your post that is not allowed", or "the message contains invalid characters." It's a bug in the forum software. Thanks for posting the text on Pastebin, then post here a link to the page you created.

    If you have an account on Pastebin, please do not select private in exposure menu to paste on the page, because no one else that you will be able to see it.

  • DBMS_LOB: ORA-22288: LOB operation FILEOPEN or file failed

    Hello
    Consider the following code:
    < pre >
    DECLARE
    lv_src_loc BFILE.
    lv_directory VARCHAR2 (100): = "TESTDIR".
    lv_filename VARCHAR2 (100): = testfile.log';
    BEGIN
    lv_src_loc: = BFILENAME (lv_directory, lv_filename);
    DBMS_LOB. OPEN (lv_src_loc, DBMS_LOB. LOB_READONLY);
    END;
    < / pre >
    < pre >
    When I run the above code, I get the following error:
    ORA-22288: file or LOB FILEOPEN operation failed
    No such file or directory
    ORA-06512: at "SYS." DBMS_LOB", line 828
    ORA-06512: at line 15 level
    < / pre >

    The directory specified by the directory TESTDIR AS db is actually located on a Server Web Unix Boxing.

    Now I wonder, is it necessary that the actual filesystem directory pointed to by the database WHAT TESTDIR directory be on the Unix machine on which the database server is running?

    If so, then what other options I have to read a file file system that is not on the database Unix machine and throw in a database table?

    Grateful for your help!

    Thank you.

    Sylvie Shearer wrote:

    The directory specified by the directory TESTDIR AS db is actually located on a Server Web Unix Boxing.

    Now I wonder, is it necessary that the actual filesystem directory pointed to by the database WHAT TESTDIR directory be on the Unix machine on which the database server is running?

    Well, think a little more. How do Oracle, running on the database server, suppose to know where is this TESTDIR ? It is on a web server and not another server?

    And if she knew that, how are there supposed to carve his way through the network and access of this server files and directories penetrate this server?

    If so, then what other options I have to read a file file system that is not on the database Unix machine and throw in a database table?

    Depends on the requirements. Why do you need to load the contents of a directory in the database tables?

    You can use SQL * Loader, run on the web server and easily download a lot of files in the database. But if these o/s files are updates then the uploads of db are obsolete, and this process must be repeated again and again in order to synchronize the content of the file table of database with the actual files on the web server.

    You can use Samba or NFS to share the directory on the web server and mount it locally on the database server. But this increases the number of moving parts and also increases the complexity of security and access control.

    You can use the rdist (cable) of Linux/Unix command to create and manage a duplicate directory on the database server - a bit like replication at the file system level.

    Or you can enable access to these files via the web server (such as a web service or directly). In this case, the database server need only the URL of the file to access. Instead of storing the actual content of the file in the database, the URL may instead be stored. And when the content is required, PL/SQL code can use UTL_HTTP for example to retrieve the content of the file.

    I think that most of the other options will fall into one of these categories. The "best" depends on your needs.

  • Setup error when loading Images - ora 22288

    Hi all

    I got an error during the installation of the APEX as below,

    Please help me rectift this...

    I use APEX on windows server 2003... and Oracle 10g XE

    ==========

    SQL > @apxldimg E:\From F - official files\Sakthi\Softwares\apex

    PL/SQL procedure successfully completed.

    old 1: create the directory APEX_IMAGES as '& images/apex/1 '.
    new 1: create the directory APEX_IMAGES as 'E:\From/apex/images '.

    Created directory.

    declare
    *
    ERROR on line 1:
    ORA-22288: file or LOB FILEOPEN operation failed
    The system does not have the specified path.
    ORA-06512: at "SYS." DBMS_LOB", line 523
    ORA-06512: at "SYS." XMLTYPE", line 287
    ORA-06512: at line 15 level



    PL/SQL procedure successfully completed.


    PL/SQL procedure successfully completed.


    Validation complete.

    calendar for: Load Images
    Elapsed time: 00:00:00.81

    Directory has fallen.

    ======

    Published by: madan on April 5, 2010 13:53

    Hello

    This might help
    Re: Upgrade problem Apex 2.1 to 3.2.1 in Oracle Database 10g Express Edition

    BR, Jari

  • CoreTelephony error in trace file as a file for coretelephony tracing operation has failed, perhaps you need more disk space. Details "error opening the file/tmp/ct.shutdown, err = operation not permitted

    I got this error:

    "CoreTelephony Trace file error
    A file for CoreTelephony tracing operation failed, you might run out of disk space. Details "error opening the file/tmp/ct.shutdown, err = operation not permitted"

    I tried to solve it by searching for CoreTelephony errors. Could not resolve yet.
    Software does not, especially of photoshop...

    Any ideas?

    Same thing here, iMac with OS X 10.11.6. All started a couple days ago. Have not found any valid solution online yet, I tried rebooting in recovery mode and check disk, but it seems that everything is ok with the drives and permissions.

  • get ORA-22285: non-existent directory or file for FILEOPEN operation

    Hello

    I'm trying to insert a .jpg file into a table, and I get the error ora-22285.
    The database is 11g and the OS is windows 2008 R2 (64-bit).

    Here are the steps that my work.

    I edited the ini.ora file and add utl_fil_dir = c:\mun\*

    I restarted the DB.

    I made edumet.jpg exist in the c:\mun\photos directory.

    3.
    SQL > create or replace directory images like 'c:\mun\photos\ ';

    Created directory.

    SQL > grant all the images directory to the public;

    Grant succeeded.

    SQL > declare
    l_blob 2 blob.
    3 l_bfile bfile.
    4 start
    5. insert into images values ('edumet', EMPTY_BLOB())
    6 l_blob return images_image;
    7 l_bfile: = bfilename ('images', 'edumet.jpg');
    8 dbms_lob.fileopen (l_bfile);
    9 dbms_lob.loadfromfile (l_blob, l_bfile, dbms_lob.getlength (l_bfile))
    ;
    10 dbms_lob.fileclose (l_bfile);
    11 end;
    12.
    declare
    *
    ERROR on line 1:
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS." DBMS_LOB", line 744
    ORA-06512: at line 8 level


    What Miss me?

    Thank you
    Laba

    The names of the objects are registered by default "upper case" in the dictionary.
    ;)

  • Operation failed on the file hard :( How to fix?

    I just cloned a Windows 10 VM in Vmware Workstation Pro12.0.0 build-2985596.  The VM source worked very well.

    When I try to start the clone I get the message:

    Operation failed on the file "C:\Users\username\Documents\Virtual Machines\Windows 10 Insider\Windows 10 x 64 - cl1 - s007.vmdk.

    Help...

    Dave

    Looks like it was the real problem of IO - chkdsk/s and reclone fixed it.

    Dave

  • Operation failed on the file ' / dev/rdisk0s3 ".

    I get the following error message when I tried to run Fusion for a few days.

    Operation failed on the file ' / dev/rdisk0s3 ".

    The locks on the virtual machine to the top / freezes when it appears.

    I gives me the option to continue, cancel or retry.

    The only practical option is abandoned as the virtual machine remains locked/frozen.

    Could not find anything in the knowledge base.

    I'm under Fusion 3.1 on Snow Leopard.  The virtual machine runs Windows 7 Pro (32 bit) from the Boot Camp partition.

    Until recent days, I've been a happy user with no hiccups for a few years.

    Any wisdom or guidance would be much appreciated!

    Take a look on: Boot Camp virtual machine fails to power on

  • Operation failed because the file already exists

    Hello

    I have a quick question and I don't know how to fix it.

    I used VMWare vCenter to migrate and existing virtual machine, he got stuck and failed.

    I went to Virtual Infrastructure delete the virtual machine but for some reason still exist some files and I see the files allocated for this purpose.

    I tried to migrate it again and I get the following error

    Operation failed because the file already exists

    Cannot create disk virtual /vmfs/volues/xxxxxxxxxxxxxxx/FreeBSD/FreeBSD.vmdk

    How can I manually delete this file (s)?

    Thank you

    Paulo

    Is it possible that I can manually delete these files?

    One way is using the data store browser (right click on the data store and select Browse).

    WARNING: it is not an undelete function

    André

    * If you found this device or any other answer useful please consider awarding points for correct or helpful answers

  • Test system update fails on ORA-01113: file 1 needs media recovery

    I use Oracle 9.2.0.6 on HP - UX (B.11.11)

    I'm refreshing to a test of production on the same server system.

    The update fails on...

    ALTER DATABASE OPEN RESETLOGS;
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: ' / elltest/system/system_01.dbf'


    I do mainly:
    -Place prod tablespaces in backup mode
    -Copy the files from production to test directories
    -Take prod tablespaces out of backup mode
    -pass the prod (once for each newspaper group) log files
    -copy files from archive prod to test

    STARTUP NOMOUNT

    Create control file from a copy of the prod trace file
    (CREATE CONTROLFILE REUSE SET DATABASE 'ELLTEST' RESETLOGS ARCHIVELOG)
    It works

    RECOVER DATABASE USING BACKUP CONTROLFILE
    -J' I grab the last log archive copied during production.

    ALTER DATABASE OPEN RESETLOGS;
    ERROR on line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: ' / elltest/system/system_01.dbf'

    I think I have I have all required log archiving prod?

    Any advice?

    What you're trying to do is an incomplete recovery of the database. Since the redo logs are not used in your recovery you must explicitly specify the time to stop. If you do not process assumes a complete recovery and will require a request for reinstatement of online recovery log data that you do not.
    You can use UNDO based recovery with
    RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROL FILE;
    then type CANCEL after the last active log has been applied.
    Open with option RESETLOG database. It should work.

  • Satellite L500 - backup operation failed

    Hello guys,.

    I use Satellite L500. I'm trying to raise my secondary drive data in the computer. It shoes the operation failed, whenever I'm trying to do. If anyone has the solution for it, please let me know.

    Thank you
    Pavan

    Hello

    First of all, welcome in the forum here, Pavan! :)
    It is good that you are trying to make a backup of your files, that s the most important thing before we look at working on the computer.

    But some details are missing in your ad:
    -What operating system you have?
    -What backup program you use?
    -What exactly is the error message (screenshot)?

  • Operation failed with error 0 x 00000006 (Windows 7 x 64)

    We have a homegroup with a desk and a laptop (wireless connection). Both are running Windows 7 Home Premium 64-bit.  The laptop and reviews share files on the desktop and vice versa, but it cannot access the shared printer attached to the desktop computer. The driver of the printer, a Canon MP500, is up-to-date (I have no problems printing directly from the desktop) and sharing has been enabled in the properties of the printer.  When I try to install the printer on the laptop as a network printer, the laptop sees the printer but will not connect. I get the following message: "Windows cannot connect to the printer. Operation failed with error 0 x 00000006. "Any help would be appreciated!

    Hello

    • You have security software installed on the computer?

    You can try to install the printer as a local printer and then check if you can print from the network. To do this follow the steps below:

    a. Click Start, and then select devices and printers.

    b. click on add a printer > add a local printer >

    c. create a new port and in the drop-down list box make sure you "Local Port" is selected and click Next

    d. then in 'Enter a port name' enter the path to the printer in network - \\computer name\printer name and click OK

    try to print and check if it works.

    I hope this helps. Let us know the results.

    Thank you and best regards,

     

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Unable to share the printer attached to the XP with windows 7, receive error message: windows cannot connect to the printer: operation failed with error 0x000004f1.

    Original title: printer HP LaserJet 4050 of PCL6 compatible with Windows 7?

    I have a desktop windows xp pro (SP3 5.1.2600) and you have a printer HP LaserJet 4050 PCL6.  The printer works fine connected to the desktop computer with a parallel port.  I'm trying to share the printer on my home network so that Win 7 (6.1.7601 SP1) laptops can use its printing features.  Please help.

    First I tried to add it with \\hostname\printername that returned this error: windows cannot connect to the printer: operation failed with error 0x000004f1.
    Thanks in advance for any help / support!

    Hello

     

    1. the two Windows XP, Windows 7 connected in a same workgroup?

    2. can you access files shared XP of Windows 7 computer?

    3. check if the printer is shared or not?

    I suggest you follow these methods and check.

    HP LaserJet 4050 PCL6 printer is not compatible with Windows 7. Printer drivers are available for Windows XP-based computers only.

    http://h20000.www2.HP.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=18972&prodSeriesId=25475&prodNameId=18322&swEnvOID=228&swLang=8&mode=2&swItem=LJ-4119-3

    It is not in the Windows 7 Compatibility Center.

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/search.aspx?l=en-us&type=hardware&s=4050%20PCL6

    I sugegst you contact HP support for Windows 7 drivers, after you instaall drivers to check with the question.

    http://WWW8.HP.com/us/en/support-drivers.html

    See also: networking computers running different versions of Windows

    http://Windows.Microsoft.com/en-us/Windows7/networking-home-computers-running-different-versions-of-Windows#section_7

    I hope this helps!

  • ORA-01207: file is newer than the control file - old control file

    Hello

    Please indicate why I am facing this problem:

    SQL> startup
    ORACLE instance started.
    
    
    Total System Global Area 1068937216 bytes
    Fixed Size                  2233344 bytes
    Variable Size             641731584 bytes
    Database Buffers          419430400 bytes
    Redo Buffers                5541888 bytes
    Database mounted.
    ORA-01122: database file 1 failed verification check
    ORA-01110: data file 1: '/var/oracle/oradata/system.dbf'
    ORA-01207: file is more recent than control file - old control file
    
    

    I use Oracel XE 11g on CentOS

    Thank you in anticipation

    You have restored the old control file while your data files are recent. Restore the last control file and then recover your database to open it.

  • Oracle Database Vault ORA-12578 connection error: open TNS:wallet failed (user OS to access the wallet)

    Hi all

    I create a portfolio of oracle and everything works fine until a script is launched by the OS oracle user. (same user that whoever created the store)

    I use authentication external store and inside my script, I do something like a sqlplus / @MYSECURE_TNS.

    However, when I run a script OS another user as a 'data_loading_user' I get the error: Oracle Database Vault ORA-12578 connection error: TNS:wallet open failed

    I would like to know, how I can activate any user on the local host access the portfolio safe to connect to the database.

    Here my current ENV:

    ==================

    Oracle Linux 6.5

    Oracle a Standard 11.2.0.4

    Webtier Oracle 11g

    Database and thin client SQLNET. ORA

    =============================

    SQLNET. WALLET_OVERRIDE = TRUE

    SSL_CLIENT_AUTHENTICATION = FALSE

    SSL_VERSION = 0

    WALLET_LOCATION =

    (SOURCE =

    (METHOD = FILE)

    (METHOD_DATA =

    (DIRECTORY = / u01/app/oracle/owm/wallets)

    )

    )

    Thanks in advance for any help.

    JS

    Hi all

    Tried something out of the blue, that has worked.

    I added the data_loading_user of the user to the group administrator (Group of BONES that created the wallet).

    The I added the read permission to the group, so the permission on the files below were 640:

    # > chmod 640 cwallet.sso

    # > 640ewallet.p12 chmod

    Thank you

    JS

Maybe you are looking for

  • How can I stop the automatic downloading of exe files before you see the size of the file?

    When I click on a link of file (for example "setup.exe" or "Setup.zip") of a Web site, on what it asks you where I save the file and indicates the size of the file, but the download has already started in the background before I clicked Save. I have

  • Y550P - Bluetooth connection drops

    My Bluetooth devices are down for minutes at a time at seemingly random times. I'll connect my mouse and it works fine for 10-20 minutes and then it stops just work. It still shows as connected, but it does not work. I turn the switch off wireless an

  • Array of bytes to the Type specifier

    Hello everyone. In my project I have a connection to an external device via a RS-232 connection. Now, I read the bytes and want to convert them to a specified type, such as I32 or U8. When the data arrives, I convert the string to a byte array. For o

  • MOBOT steering problem

    I have a problem with the use of LabView to control http://mobot.pl/index.php?site=products&type=855 carrier MOBOT mobile platform. Problem is the following: as an attachment, I have attached a vi basically that can control this mobot in four directi

  • Injet 1000 printer

    I have 1000 injet printer that requires 2 cartridges - 1 black and 1 color - I bought 2 black cartridges because I don' t need to color for what I print - I get a message on the color cartridge is installed wrong - is there a way to bypass this messa