Error when DBMS_LOB.FILEOPEN , why ?

Hi..
I create a directory , example : ULLOA
"create or replace directory ULLOA as 'c:\';"
This path (c:\) are inside of the server..
But , when execute the block pl/sql
l_bfile := bfilename( 'ULLOA', 'setup.txt' );
dbms_lob.fileopen( l_bfile );
Obtain the next error :
ERROR en línea 1:
ORA-22288: file or LOB operation FILEOPEN failed
The system cannot find the file specified.
ORA-06512: at "SYS.DBMS_LOB", line 475
ORA-06512: at line 9
Why?
Are correctly defined the path c:\
Am working in Windows 2000 and my BBDD is Oracle9i
Atte
Hector
PD : Sorry my english

Thanks Kamal
See my execution :
SQL> create or replace directory ULLOA as 'c:\';
Directory created.
SQL> declare
2 l_bfile BFILE ;
3 begin
4 l_bfile := bfilename( 'ULLOA', 'setup.txt' ); 5 dbms_lob.fileopen( l_bfile );
6 end ;
7 /
declare
*ERROR at line 1:
ORA-22288: file or LOB operation FILEOPEN failed
The system cannot find the file specified.
ORA-06512: at "SYS.DBMS_LOB", line 504
ORA-06512: at line 5
SQL>
SQL> spool C:\setup.txt
SQL> prompt Hi Kamal.txt
Hi Kamal.txt
SQL> spool off
SQL>
SQL> create or replace directory ULLOA as 'c:\';
Directory created.
SQL> declare
2 l_bfile BFILE ;
3 begin
4 l_bfile := bfilename( 'ULLOA', 'setup.txt' ); 5 dbms_lob.fileopen( l_bfile );
6 end ;
7 /
declare
*ERROR at line 1:
ORA-22288: file or LOB operation FILEOPEN failed
The system cannot find the file specified.
ORA-06512: at "SYS.DBMS_LOB", line 504
ORA-06512: at line 5
I have error , but ...
MY GREAT ERROR IS THAT EXECUTE COMMAND IN THE CLIENT TO HAVE ERROR , BUT RUNNING THE COMMAND IN THE SERVER , ALL IS OK..
Sorry gentleman..
And thanks all

Similar Messages

  • Quicktime error   when opening itunes why?

    I have used itunes for a while with a Nano, i recently got an iphone.  Now no matter wht i do i get a quicktime error.  It says Quicktime was not found.  I have a hp with windows 7.  I have deleted about 6 times and reinstalled.  I have cut off all protection running.  I have followed the instruction on this web site.  Please help!

    For those reading this who do not have a QuickTime settings icon visable in their Control Panel window - look to the top left of the Control Panel window and click on Classic View.
    The QuickTime icon will be visible.
    I did have K-Lite but I installed it as part of WMPod after I had all this palarva, thinking I would then be able to sync via Windows Media Player. Not so, Windows Media Player did not recognise the plug in - did not have it listed in the options windows.
    When I double clicked on the QuickTime icon in Control Panel (classic view) I got this message;
    An exception occurred while trying to run "C:\WINDOWS\system32\shell32.dll,Control_RunDLL
    "C:\WINDOWS\system32\Quicktime.cpl",Quicktime"
    I had in fact deleted what I thought were duplicate QT plugins (there were half a dozen in the Programs\Internet Eplorer folder and more in Mozilla).
    So I downloaded QuickTime (again) and selected repair once the installation window was up. Double clicked on QuickTime in Control Panel again.
    Same message again.

  • Error while using dbms_lob.fileopen

    Hi,
    I am getting the below error when executing the code given below,
    CODE:-
    DECLARE
    l_bfile BFILE;
    l_data BLOB;
    BEGIN
    DBMS_LOB.createtemporary (lob_loc => l_data,
    CACHE => TRUE,
    dur => DBMS_LOB.CALL);
    l_bfile := BFILENAME('/home/lt/write','MIA00137.inp');
    DBMS_LOB.fileopen(l_bfile, DBMS_LOB.file_readonly);
    END;
    ERROR:-
    ORA-22285: non-existent directory or file for FILEOPEN operation
    ORA-06512: at "SYS.DBMS_LOB", line 523
    ORA-06512: at line 12
    I am using the directory path instead of using the directory name, which is my requirement. How can I overcome the above error.
    Thanks
    RKR

    You should use a directory object not a file system directory.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_5007.htm#sthref6399
    Bye Alessandro

  • DBMS_LOB.FILEOPEN(dir, fname) gives non-existent dir or file error

    Hello!
    I've been trying to load an image file into the oracle database using the DBMS_LOB loadfromfile procedure. In order to do this, I first have to open the appropriate file which I do using
    temp_bfile := bfilename('temp_dir', in_filename);
    where in_filename is a string having the appropriate filename. and 'temp_dir' is a directory object created as follows:
    CREATE DIRECTORY temp_dir AS 'F:\';
    Next when I do a
    DBMS_LOB.FILEOPEN(temp_bfile, LOB_READONLY);
    I get an exception ORA-22285:non-existent directory or file.
    What am I doing wrong? Is the way I've created the directory object correct. I work on an NT machine.
    Mona

    Not sure if the UTL_FILE package is the same but if you don't set the "utl_file_dir" variable in the INIT.ORA file prior to calling the FOPEN procedure you will get a similiar error. There may be an equivalent parameter for the DBMS_LOB package.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Mona Marathe ([email protected]):
    Hello!
    I've been trying to load an image file into the oracle database using the DBMS_LOB loadfromfile procedure. In order to do this, I first have to open the appropriate file which I do using
    temp_bfile := bfilename('temp_dir', in_filename);
    where in_filename is a string having the appropriate filename. and 'temp_dir' is a directory object created as follows:
    CREATE DIRECTORY temp_dir AS 'F:\';
    Next when I do a
    DBMS_LOB.FILEOPEN(temp_bfile, LOB_READONLY);
    I get an exception ORA-22285:non-existent directory or file.
    What am I doing wrong? Is the way I've created the directory object correct. I work on an NT machine.
    Mona<HR></BLOCKQUOTE>
    null

  • Why am I getting an ORA-04052 error when I try to compile a Procedure?

    Hi,
    The following procedure I'm getting an ORA-04052 error when I try to compile the following procedure.
    CREATE OR REPLACE PROCEDURE APPS.Find_String (
    pin_referenced_name IN dba_dependencies.referenced_name%TYPE)
    IS
    cursor cur_get_dependancy
    is
    SELECT distinct owner, name, type
      FROM [email protected]        -- prod.world
    WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d'
       AND referenced_type <> 'SYNONYM'
       AND owner <> 'SYS'
    order by name;
    v_owner  varchar2(40);
    v_name   varchar2(50);
    v_type   varchar2(40);
        BEGIN
           dbms_output.put_line(upper(pin_referenced_name)||' is found in the following objects.');
           dbms_output.put_line(' ');
           dbms_output.put_line(RPAD('OWNER', 30, ' ')||RPAD('NAME', 60, ' ')||RPAD('OBJECT TYPE', 30, ' '));
           dbms_output.put_line('-------------------------------------------------------------------------------------------------------------------');
            FOR i IN cur_get_dependancy
            LOOP
                v_owner := RPAD(i.owner, 30, ' ');
                v_name  := RPAD(i.name, 45, ' ');
                v_type  := RPAD(i.type, 30, ' ');
                dbms_output.put_line(v_owner ||v_name|| v_type);
            END LOOP;
    END find_string;I'm using the link [email protected]. The procedure compiles for other database links used in the cursor including the one commented to the right of the code 'prod.world'.
    What's even stranger is that I took the SELECT statement
    SELECT distinct owner, name, type
      FROM [email protected]        -- prod.world
    WHERE lower(referenced_name) = lower(pin_referenced_name) --'ftbv_salesrep_all_1d'
       AND referenced_type <> 'SYNONYM'
       AND owner <> 'SYS'
    order by name;out of the procedure and ran it on the command line using the @pinp.world link, the SQL statement ran just fine. But when I tried to compile the above procedure with that exact same SQL statement with the exact same link I get the following string of errors.
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 1
    ORA-02068: following severe error from PINP
    ORA-03113: end-of-file on communication channelHow can the link work just fine in a regular SQL statement but then cause an error when its compiled in code that otherwise compile just fine when using any other link or even just a plain database. Does anyone have any suggestions?

    OK Justin,
    Here's the query by itself run in another database using the @pinp.world link and querying the dba_dependencies table in the pinp.world database. As you can see the query using this link works just fine returning the requested rows. I can't figure out why the compiler is having an issue with essentially this same query when I try to compile it in a cursor in TOAD. Also this is the database (dev1.world) that I'm trying to compile this Procedure in.
    By the way I'm in an Oracle 9.2.0.6 database and TOAD v9.2.
    SQL> conn apps/apps1@dev1
    Connected.
    SQL> SELECT distinct owner, name, type
      2    FROM [email protected]
      3   WHERE lower(referenced_name) = lower('ALL_USERS')
      4     AND referenced_type <> 'SYNONYM'
      5     AND owner <> 'SYS'
      6   order by name;
    OWNER                          NAME                           TYPE
    PUBLIC                         ALL_USERS                      SYNONYM
    XDB                            DBMS_XDBUTIL_INT               PACKAGE BODY
    XDB                            DBMS_XDBZ0                     PACKAGE BODY
    SYSTEM                         MVIEW_EVALUATIONS              VIEW
    SYSTEM                         MVIEW_EXCEPTIONS               VIEW
    SYSTEM                         MVIEW_FILTER                   VIEW
    SYSTEM                         MVIEW_LOG                      VIEW
    SYSTEM                         MVIEW_RECOMMENDATIONS          VIEW
    SYSTEM                         MVIEW_WORKLOAD                 VIEW
    ORASSO                         WWCTX_API                      PACKAGE BODY
    PORTAL                         WWCTX_API                      PACKAGE BODY
    ORASSO                         WWEXP_UTL                      PACKAGE BODY
    PORTAL                         WWEXP_UTL                      PACKAGE BODY
    PORTAL                         WWPOB_API_PAGE                 PACKAGE BODY
    PORTAL                         WWPOF                          PACKAGE BODY
    ORASSO                         WWPRO_PROVIDER_VALIDATION      PACKAGE BODY
    PORTAL                         WWPRO_PROVIDER_VALIDATION      PACKAGE BODY
    PORTAL                         WWSBR_EDIT_ATTRIBUTE           PACKAGE BODY
    PORTAL                         WWSBR_FOLDER_PORTLET           PACKAGE BODY
    PORTAL                         WWSBR_USER_PAGES_PORTLET       PACKAGE BODY
    ORASSO                         WWUTL_API_PARSE                PACKAGE BODY
    OWNER                          NAME                           TYPE
    PORTAL                         WWUTL_API_PARSE                PACKAGE BODY
    PORTAL                         WWUTL_EXPORT_IMPORT_LOV        PACKAGE BODY
    ORASSO                         WWUTL_LOV                      PACKAGE BODY
    PORTAL                         WWUTL_LOV                      PACKAGE BODY
    PORTAL                         WWV_CONTEXT                    PACKAGE BODY
    PORTAL                         WWV_CONTEXT_UTIL               PACKAGE BODY
    PORTAL                         WWV_DDL                        PACKAGE BODY
    PORTAL                         WWV_GENERATE_UTL               PACKAGE BODY
    PORTAL                         WWV_GLOBAL                     PACKAGE
    PORTAL                         WWV_MONITOR_DATABASE           PACKAGE BODY
    PORTAL                         WWV_PARSE_AS_SPECIFIC_USER     PACKAGE BODY
    PORTAL                         WWV_PARSE_AS_USER              PACKAGE BODY
    PORTAL                         WWV_SYS_DML                    PACKAGE BODY
    PORTAL                         WWV_SYS_RENDER_HIERARCHY       PACKAGE BODY
    PORTAL                         WWV_THINGSAVE                  PACKAGE BODY
    PORTAL                         WWV_UTIL                       PACKAGE BODY
    PORTAL                         WWV_UTLVALID                   PACKAGE BODY
    38 rows selected.
    SQL>Let me know what you think.
    Thanks again.

  • Why am I getting an error when I sync my iPhone 5S?

    The error message "The iPhone "iPhone name" cannot be synced.  An unknown error occurred (-54)." came up when I have been syncing my new iPhone 5S.
    This didn't start happening until last night, when I restored my iPhone from an old back-up I had from my iPhone 4 that I recently transisioned away from.  Was this a mistake?  Do I have to restore it to factory settings to get this error to go away?  What do I need to do?
    Also, something to note is that when I looked this error message up, I came up with some solutions for an iPod getting this same error message, but nothing with an iPhone.  The solutions had something to do with a locked file blocking the process.  How do I know if a file is blocked?
    I have an mp3 on my iPhone that won't go away with deselecting "Sync Music,"  But every other music file was able to come off with clicking that button.  Is that the problem?  The only way I can think of getting this file off is to do a factory reset to my iPhone.  I'd prefer not to do that because I lost some phone numbers in the process of restoring it this last time.  Apparently my back-up was from 2013, when I could've sworn I backed it up right before I got my new iPhone.
    I'd love help with this, please.  Thank you so much!

    I am copying this for you from another thread:
    == Error -54 ==
    From an OS9 reference, error -54 is a software lock on a file or a permissions error. (Some of the old codes still apply to OSX although there is no formal list of OSX error codes.)
    First, try simply restarting your computer.
    iTunes Library cannot be saved (Error -54) -https://discussions.apple.com/thread/1912814
    Unknown error (-54) while syncing ipod -https://discussions.apple.com/thread/1082953 - problem was locked files
    Why does iTunes keep showing a -54 error when I sync my iPad? -https://discussions.apple.com/thread/3727114
    Error -54 possibly related to Touch Copy -https://discussions.apple.com/thread/3727114 - cleared by deleting preferences on iPad.
    I hope this helps.

  • How Do I Resolve FileOpen Client Errors When Trying to Open a PDF in Acrobat X or Reader XI?

    I am trying to open some pdf files received from a client that when I try to open them, I receive an error stating, "The FileOpen client has encountered an error.  Please try to re-start  Adobe Acrobat / Reader."  A co-worker was able to open the same files with his version of Acrobat X Pro.  I am not having success whether I use my version of Acrobat X Standard or Acrobat Reader XI; I get the same error with both application.
    Any ideas how to resolve this.
    Thank you.
    Steve

    FileOpen is a security add-on, which is needed to open some files. Not a part of Adobe software. Maybe you need to upgrade or report it: http://www.fileopen.com/

  • I get missing plug-in error when opening my online bill which is in PDF format. I am using a 2010 Macbook with the latest version of Safari and Adobe suite installed in my computer. Why do I get this error? What should I do?

    I get missing plug-in error when opening my online bill which is in PDF format. I am using a 2010 Macbook with the latest version of Safari and Adobe suite installed in my computer. Why do I get this error? What should I do?

    In relation to my previous inquiry regarding inability to view a pdf file using Safari...
    Is it possible that I can view other online bills from other website but not this particular bill from one specific website?
    Sorry if I missed any important point in this article -->Apple Safari 5.1 and Adobe Reader/Acrobat Advisory
    Thanks again!

  • HT1692 iPod keeps giving the error "unknown error" when trying to sign in.Why?

    iPod keeps giving "unknown error" when signing in.  Why?

    Signing into what?
    Is "unknown error" the complete error number?

  • Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.

    Why do I get this error when trying to use my bluetooth headset as a listening device? There was an error connecting to your audio device. Make sure it is turned on and in range. The audio portion of the program you were using may have to be restarted.

    I may have already resolved this issue buy removing the device from my computer and re-pairing it. It is currently working just fine.

  • Why Do I get an Error When I Query?

    Hi
    When I search for messages on an empty folder
    ie: GWFolderObj.messages.Find(p_strQuery)
    I Get this Error, but ONLY when the folder is empty...
    A first chance exception of type
    'System.Runtime.InteropServices.COMException' occurred in
    Microsoft.VisualBasic.dll
    Any ideas as to why??
    Thanks,
    A.

    That's the truth. I get the same error when I log in
    (and it's on my Mac computers!!).
    Thanks for sharing! I was beginning to feel paranoid and think it was a Windows XP thing...

  • TS3833 I am receiving this error when syncing my ipod: iTunes could not copy "song name" to the iPod "name" because an unknown error occurred (-50).  I am using iTunes version 10.6.3.25. Why?

    I am receiving this error when syncing my ipod: iTunes could not copy "song name" to the iPod "name" because an unknown error occurred (-50).  I am using iTunes version 10.6.3.25. Why?

    Right click the filename that won't download and selsct 'Get Info'. Look at the file path, does it have a //?// in it? That is a problem with Amazon downloads that prevent iTunes from finding the file. Use 'Add Folder' to add the album to your library and try syncing it again

  • More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo library.

    I am able to pick 4 videos from the Photo library in my iPhoneAPP but when i try to pick 5th one it throws an error:
    "More than maximum 5 filtered album lists trying to register. This will fail,Why i am getting this error when i pick video from Photo library."

    Hello Tate r Bulic
    I don't have any idea how to remove this error,can i pick more than 5 videos from the photo library...
    If it's then please help me and gimme idea..Thanks

  • "Unable to connect to server"  I have wifi connection but I'm getting this error when I try to purchase an app. Why?

    "Unable to connect to server"  I have wifi connection but I'm getting this error when I try to purchase an app. Why? If anyone knows can you please help me thank you in advance. :-(

    Can you load a webpage in Safari with that wifi connection? If so then it's a problem with the iTunes Store app connection. If not then your wifi isn't fully functional and you need to troubleshoot that first.

  • When installing Adobe Creativ Cloud, gives error code: 205! Why? Have downloaded numerous times. Dmg!

    When installing Adobe Creativ Cloud, gives error code: 205! Why? Have downloaded numerous times. Dmg!

    Colegio Oswald please see Error downloading Creative Cloud applications - http://helpx.adobe.com/creative-cloud/kb/error-downloading-cc-apps.html for information on how to resolve Error 205.

Maybe you are looking for

  • How can I delete credit card info in iPhone?

    Big mistake: I added a credit card to my settings in iPhone (after chosing "no credit card" for more than 6 months) but now I can't remove this credit card info anymore. The problem is I can't find the sentence that was "No Credit Card" to choose it

  • Cross Domain Connection Issues with Test Controller

    I am having trouble resolving a problem I have connecting a build agent with the test controller in a cross domain environment.  I have purged out the actual machine names, domain names, and IP addresses just in case that is a security concern.  Situ

  • Show Dynpro from external application

    I was wondering which possibilities exist to show a Dynpro page of an SAP application within another 3rd party application (written in Smalltalk). As far as I know it is not possible to call an RFC which returns a Dynpro page, so which alternatives e

  • Whats better? iMac with HDD or MAcbook Pro with SSD?

    Just like the title says, I am split with what to buy. I am thinking of the new 27" iMac (1TB HDD) in which I would look to upgrade ram to 16GB. This iMac is the £1,600 one, not the £1,750 one. OR The older 13" MacBook Pro (without Retina display) as

  • Change the InfoObject in production

    Hi All, I have an infoobject of length 5 type Char. I want to increase the length of the same. Now the problem is I have ODS in which this infoobject is used, already in production. Can i Change length of this infoobject?? or do I have to delete the