Dbms_lob.open(XML_IN, DBMS_LOB.LOB_READWRITE) in Forms 10 error

Hi all,
I am moving a procedure from the Data Base to a form in 10g, and then problem that i find is that i get a compilation error "Restriccition of implementation, DBMS_LOB.LOB_READWRITE can't access directly to remote package variable or cursor"
My code is like this:
DECLARE
XML_IN CLOB;
XML_OUT CLOB;
BEGIN
DBMS_LOB.createTemporary(XML_IN, FALSE);
DBMS_LOB.createTemporary(XML_OUT, FALSE);
dbms_lob.open(XML_IN, DBMS_LOB.LOB_READWRITE);
dbms_lob.open(XML_OUT, DBMS_LOB.LOB_READWRITE);
END;
thx in advance!

You can't access global constants of a database Package (like DBMS_LOB.LOB_READWRITE) from within Forms PL/SQL. Put your code in a stored procedure and you should be fine.
cheers

Similar Messages

  • 11.5.10 forms server error

    hi all
    i have installed EBS 11i on windows xp
    it worked fine for last few months.now i am getting forms server error.
    i can login as user and when i try to go to applications like AR transactions,
    jinitiator is also geting intiated.it stops at this stage and i can see the oracle logo in the back ground .but the forms do not open.
    i can see the forms generic error like 'forms 90500:cannot connect to the forms server'.
    i tried to start the forms server using adfrmsctl cmd from envshell.it says forms server already started.
    can anyone help me regarding this.
    Thanks in advance

    HI
    I can find the jinitiator.trace but cant find the jinitiator.log
    this is standalone installationn on my laptop(windows XP)
    this is what i found in the trace file
    Loading http://oracle.mydomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndforms.jar from JAR cache
    Loading http://oracle.mydomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jar from JAR cache
    Loading http://oracle.mydomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndewt.jar from JAR cache
    Loading http://oracle.mydomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndswing.jar from JAR cache
    Loading http://oracle.mydomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndbalishare.jar from JAR cache
    Loading http://oracle.mydomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndaol.jar from JAR cache
    Loading http://oracle.mydomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndctx.jar from JAR cache
    Loading http://oracle.mydomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndlist.jar from JAR cache
    connectMode=Socket
    serverHost=oracle.mydomain.com
    serverPort=9000
    .

  • DBMS_LOB 22288 Command Length Incorrect Error

    I am trying to open a file (WIndows Server 2003) using DBMS_LOB and keep getting an error.
    The code is:
    CREATE OR REPLACE procedure LINECOST.btest is
    abfile bfile := bfilename('ROUTING', 'database.xml');
    begin
    dbms_output.put_line(dbms_lob.getlength(abfile));
    dbms_output.put_line(dbms_lob.fileisopen(abfile));
    dbms_lob.fileopen(abfile);
    end;
    Error is:
    ORA-22288 file or LOB operation failed
    The program issued a command but the command length is incorrect.
    ORA-06512: at SYS.DBMS_LOB, line 716
    ORA-06512: at btest , line 5..
    Would appreciate any suggestions.
    Thanks,
    Brett

    I am getting the same error under Windows 2003 server. I beleive that it is due to Windows 2003 permissions in relation to the oracle user. Whio is the oracle user when a procedure is operating if the oracle userid is not a windows logon id?
    Has anyone solved this problem?

  • How to open a page from a Form and pass parameters to the form on that page

    I found a similar example on this forum, but it did not work for me:
    declare
    l_names owa.vc_arr;
    l_values owa.vc_arr;
    i number;
    begin
    PORTAL.wwpro_api_parameters.retrieve(l_names, l_values);
    FOR i in 1..l_names.count
    LOOP
    htp.p(l_names(i) || ' ' || l_values(i));
    END LOOP;
    end;
    By using this method i get the parameters for the Form, like the session ID, but not the parameters for the Page that the form is displayed in.
    Another method I tried:
    To open a Form from a Form and pass parameters works fine like this:
    --In the After processing page PL/SQL event.
    declare
    v_id number;
    blk varchar2(10):='DEFAULT';
    Begin
    v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
    if v_id > 0 then
    htp.formOpen('PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=2649500412&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=ID&p_arg_values='||to_char(v_id),'post');
    htp.formSubmit(NULL,'Upload Files');
    htp.formClose;
    end if;
    End;
    But I want to open a Page containing the Form instead of just opening the Form. Is this possible to open a Page and pass paramters to the page, and then let the form inside the Page access the passed paramters. The reason for this is that a Form cannot be based on a page template, or can it? When opening the form i want to keep the left menu, which I can if it is a page based on my template with the left menu.
    Best regards
    Halvor

    Hi,
    You can do this by calling the url of the page with the form. You can then use p_arg_names and p_arg_values to pass parameters. In the called form you can get the value from p_arg_names and p_arg_values and assign it to the form field.
    You can call this code in the success procedure of the calling form.
    declare
    v_id number;
    blk varchar2(10):='DEFAULT';
    v_url varchar2(2000);
    Begin
    v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
    v_url := <page_url>;
    if v_id > 0 then
    call(v_url||'&p_arg_names=id&p_arg_values='||v_id);
    end if;
    End;
    In the called form in "Before displaying form" plsql section write this code.
    for i in 1..p_arg_names.count loop
    if p_arg_names(i) = 'id' then
    p_session.set_value(
    p_block_name => blk,
    p_attribute_name => 'A_ID',
    p_value => p_arg_values(i)
    end if;
    end loop;
    This code picks up the value from p_arg_values and assigns it to the form field.
    Hope that helps.
    Thanks,
    Sharmila

  • How do i open a PDF document in forms?

    How do i open a PDF document in forms runtime?
    acrobat reader would already be installed on the pc's.
    any help would appreciated.
    Thanks
    Hussein Saiger

    Hello,
    I'm not a specialist, but I think that you could configure these information in the /Apache/Apache/conf/httpd.conf file
    # Aliases: Add here as many aliases as you need (with no limit). The format is
    # Alias fakename realname
    <IfModule mod_alias.c>
        # Note that if you include a trailing / on fakename then the server will
        # require it to be present in the URL.  So "/icons" isn't aliased in this
        # example, only "/icons/"..
        Alias /icons/ "/appli/9IAS/Apache/Apache/icons/"
        Alias /jservdocs/ "/appli/9IAS/Apache/Jserv/docs/"
        Alias /javacachedocs/ "/appli/9IAS/javacache/javadoc/"
    ...Francois

  • I have a user on Adobe Reader X.  whenever they open a .pdf file, the form fields do not auto-fill u

    I have a user on Adobe Reader X.  whenever they open a .pdf file, the form fields do not auto-fill until you click in the box.  Is there a setting that can be changed to make the form open properly?

    Sounds like the form fields were filled in on a Mac using Mac Preview. This cannot be fixed in Reader only Acrobat. Ask the person who filled in the form to redo their work in Adobe Reader.

  • Form fields in LiveCycle. I want to allow users to add URLs to a form so that they can be clicked and opened on the web by form reviewers (users). what is the best way to achieve this?

    Form fields in LiveCycle. I want to allow users to add URLs to a form so that they can be clicked and opened on the web by form reviewers (users). what is the best way to achieve this?

    Once the user has entered the URL they want to add to the form. You can use the loadXML function to implement some special text in a label...
    var linkValue = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><exData contentType=\"text/html\" xmlns=\"http://www.xfa.org/schema/xfa-template/2.8/\"><body xmlns=\"http://www.w3.org/1999/xhtml\" xmlns:xfa=\"http://www.xfa.org/schema/xfa-data/1.0/\" xfa:APIVersion=\"Acroform:2.7.0.0\" xfa:spec=\"2.1\"><p style=\"font-weight:bold;text-decoration:none;letter-spacing:0in\">The new link the user have entered is:<a href=\"" + textfield.rawValue + "\">textfield.rawValue</a></p></body></exData>";
      this.resolveNode("lblURL").value.exData.loadXML(linkValue, 1, 1);

  • Cannot open/view/access interactive pdf form on iMac after updating Adobe Reader to 11.0.06.70

    Cannot open/view/access interactive pdf form on iMac after updating Adobe Reader to 11.0.06.70. Please help!

    Here is what it says:
    Please wait...
    If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document.
    You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by visiting http://www.adobe.com/products/acrobat/readstep2.html.
    For more assistance with Adobe Reader visit http://www.adobe.com/support/products/ acrreader.html.

  • Imported PDF won't open because it has no forms to fill but it does

    imported PDF won't open because it has no forms to fill but it does

    Can you send the PDF form you are trying to import to [email protected] so we can take a look at it.
    Thanks,
    Randy

  • I am trying to open a file in pdf form and I keep getting "there was

    I am trying to open a file in pdf form and I keep getting ...there was a problem reading this document....any suggestions???

    Hi,
    Thanks for reporting the issue; we would like to reproduce it at our end. Please give in the below information to investigate on this,
    1. The Linux distribution (Version of Linux) you are using.
    2. Are you opening the pdf from shared location? If yes, then how is the shared location mounted.
    It would help if you can send in the pdf you are trying to open. Please email the same to vaibhavp at adobe dot com or attach it on the forum.
    Thanks,
    Vaibhav

  • Filling in a PDF Form, but get "Error opening URL to submit this form" when I try to submit

    I was able to fill in the form with Adobe Reader, but when I tried to Submit the form another box popped up that said "Error opening URL to submit this form." What can I do to fix this?

    Nothing. Report it to the form's authors.

  • Open url, type in a form and repeat in safari

    I'm very new to scripting so bare with me. I'm trying to open a url, select a form or dialogue box ( not sure what they're called) enter text into it, click the submit button, and repeat in a set number of minutes.
    So far I've been able to open a window in safari and go to the url I want.
    I don't know how to select the field I want and to enter the text in it.
    Thanks in advance.

    Really all depends completely on the page in which you're dealing with. No one page is exactly alike. That being said, the below script will open up Google and search for the text it asks you for:
    set searchText to text returned of ¬
    (display dialog "Search Google for what:" default answer "search string")
    tell application "Safari"
    activate
    make new document with properties {URL:"http://www.google.com"}
    my pageCheck()
    do JavaScript "
    document.getElementsByTagName('input')[" & 2 & "].value='" & searchText & "';
    document.forms[0].submit();" in document 1
    end tell
    on goSleepy(x)
    do shell script "sleep " & x
    end goSleepy
    on pageCheck()
    goSleepy(2)
    repeat 5 times
    set theState to readyState()
    if theState is "complete" then return true
    goSleepy(1)
    end repeat
    return false
    end pageCheck
    on readyState()
    tell application "Safari" to ¬
    do JavaScript "document.readyState" in document 1
    end readyState
    Javascript is the way to go to achieve what you're looking for. But, there are MANY different ways to approach TONS of different pages across the internet!! Hope this helps...

  • Reg: To open a Browse Window Using Form Builder

    Dear All,
    I am trying to open a browse window using form builder.I am using forms 10g.
    I have user the following code.
    Declare
    l_file_name Varchar2(383);
    Begin
    l_file_name := webutil_file.file_open_dialog( );
    If
      l_file_name Is Not Null
    Then
      If
        :images.Rowid Is Not Null
      Then
        create_record;
      End If;
      client_image.read_image_file ( l_file_name, Substr ( l_file_name, Instr ( l_file_name , -1 ) ), 'images.images' );--block.item
    End If;
    End;I have attached the webutil.pll in attached library.
    It shows an error" WEBUTIL Object group not attached to this form".
    Can any one help me how to attach that object group.
    Thankx in advance.
    Cheers,
    Jai.

    write this in your 'Browse' Button's , when_button_pressed trigger
    DECLARE
      filename VARCHAR2(500);
    BEGIN
      filename:=GET_FILE_NAME(' ',NULL,NULL,'Choose any directory.',OPEN_FILE,TRUE);
      :txtbx3:=filename;  -- Here you will assign to you form's field.
    END;Edited by: Tuts009 on May 10, 2010 5:00 AM

  • Open a page as popup form

    hi
    I am developing a project using Netbeans Visual JSF. I made two pages
    1. Page1.jsp
    2. InvoiceFilter.jsp
    My requirement is:
    When a user click on button on Page1.jsp the InvoiceFilter.jsp should be open as a pop-up form on top of Page1.jsp and focus should go to InvoiceFilter.jsp Form. Once the user fill the details in InvoiceFilter Form and click ok button present on InvoiceFilter.jsp form The control should go back to Page1.jsp and InvoiceFilter.jsp form should close. Right now, I am not able to create jsp pages as pop-up.
    Please let me know how to do this and secondly also let me know how to pass values from one jsp to another when a button is clicked

    shaily903 wrote:
    Please let me know how to do this and secondly also let me know how to pass values from one jsp to another when a button is clickedYou will find answer to the second question in the BalusC blog: [Communication in JSF|http://balusc.blogspot.com/2006/06/communication-in-jsf.html]

  • Opening Underlying mail system from forms.

    Hello,
    I want to send .html file using mail through forms. How can I
    open underlying mail system from forms ? Is it possible using
    HOSt commmand ? See, Host('iexplorer
    mailto:[email protected]') will work, but I don't want to
    rely on browser as it can be any. Ok, Is any body know how to
    fill other mail fields like subject,attachments,message ?
    Please help.
    Thankx
    Adi

    Hello,
    I want to send .html file using mail through forms. How can I
    open underlying mail system from forms ? Is it possible using
    HOSt commmand ? See, Host('iexplorer
    mailto:[email protected]') will work, but I don't want to
    rely on browser as it can be any. Ok, Is any body know how to
    fill other mail fields like subject,attachments,message ?
    Please help.
    Thankx
    Adi

Maybe you are looking for

  • How do you use the counters on board

    I am involved in the development of a LabVIEW VI for the acquisition and processing of signals generated by a chip under test; my application provides two signals having the waveforms sketched in the attached figure. With reference to this figure, I

  • Help with app update but already updated

    Hi, I have an app called HulloMail installed, and it has already been updated. However, the app store says it needs to be updated, and shows this in the Updates tab. It's already updated though. Is there any way I can remove this notification? I've t

  • How to convert AMR files into MP3 or WAV?

    Hello, I'm not sure if that's the right place to ask, but I couldn't find any more suitable one, so... Can anyone recommend a nice convenient application to convert my phone's recordings from AMR format to MP3 or WAV - eg. something I can convenientl

  • Sub page ordering

    I would like to resequence the order of subpage. There is the table wwpob_page$ with column seq for ordering. Can i update this column without any problem or is there is an api or others thinks for resequence page ? Thanks

  • Upgrade xp tablet to windows 7

    Hi gurus  I am not a computer expert but I would like to know , if I can upgrade my Dell xt2 xp tablet edition to windows 7 tablet edition if there is any, I would like to keep all my functionality that I have with this machine , pen input,touch scre