UTL_FOPEN is not working in 10g forms.

Hi...
I am using following code to open a file in write mode in forms 10g.
mfile_id := SYS.UTL_FILE.FOPEN('PERFDATA','text.txt','w');
( PERFDTA is a directory object.)
When i run form this gives the error, ORA-04067.
But same code works in pl/sql.
Can any one help me regarding this.
Thanks in advance,
Kumar

uhm...why using utl_file?!? Is there any special circumstance why u have to use this? This package is for use in stored procedures only...You don't even use dbms_sql instead of exec_sql in forms either, huh?
* Files which are on the database server and should be read by pl/sql packages => utl_file
* Files which are on the Middle Tier and should be read by Forms => text_io (syntax is similar to utl_file)
* Files which are on the client => webutil...
if you want to read files which are on the database server in forms, you can just put the logical part into a pl/sql package on the database and use this...???
regards
Christian

Similar Messages

  • Key functions are not working in oracle11g forms

    I have migrated a oracle 10g form to oracle 11g form
    1.Key function such as down arrow,up-arrow is not working in oracle11g forms though key-down etc trigger have been written.
    2.Tree node function,i mean when i try to call form from a child node ,it required 4-5 click.
    Can anyone help me for these issue

    Next_form function is not working.i have copied the .res file from 10g.So the issue like this,when i master forms calls(by using open_form in when-window-activate trigger)to a child form and the child form having (when-window-activate trigger)next_form to return the cursor in the master form,it got hang in 11g.This is problem.i have checked by creating the same.Could you help me for the same.this code is running fine in 10g.

  • Update process does not work on Tabular Form

    Hello,
    I have 2 tabular forms on one page, which are using manual update processes.
    First form is created using wizard, and therefore works perfectly.
    The update process is as follows:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f01.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*03*(i) || '|' || APEX_APPLICATION.G_f*04*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Second form is created manually, using the following code:
    SELECT apex_item.checkbox (30,
                               '#ROWNUM#',
                               'onclick="highlight_row(this,' || '#ROWNUM#'|| ')"',
                               NULL,
                               'f30_' || '#ROWNUM#'
                              ) delete_checkbox,
           CATALOG_ID,
              apex_item.hidden (31, CATALOG_ID)
           || apex_item.text (32,
                              LANG,
                              80,
                              100,
                              'style="width:100px"',
                              'f32_' || '#ROWNUM#'
           || apex_item.hidden (33, wwv_flow_item.md5 (LANG, DESCRIPTION)) LANG,
           apex_item.text (34,
                           DESCRIPTION,
                           80,
                           100,
                           'style="width:255px"',
                           'f34_' || '#ROWNUM#'
                          ) DESCRIPTION
      FROM V_CATALOGS
    UNION ALL
    SELECT     apex_item.checkbox
                              (30,
                               TO_NUMBER(9900 + LEVEL),
                               'onclick="highlight_row(this,' || '#ROWNUM#' || ')"',
                               NULL,
                               'f30_' || TO_NUMBER (9900 + LEVEL)
                              ) delete_checkbox,
               NULL,
                  apex_item.hidden (31, NULL)
               || apex_item.text (32,
                                  NULL,
                                  80,
                                  100,
                                  'style="width:100px"',
                                  'f32_' || TO_NUMBER (9900 + LEVEL)
               || apex_item.hidden (33, NULL) LANG,
               apex_item.text
                                               (34,
                                                NULL,
                                                80,
                                                100,
                                                'style="width:255px" '  ,
                                                'f34_'
                                                || TO_NUMBER (9900 + LEVEL)
                                               ) DESCRIPTION
          FROM DUAL
         WHERE :P18_TEMP = 'ADD_ROWS1'
    CONNECT BY LEVEL <= 1However, the update process does not work on this form.
    I created it using the first one as an example, but with the id's of the second form:
    DECLARE
      lc_string VARCHAR2(4000);
    BEGIN
      FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
      LOOP
         lc_string := lc_string|| '[' ||APEX_APPLICATION.G_f*32*(i) || '|' || APEX_APPLICATION.G_f*34*(i) || ']';
      END LOOP;
      --Database processing using the concatenated string here
    END;Also, both forms are opening in a modal pop-up dialog window.
    I use a Dialog Region plug-in for that.
    Please advise, what is causing a problem with update?

    Sloger,
    if this is your tabular form
    SELECT apex_item.checkbox (30,
    ...and this is your update statement
    FOR i IN 1..APEX_APPLICATION.G_f*30*.COUNT
    ...Then you will only ever update records that have been checked. Unchecked checkboxes are not passed back in the global array. You need to have a hidden column with the ID's for the record and loop through that when you are updating/inserting. That is why the built in tabular form has a MRU and a MRD. the MRU loops through the hidden ID column. The MRD loops through the checkbox.
    Thanks,
    Tyson Jouglet

  • Form is not working of multiple form check boxs, source posted. HELP.

    Form is not working of multiple form check boxs, source posted. HELP.
    I'm trying to have golive form be able to check one, two or all of the options in Graphics field.
    As is it will only post results from the last checked box.
    Here's the page
    http://www.perfection-press.com/Pages/ContactForm.html
    Here's where source in golive has scanning,design,filesupplied.
    [code removed to fix forum topic display]

    Since the checkboxes all have the same name, the values are over-writing each other when being passed to the PHP script. The best way to fix that is to add a pair of empty square [] brackets after the checkbox names, so make the names "graphics[]" instead of "graphics". That tells PHP that the values are being passed as a list (an array) instead of a single value. As long as your processing script knows what to do from there (and it does), should solve the problem.
    By the way, I noticed that two of the checkboxes were named "graphics" and the other was "graphic" (singular). You'll want to fix that too so they're all the same.

  • Execute Query not working on custom forms

    Hi
    After upgrading from 11.5.10.2 and Oracle 9.2.0.5 to ATG6, AD6, oracle 10.2.0.4, Forms 6.0 (Form Compiler) Version 6.0.8.28.0 . The execute query (F11 & CTRL F11) is not working on custom forms. But after tabbing from one column to another column then press CTRL F11 is working.
    Please any one help me on this issue.
    Thanks
    sva

    Hi
    I found this error in the trace file. Please help me what is the problem, the data is there in the table.
    Out Argument 0 - Type: String Value: ORA-01403: no data found
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: parameter.G_query_find
    Out Argument 0 - Type: String Value: NULL
    Executing USER_EXIT Built-in:
    In Argument 0 - Type: String Value: FND MESSAGE_CLEAR
    MCXQPBULKINVOICEENTER, -1, Built-In, Entry, -1196178744, USER_EXIT
    TSE FSERVER_START -1 1407 1279530838565801000
    TSE FSERVER_END -1 0 1279530838579778000MCXQPBULKINVOICEENTER, -1, Built-In, Exit, -1196091744, USER_EXIT
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Entering app_debug.clear
    In Argument 1 - Type: String Value: global.frd_debug
    Executing FIND_GROUP Built-in:
    In Argument 0 - Type: String Value: APP_DEBUG
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_debug.free.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing MESSAGE Built-in:
    In Argument 0 - Type: String Value: FRM-41003: This function cannot be performed here.
    In Argument 1 - Type: Number Value: 121
    Unhandled Exception ORA-100501
    State Delta:
    MCXQPBULKINVOICEENTER, -2, Trigger, Exit, -1190876744, ON-ERROR
    ##### CTIME STARTS HERE
    # 8 - MCXQPBULKINVOICEENTER:BLOCKNAME.RADIO_BUTTON81.1279530839956685000
    KEY Execute_query
    Error Message: FRM-41003: This function cannot be performed here.
    N-ERROR Trigger Fired:
    Form: MCXQPBULKINVOICEENTER
    State Delta:
    MCXQPBULKINVOICEENTER, -2, Trigger, Entry, 181183256, ON-ERROR
    MCXQPBULKINVOICEENTER, -1, Prog Unit, Entry, 181304256, /MCXQPBULKINVOICEENTER-3/P58_07_DEC_200909_04_40
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Entering app_standard.event. Event is ON-ERROR.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing ERROR_TYPE Built-in:
    Out Argument 0 - Type: String Value: FRM
    Executing ERROR_CODE Built-in:
    Out Argument 0 - Type: Number Value: 41003
    Executing ERROR_TEXT Built-in:
    Out Argument 0 - Type: String Value: This function cannot be performed here
    Thanks
    sva

  • F11 (query mode) not working in payment form in AP

    Dear All,
    F11 function not working in Payment form in R12.
    I made a payment and quit the form. Whem am trying to query the payment invoice to void it. F11 functionality is not working.
    Could anyone tell me the solution?
    Regards
    Deeps.

    Hi Ivruksha,
    Thanks for your response.
    This issue is due to personalization done in payment form to default the payment date. First we defaulted the payment date once we open the form and faced issue in Quering a payment.
    Now we did a change in personalization to default after selecting the Trading Partner and rectified the issue.
    Regards,
    Deeps.

  • Oracle Forms 10G not working as Oracle Forms 6i

    Hi everyone,
    I have a form which gets called from another form through a list of value. The called form(second form) has a group of tabbed canvases which get displayed depending on the parameters passed from the first form.
    The Form is working prefectly fine in Forms 6i but when I converted the same form in to forms 10G it does not seem to work the same way. The tabbed canvasses are not getting displayed. I am manually having to press the execute query to get data displayed in the tabbed canvasses. I checked the parameters that are being passed and they are the same as that in Forms 6i.
    Please let me know where my 10G Form is going wrong. Appreciate your help, please send me an email on [email protected]
    Thanks

    :System.message_level has nothing to do with how you check the flow of execution, or whether you use the Message statement. :System.Message_Level is a Forms variable that can be set to a numeric value. If you set it > 0, it hides error messages, which you should NOT do. Is there anywhere in your form where it is set? If there is, make sure it is set to zero while you are testing.
    <P>Since you are using regular message statements to debug (Re: Zdebug -- Download a Forms debugging message tool), you should determine if the process that sets up the tabbed canvases is being executed.

  • Can not configure Oracle 10g form  on oracle 11g client

    Hi
    I need to install oracle 10g form in my system .
    Here is my system
    1. OS --XP
    2. 32 Bit
    4. Already oracle 11g release client installed ( I think that create the problem )
    I tried to install oracle 10g form , it installed but can cont configure net manager for it , Always it point to 11g client and hence I could not configure .
    Also I tried install Oracle Forms first then 11g client , But  I got same issue .
    I think if  I created multiplr home one for 11g client and other for forms , it may work out .
    Please  help me
    Debashis

    While deploying the example 'VacationRequest' in the oracle complete guide for 11g, i got an exception like this
    "12:08:15 PM] Deploying Application...
    [12:11:16 PM] [Deployer:149191]Operation 'deploy' on application 'VacationRequestTaskFlow' is initializing on 'soa_server1'
    [12:11:24 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application VacationRequestTaskFlow on soa_server1.: [Deployer:149145]Unable to contact 'bam_server1'. Deployment is deferred until 'bam_server1' becomes available.; nested exception is:
         java.rmi.UnknownHostException: Could not discover administration URL for server 'bam_server1'.
    [12:11:24 PM] [Deployer:149193]Operation 'deploy' on application 'VacationRequestTaskFlow' has failed on 'soa_server1'
    [12:11:24 PM] [Deployer:149034]An exception occurred for task [Deployer:149026]deploy application VacationRequestTaskFlow on soa_server1.: Failed to load webapp: 'VacationRequestTaskFlow.war'.
    [12:11:24 PM] Weblogic Server Exception: weblogic.application.ModuleException: Failed to load webapp: 'VacationRequestTaskFlow.war'
    [12:11:24 PM] Caused by: java.lang.ClassNotFoundException: oracle.adf.library.webapp.ResourceServlet
    [12:11:24 PM] See server logs or server console for more details.
    [12:11:24 PM] weblogic.application.ModuleException: Failed to load webapp: 'VacationRequestTaskFlow.war'
    [12:11:24 PM] #### Deployment incomplete. ####
    [12:11:24 PM] Deployment Failed"
    Can anyone help in this.

  • Mouse Scroll Not Working in oracle forms

    Hi,
    I Created a master and detail block.. In Detail block following Properties i set
    No. of Records to be displayed : 10
    Scroll bar : no
    Without having the scroll bar i wannt to check all the records in the detail Block.
    for this i created key_scrolldown trigger in form levl called thye builtin
    SCROLL_DOWN;
    i'm using Oracle 10g.. JIniator for Running Oracle Forms
    applying this Coding this function is not working..
    Can anybody tell this How to oversome from this...???
    Cheers.

    What version of Oracle Forms are you using? You should always include this in your posts. :)
    Mouse scrolling is only enabled in Web runtime of Forms - so you must be using Forms 9i or higher.
    Does JRE Support mouse scrolling function?If memory serves, Mouse scroll was first introduced in Java 1.5.0. Therefore, if you want enble the mouse scroll wheel in Forms, you must be using JRE 1.5.0 or higher. I strongly recommend you use Java 1.6.0_33 or higher - but do not use Java 1.7.0 as it has not been certified with Oracle Forms yet.
    In order to use the JRE over the Jinitiator, you must modify your configuration to enable use of the JRE. Please take a look at Oracle 10gR2 Forms Services – Using Sun's Java Plug-in. This Oracle White Paper is for Forms 10g Release 2, but the instructions are basically the same for 9i and 11g as well.
    Hope this helps,
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Headstart forms - down key does not work in Oracle Forms 11g

    Just moved forms from 10g to 11g.
    But when run the down key does not work. The .res file looks OK.
    I have included the hst65.jar in the search path for jar-files in formsweb.cfg.
    Anybody had this isssue?

    It was an erroneous .res-file! So problem solved. :-)

  • Conditional formatting in the chart  does not work after 10g to 11g upgrade

    W e have upgraded from 10g to 11.1.1.6.8 recently. For all the reports conditional formatting for charts is not working for us which used to work in 10g.
    While researching , i have found that advanced xml needs to be modified. So i changed xml where there is 'untypedLiteral' to 'decimal' and saved the report. Inspite of saving , xml wouldnt change . It still shows as untypedLiteral.
    I also tried to delete the conditional format and recreate again. But still it wouldn't work.
    Please advise.

    W e have upgraded from 10g to 11.1.1.6.8 recently. For all the reports conditional formatting for charts is not working for us which used to work in 10g.
    While researching , i have found that advanced xml needs to be modified. So i changed xml where there is 'untypedLiteral' to 'decimal' and saved the report. Inspite of saving , xml wouldnt change . It still shows as untypedLiteral.
    I also tried to delete the conditional format and recreate again. But still it wouldn't work.
    Please advise.

  • SQl loader is not working in 10g but working in 9i

    In My PC i have installed both 9i and 10g. could you please tell me why it is not working

    "SQL loader is not working" is rather like "my car won't start" http://tkyte.blogspot.com/2005/06/how-to-ask-questions.html
    The 9i Oracle Client install includes sqlldr. The 10g Oracle Client install does NOT include sqlldr. You'd have to do a "Custom" Install and specifically select "Oracle Database Utilities" to install.
    See MetaLink Note#437377.1
    Edited by: Hemant K Chitale on Dec 31, 2008 3:58 PM
    Edited by: Hemant K Chitale on Dec 31, 2008 4:00 PM

  • GET_FILE_NAME NOT WORKING IN ORACLE FORMS 9I

    PLEASE HELP THIS COMAND WORKING IN FORMS 5 BUT NOT
    WORKING IN FORMS 9I TO OPEN THE DAILOG BOX AND GET IMAGE FILES
    TO SAVE ON FORMS 9I PLEASE HELP.
    declare
    salfile varchar2(255);
    begin
    salfile:=get_file_name('C:\emp\',NULL,'JPG FILES (*.JPG)|*.JPG|','IMAGE LIST');
    read_image_file(SALFILE,'ANY','ISLAM.EMP_IMAGE');
    END;
    THANKS & REGARDS.
    M.Z.ISLAM

    Forms 5 is a client/server application, so it looks for files on your local c: drive.
    Forms 9i is a web application, so in principle it will now look on the server's c: drive.
    However, get_file_name is not a standard Forms procedure. My guess it that it is one of your own procedures and it uses the d2kwutil library. This library won't work in a web environment.
    If you want to do something with files on your local PC in a web envirionment, you will have to use webutil.

  • Allow Custom Text Entry for Drop down not working For Dynamic form

    Dear All,
    In drop down field Allow custom text entry is working fine if the form is save as a static pdf form file.But if the form is save as a Dynamic pdf form file it is not working.I can enter custom text in drop down field but after filling it up when I click on next field the text from the drop down is disappearing.
    If any body can please help me to solve this problem.
    Thanks a lot in advance
    Regards
    Rakesh

    Dear Jimmypham,
    Thanks a lot for your quick response.But it's not working for me.I have even tried with a form having only single field and save it as a dynamic pdf file.In that form also it's not working.The text which I have entered is disappearing when I click outside of this field.
    Can you please help me to find out the solution for this problem.
    Regards
    Rakesh

  • Command_link does not work outside of form

    if command_link is outside of form, it is rendered without a warning notes, but does not work correctly.

    Sorry, you did not get my point again.
    Currently, I check how JSF RI helps developer to recognize his/her mistakes.
    In case of command_link outside of the form, RI says "Everything is all right. Spend the next couple minutes (couple hours or days, depends of developer qualification) to find this trick.

Maybe you are looking for

  • Call a PAL function within a view in HANA?

    Hi community! Does anyone know how you can integrate the call of a PAL function (e.g tripple exponential smoothing) into a HANA view?  I guess this must be achievable in a CE Script? Business scenario: we would like to show a time series based predic

  • Standalone program utlising 100 percent CPU time

    We are struck with a problem, our standalone program is occupying most of cpu time and limiting existing processes access to cpu. We need to bring down cpu utilization of the process. Java program when run polls to MQ, gets the xml message from mq, s

  • When to use COFC and CO1P?

    Hello, What is the function of COFC and CO1P respectively?  When to use them? Thanks LinLin

  • I have almost a 1000 photos on my iPod but can't import them to my Mac

    I have an iPod 5 running iOS 7 and am trying to import my photos to my iMac running OSX 10.6.8. I managed to import some photos into Aperture but then it got stuck in trying to delete some of the imports. I could not get past the delete photos button

  • Numbers 3.0 doesn't work

    Hello, I just upgraded to Numbers 3.0.  However, now when I try to launch numbers from the dock, I get a menu list of my numbers docs.  When I click on one that was already created using numbers 3.0, I get an error message telling me that the file ca