File open error from oracle directory

Hi
I am testing 11g new feature for oracle secure file on my winxp system. Using the same example from Arup Nanda's writeup. it is giving me the following error, what could be the reason, need your experts assistance.
SQL> conn checkup/checkup
Connected.
SQL> create directory SECFILE as 'c:\oracle';
Directory created.
Elapsed: 00:00:00.04
SQL> grant all on directory secfile to public;
Grant succeeded.
Elapsed: 00:00:00.00
SQL> declare
  2  l_size number;
  3  l_file_ptr bfile;
  4  l_blob blob;
  5  begin
  6  l_file_ptr := bfilename('SECFILE','contract.pdf');
  7  dbms_lob.fileopen(l_file_ptr);
  8  l_size := dbms_lob.getlength(l_file_ptr);
  9  insert into contracts_sec
10  (
11  contract_id,
12  contract_name,
13  file_size,
14  orig_file
15  )
16  values
17  (
18  1,
19  'Contract :'||1,
20  null,
21  empty_blob()
22  )
23  returning orig_file into l_blob;
24  dbms_lob.loadfromfile(l_blob, l_file_ptr, l_size);
25  commit;
26  dbms_lob.close(l_file_ptr);
27  end;
28  /
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 635
ORA-06512: at line 7
Elapsed: 00:00:00.01
SQL>The OS directory SECFILE is already available under 'c:\oracle' and the .pdf file is available under 'c:oracle\secfile'
Rgds
Suman

Hi
The OS directory SECFILE is already available under 'c:\oracle' and the .pdf file is available under 'c:oracle\secfile'Why its under 'c:oracle\secfile'? It should be under 'c:oracle\' ...SECFILE is the name of the directory in Oracle not on OS. So your pdf should be at 'c:oracle\'.
Regards

Similar Messages

  • File open error from Application Server

    Hello friends,
    I am able to open a file from the foreground mode.
    However when i run the program in background am unable to open it.
        OPEN DATASET fp_asfile FOR INPUT IN TEXT MODE ENCODING DEFAULT.
    I have alos tried to change the user with the back groung user ID. but it again failed.
    Can any one tell me why.
    Ster

    Hi,
    Ok..go to SM51 in your system...and then check how many application servers are there..
    if there are more than one..do the following..
    In the background mode...the program might be running in a different application server....than the one which you used in the your foreground session..
    check this..
    1)
    In your foreground session...go to system -> status...get the application server..
    2)
    when you define the job in SM36...there is a field in the initial screen.."Exec. Target"...which says in which application server you want to run this job...Give the application server that you got from step 1...Then release the job...now your program should work fine..
    Thanks,
    Naren

  • Reading file from oracle directory at client side

    Hi,
    I have a SWING app. which connects to an Oracle db.
    My goal is to read files from oracle directory with java through JDBC. I export some dumps with datapump and they need to be transferred to a client machine. There is no access to oracle directory at network filesystem level.
    Please advice!
    TIA, Sandor

    An Oracle Directory has an underlying OS directory associated with it, Oracle just overlays it's control structure onto an existing folder in the OS. You can manipulate the files with stored procedures in Oracle or at the OS level from outside of Oracle.
    If you manipulate the files from the OS level, outside of Oracle, you may need a refresh of the Oracle Directory structure.

  • File open error at ftp even the file is not open.....

    Hi,
    i get the error File open with the fm GUI_UPLOAD while uploading the XML file from FTP server.
    What is interesting is that i did not open the file, furthermore i closed all the windows else that sap window,
    but still i get the file open error.
    We create the xml file when created a new delivery. And this xml file is sent to a bukrs's ftp and they also sent the same xml after some validations done.
    When it arrives to our ftp server i make it post goods issue automatically but from yesterday i got the file open error, it was working fine just before today.
    What could be the problem?
    Hint: Yesterday and previous day files still work fine but files created today are faulty.
    Thanks.

    Thanks for replies.
    My code is that:
    call function 'HTTP_SCRAMBLE'
        EXPORTING
          source      = gv_password
          sourcelen   = slen
          key         = gv_key
        IMPORTING
          destination = gv_password.
      describe field gv_password length gv_pwd_len in character mode.
      call function 'FTP_CONNECT'
        exporting
          user            = 'HHH\GrupMMM'
          password        = gv_password
          host            = '10.10.10.10' "assume that is the host
          rfc_destination = 'SAPFTPA'
        importing
          handle          = gv_handle
        exceptions
          not_connected   = 1
          others          = 2.
      if sy-subrc eq 0.
        "concatenate 'put' ld_full_path '[' ld_full_path ']'
        *gv_com = 'lcd C:\MMM\RETURN_FILES'.*
        clear mtab_data.
        free mtab_data.
        call function 'FTP_COMMAND'
          exporting
            handle        = gv_handle
            command       = gv_com
          tables
            data          = mtab_data
          exceptions
            tcpip_error   = 1
            command_error = 2
            data_error    = 3
            others        = 4.
        if sy-subrc eq 0.
        endif.
    When i get the list of the return files i get data of each file via gui_upload.
    CALL FUNCTION 'GUI_UPLOAD'
            EXPORTING
              filename   = filename
              filetype   = 'BIN'                             
            IMPORTING
              filelength = totalsize
            TABLES
              data_tab   = xml_table[]
            EXCEPTIONS
              FILE_READ_ERROR = 1
              FILE_OPEN_ERROR = 2
              NO_BATCH = 3
              GUI_REFUSE_FILETRANSFER = 4
              INVALID_TYPE = 5
              NO_AUTHORITY = 6
              UNKNOWN_ERROR = 7
              BAD_DATA_FORMAT = 8
              HEADER_NOT_ALLOWED = 9
              SEPARATOR_NOT_ALLOWED = 10
              HEADER_TOO_LONG = 11
              UNKNOWN_DP_ERROR = 12
              ACCESS_DENIED = 13
              DP_OUT_OF_MEMORY = 14
              DISK_FULL = 15
              DP_TIMEOUT = 16.
    However i get the open error for all files created today.
    By the way, how can i use open dataset instead of ftp commands? How can i see the files at apllication server?
    i get the files via IP of the FTP but how can i get files from application server?
    Thanks.

  • Upload a CSV file directly to an Oracle directory?

    We have some existing packaged code that reads CSV files from an Oracle directory into the database via external tables. Currently, the files are placed in the directory via FTP, but we'd like to upload them via APEX if possible.
    As far as I can tell, APEX file upload will store a file as a BLOB in an APEX table. Is there any way to re-direct the file upload to put file straight into the Oracle directory instead? The files will be copied from a Windows client to an Oracle server on Unix.
    We're still on APEX v.3.2 unfortunately.
    Edited by: chriswebster on Mar 31, 2011 10:05 AM

    >
    Similarly, we don't really want to have to extract a BLOB from the APEX file-upload table and re-create the CSV file either, as this seems like a lot of work to do a simple thing.
    >
    Not really, just a page process...
    PROCEDURE blob2file (p_blob         BLOB,
                         p_directory    VARCHAR2 := 'MY_DIR',
                         p_filename     VARCHAR2 := 'my.csv')
    IS
       t_fh    UTL_FILE.file_type;
       t_len   PLS_INTEGER := 32767;
    BEGIN
       t_fh := UTL_FILE.fopen (p_directory, p_filename, 'wb');
       FOR i IN 0 .. TRUNC ( (DBMS_LOB.getlength (p_blob) - 1) / t_len)
       LOOP
          UTL_FILE.put_raw (t_fh, DBMS_LOB.SUBSTR (p_blob, t_len, i * t_len + 1));
       END LOOP;
       UTL_FILE.fclose (t_fh);
    END;?
    Cheers
    Ben

  • DVD-MOV mpegstream clip error: "File open error: unsupported file type"

    I do it all the time this is the only time i've gotten this error, i use mpeg stream clip. I have a dvd I got from a DVR recorder, I open the dvd which shows 2 VOB files in the TS folder. the MENU gives "Warning: the stream may have timecode breaks." I "Fix Now" and it works fine. But i dont want the menu. the other VOB file in the TS folder, which should be the "movie I want" gives this error when opened,
    "File open error: unsupported file type"
    when I open anyway, I get an audio bar which has no sound, and no video.
    ANY IDEAS? I've been on this for hours PLEASE

    Hi,
    Do you have the [MPEG-2 component|http://www.apple.com/quicktime/mpeg2> installed on your computer? If not, you will need it to be able to convert VOB files.

  • File opening error

    hello friends,
    i am doing data migration with lsmw withe directinput method so i did everything fine till the end i defined the logicalfiles also correctly and defined everthing perfeclty
    but i am getting below error
    File open error
    belrd110\INPUT\CT.TXT Permission  denied
    can anyone let me know where this is going wrong
    i am having the authorisation at the server level also and in the read and convert steps records and data coming perfectly but when i excute it at the end it is giving such error
    ur help will be appreciated
    Naveen

    Hi Naveen,
    Did you write your statment like this?
    OPEN DATASET P_DOWN FOR OUTPUT IN TEXT MODE.
    If it is not working, try to create a new file and access the same.
    Thanks,
    Sreekanth

  • Ora error from Oracle

    Hi , its really amazing to see this error from Oracle site .
    ORA-04063: package body "WEB_PROD.SHOW_DESC" has errors ORA-06508: PL/SQL: could not find program unit being called: "WEB_PROD.SHOW_DESC" ORA-06512: at "WEB_PROD.OUGBS_WEBREG_UTILS", line 3 ORA-06512: at "WEB_PROD.OU_BRIDGE_PAGESCSS", line 309 ORA-04063: package body "WEB_PROD.SHOW_DESC" has errors ORA-06508: PL/SQL: could not find program unit being called: "WEB_PROD.SHOW_DESC" Ref:
    http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=84&group_id=9
    Regards,
    Mohammed Mehraj

    It does happen some times. Not an unusual thing. Even at times , on Asktom too, errors come, very rare though!
    Aman....

  • Podcasts - File Open Error N97 mini

    I have successfully downloaded podcasts with my N97 mini, but when I go to open/play the podcast I keep getting a "File Open Error" ???

    Podcast Library Refresh - General Error
    1. Connect your 5800 to you PC in Mass Storage Mode OR connect the microSD to your PC via a Memory card reader.
    2. Open Windows Explorer and browse to your memory card drive ..
    - To remove and start fresh start go to E:\Private\10281e17 There you should see 4 files 2 are Mp3 files other are Podcast files. Delete the whole 10281e17 folder, its not harm since our device will automatically create a new structure of the folder.
    TQ
    I'm an Xploit - Please feel free to post your issues, feedbacks in this discussion forum and I'll do my level best to help, otherwise my knowledged friends whom are around willing to help you. Thank you !

  • Open/save specific file from Oracle Directory

    Hi.
    How can I build a button that, when clicked, opens a open/save dialog directly from a file existing in a specific Oracle Directory?
    I don't want the user to choose file.
    APEX 4.0.1.
    Can you help me? I know you hear this all the time, but it's kind of urgent...
    Thanks

    Close your question here and open here
    Oracle Discussion Forums » Oracle Database » Application Express

  • Open Excel File from oracle directory on a local machine

    Hi,
    I have an application where I generate a excel using data in a table and write excel file in oracle directory.Now my requirement is to open that file from local machine .How can i achieve it.
    I am using Apex 4.2,Oracle 10g .
    Thanks
    Rajan.C
    Edited by: Rajanjai on May 31, 2013 5:34 PM

    Close your question here and open here
    Oracle Discussion Forums » Oracle Database » Application Express

  • PDF File opening error

    Hi,
    I have an BSP application in which I am fetching the pdf file data from an oracle table to a variable of data type xstring.
    Now I have to display this xstring again in pdf format in this BSP. The pdf file is generated but while opening it is giving error "There is an error in opening this document.The file is damaged and could not be repaired".
    What could be the reason.
    My On initialisation code is as:
    data: outputx type xstring.
    (The pdf file data is fetched from oracle table to outputx.)
    CREATE OBJECT cached_response TYPE CL_HTTP_RESPONSE EXPORTING add_c_msg
    = 1.
        cached_response->set_header_field( name  =
              if_http_header_fields=>content_type
                                      value = 'application/pdf' ).
        cached_response->set_status( code = 200 reason = 'OK' ).
        cached_response->server_cache_expire_rel( expires_rel = 180 ).
        l_pdf_len = xstrlen( outputx ).
        response->set_data( data = outputx
                                 length = l_pdf_len ).
         response->set_header_field(
                            name  = 'content-disposition'
                            value = 'attachment; filename=attach_pdf.pdf' ).
    CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_32 = guid.
        CONCATENATE runtime->application_url '/' guid '.pdf' INTO
    display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
      navigation->response_complete( ).

    Still the pdf file is not opening.
    My On Initilisation code is as below:
    EXEC SQL.
      OPEN CUR FOR SELECT ORDER_NO,ORDER_DESC,DOC_TYPE
                 FROM SAPIBM.T_ORDER
                 where ORDER_NO = :orderno
    ENDEXEC.
    refresh : t_order.
    do.
      clear : wk_order.
      EXEC SQL.
        FETCH NEXT CUR INTO
                         :wk_order-ORDER_NO,
                         :wk_order-ORDER_DESC,
                         :WK_ORDER-DOC_TYPE
      ENDEXEC.
      if sy-subrc = 0.
        append wk_order   to t_order.
      else.
        exit.
      endif.
    enddo.
    EXEC SQL.
      CLOSE CUR
    ENDEXEC.
    if not t_order[] is initial.
      read table t_order into wk_order index 1.
      w_doctype = wk_order-doc_type.
      case w_doctype.
        when 'P'.
    outputx = wk_order-order_desc.
    CREATE OBJECT cached_response TYPE CL_HTTP_RESPONSE EXPORTING add_c_msg
    = 1.
    IF XSTRLEN( OUTPUTX ) > 0.
    response->delete_header_field(
    name = if_http_header_fields=>cache_control ).
    response->delete_header_field(
    name = if_http_header_fields=>expires ).
    response->delete_header_field(
    name = if_http_header_fields=>pragma ).
    response->set_header_field(
    name = if_http_header_fields=>content_type
    value = 'application/pdf' ).
       response->set_status( code = 200 reason = 'OK' ).
       response->server_cache_expire_rel( expires_rel = 180 ).
        response->set_header_field(
                          name  = 'content-disposition'
                           value = 'attachment; filename=attach_pdf.pdf' )
        response->set_header_field(
                       name  = 'cache-control'
                       value = 'max-age=0' ).
        l_pdf_len = xstrlen( wk_order-order_desc ).
        response->set_data( data = wk_order-order_desc
                                 length = l_pdf_len ).
        CALL FUNCTION 'GUID_CREATE'
          IMPORTING
            ev_guid_32 = guid.
        CONCATENATE runtime->application_url '/' guid '.pdf' INTO
    display_url.
        cl_http_server=>server_cache_upload( url      = display_url
                                             response = cached_response ).
      navigation->response_complete( ).
    endif.
      endcase.
    endif.

  • File open error under document tab in tcode BP

    Hi expert
    In a report, I am reading path ,file type ,name from a text file from the presentation server. The file gives all the information related to the file uploaded on application server. File can be of any type like cfg ,doc txt, bmp .
    I have to read and link the file under document tab in BP code I am able to link but not able to open the file from the link another text format is giving dump error saying format not supporting.
    I am reading and linking in binary mode because i do not have another option as we can read the file in text and binary mode only.
    Please suggest any solution for this .
    Point will be rewarded for this.
    Prem.
    Edited by: Prem Kumar on Jan 12, 2009 2:39 PM
    Edited by: Prem Kumar on Jan 12, 2009 2:40 PM

    HI,
      Just try it simply as below.
    the possible reasons could be.
    1) file with that name is not existing in that path
    2) path name is wrong (u gave it as c:/ give it as c:\)
    3) file may be open..
    how ever just try with giving the file path and the output table and see how it works
    *-- Read the File From PC
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          FILENAME = V_FILENAME
        TABLES
          DATA_TAB = I_FILE
        EXCEPTIONS
          OTHERS   = 17.
    Thanks
    mahesh

  • Please help: Nokia file open error

    Hi!
    I wrote an application. It's opening text files from resource directory.
    I use getClassAsResource or something like that.....
    The app. running excellent on every phone, only on Nokia doesn't works.
    Please help!!
    What's the different???
    Thank you!
    Peter

    I haven't encountered this tuzz. Can you tell me what's the operating system of your computer? My N86 8MP says it's Phone Memory. Even if I have builtin 8GB, but it's labeled as mass memory aside from my micro SD card.
    What I can suggest is don't select PC suite instead choose the mass memory option when you connecting your phone to your computer using the Nokia PC Suite. Let me know if you encounter the same problem for the C: drive.
    Will "Phyrhone" Laurent
    " A simple task, doesn't take a genius to figure it out. Use your brain."

  • Invalid charater in Excel when input .txt file that run from Oracle discove

    Hi All,
    I ran a report from oracle discover and saved as txt file, then open it with excel, the chinese will be shown as invalid character.
    The problem is that Chinese characters can't be displayed well if I download the report (in csv ) from discover desktop version on my computer and open it with excel.
    Pls. help to resolve the problem.
    Thanks.

    Hello
    I'm afraid that I don't have much experience of working with Chinese characters and can see nothing in my notes that might help. Give it a couple of days for others to reply and if you don't get anywhere I recommend raising this as a service request with Oracle Support.
    Best wishes
    Michael

Maybe you are looking for

  • Cannot connect to iTunes message appears when trying to access the updates section of the AppStore? How can I fix?

    Cannot connect to iTunes message appears when trying to access the updates section of the AppStore? How can I fix?

  • Hello, do you know what this crash is about? F382462422

    Just in the last 3 days, my Firefox 5 has been crashing frequently, apparently at random. Please help! Thanks!

  • ParseFloat() oddity

    Hello, This is one of the most bizarre things I've seen in actionscript: comparing 2 numbers and it comes out wrong. In the code below, for some odd reason "312346.46", parsed to a float, then multiplied by 100, and compared to 31234646 is wrong. See

  • Sorting with messageChoice

    I'm using JHS 10.1.2.2 build 32 with JDeveloper 10.1.2.1 to generate UIX pages. I have a messageChoice in a table which is a sortable column. Instead of sorting the value of the column, I would instead like to sort by the text shown in the column. In

  • ESM ERP 603 - XI Content

    Hello There I have just completed install of SAP Enhancement Pack 3 but now I have a request to install ESM ERP 603, I have noticed that this is not part of the Enhancement Pack and on SAP Service Market Place I am only able to find support packages