Database package change cauases bindingFault in BPEL. How to avoid?

Hi
Quick question for those of you using the database adapter. I am calling a package that during development gets updated. If I make a change, the next call to it, causes a bindingFault:
<bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>4068</code>
</part><part name="summary"><summary>file:/u01/app/oraeq2pd/eq2pdsoa/10.1.3.3/bpel/domains/default/tmp/.bpel_BPELRunConcProgram_1.0_6eae172b906416c598575857f508453e.tmp/RunConcRequest.wsdl [ RunConcRequest_ptt::RunConcRequest(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'RunConcRequest' failed due to: Error while trying to prepare and execute an API.
An error occurred while preparing and executing the APPS.XANSA_INTERFACE_UTILS.RUN_CONC_REQUEST API. Cause: java.sql.SQLException: ORA-04068: existing state of packages has been discarded
ORA-04061: existing state of package "APPS.XANSA_INTERFACE_UTILS" has been invalidated
ORA-04065: not executed, altered or dropped package "APPS.XANSA_INTERFACE_UTILS"
ORA-06508: PL/SQL: could not find program unit being called
ORA-06512: at line 1
This is understandable and I know why, but is there a standard way of handling this kind of fault? Unfortunately the 'retryMaxCount' does not get invoked for a binding fault. Retrying a package would normally clear this error.
I have also tried refreshing the connection pool, but this doesn't seem to work. Does this refresh only work on connections not currently being used?
The only other option is to bounce the JVM, which is very excessive in my opinion.
Any ideas would be most appreciated!
Thanks
Chris

Hi Chris,
you could try the Fault Management features
added with Patchset 3
see this thread for more info
Re: Fault Policy Management in 10.1.3.3 - Documentation?
Mark

Similar Messages

  • Database file changed ora-01251   how to solve?

    hai all,
    database file changed ora-01251 how to solve?
    suddenly changed when i try to connect Oracle Management server(OMS)
    thanks
    rcs
    =======
    os:winxp
    db:Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    SQL> Recover database
    ORA-00283: recovery session canceled due to errors
    ORA-01110: data file 9: 'F:\ORACLE\ORADATA\BIMPEX\BIMPEX.ORA'
    ORA-01122: database file 9 failed verification check
    ORA-01110: data file 9: 'F:\ORACLE\ORADATA\BIMPEX\BIMPEX.ORA'
    ORA-01251: Unknown File Header Version read for file number 9
    WRONG FILE TYPE
    F:\ORACLE\ORADATA\BIMPEX\BIMPEX.ORA
    ========

    Hi..
    Would like to know if any changes were done before this error popped up..
    From metalink :--
    >
    Error:     ORA-1251
    Text:     Unknown File Header Version read for file number %s
    Cause:     Read of the file header returned a record but its version cannot be
         identified. Either the header has been corrupted, or the file is not a
         valid database file.
    Action:     Have the operating system make the correct file available to the
         database, or recover the file.
    >
    If the file is corrupted, then take the datafile offline and open the database.If it was renamed, then you can check metalink Doc ID:      230449.1
    if the database is in archive log mode, you can refer to metalink Doc ID: 333620.1
    HTH
    Anand

  • Accessing database packages in a different schema

    This is frustrating me...
    I've created a forms 6 application under the username vimich.
    In order to access the tables using a different user name I simply created public synonyms for the tables.
    This process does not seem to work for packages in the vimich schema.
    How can I get around this?
    Thanks for your help.
    Lesley.

    Lesley;
    I'm not a fan of creating public synonyms. The technique for making your forms schema independent that I perfer is as follows. Your tables are in the vimich schema. So when you log into the database from Forms log in as the SYSTEM user (default password is MANAGER... hopefully you've changed it).
    SYSTEM is the default DBA and has privileges on all tables. When you use the Data Block Wizard to create your data blocks, the fact that you're not logged in as vimich will cause the wizard to preface all table names with vimich. in the SQL that it generates. Then anyone with priviledges on your tables can use the forms. I have not tried this with packages, but it might work.
    One thing to remember about this approach is that if you log in as vimich using the forms, they will work fine until you try to reference a sequence. Oracle does not like you to prefix your own sequences with schema. even though it has no problems with you prefixing your own tables.
    Best!

  • ORA-20503: Current version of data in database has changed since user initi

    Hi,
    I am getting the below error when I try to update an existing record.
    "ORA-20505: Error in DML: p_rowid=11887, p_alt_rowid=CASE_ID, p_rowid2=, p_alt_rowid2=. ORA-20503: Current version of data in database has changed since user initiated update process. current checksum = "7EB7B6F69DB421184B4CEE0884E435C6" application checksum = "53106AB0EB97FD1442D85F2AAE3AFA69"
    Error Unable to process row of table "
    And this does not happen always. IT happens once in a while and I am unable to check what is causing the issue. It is a critical issue and need to be fixed asap.
    Any help is greatly appreciated!
    Thanks!
    Kavya

    We are using Apex version: 3.1.2.00.02
    What else could be the reason and how should I fix it?
    At this point the application is migrated and I am unable to write a custom package for the DML operations. And this issue happens randomly and that too only while updating the data.
    Please help!

  • What is the best methodology to handle database schema changes after an application has been deployed?

    Hi,
    VS2013, SQL Server 2012 Express LocalDB, EF 6.0, VB, desktop application with an end user database
    What is a reliable method to follow when there is a schema change for an end user database used by a deployed application?  In other words, each end user has their own private data, but the database needs to be expanded for additional features, etc. 
    I list here the steps it seems I must consider.  If I've missed any, please also inform:
    (1) From the first time the application is installed, it should have already moved all downloaded database files to a separate known location, most likely some sub-folder in <user>\App Data.
    (2) When there's a schema change, the new database file(s) must also be moved into the location in item (1) above.
    (3) The application must check to see if the new database file(s) have been loaded, and if not, transfer the data from the old database file(s) to the new database file(s).
    (4) Then the application can operate using the new schema.
    This may seem basic, but for those of us who haven't done it, it seems pretty complicated.  Item (3) seems to be the operative issue for database schema changes.  Existing user data needs to be preserved, but using the new schema.  I'd like
    to understand the various ways it can be done, if there are specific tools created to handle this process, and which method is considered best practice.
    (1) Should we handle the transfer in a 'one-time use' application method, i.e. do it in application code.
    (2) Should we handle the transfer using some type of 'one-time use' SQL query.  If this is the best way, can you provide some guidance if there are different alternatives for how to perform this in SQL, and where to learn/see examples?
    (3) Some other method?
    Thanks.
    Best Regards,
    Alan

    Hi Uri,
    Thank you kindly for your response.  Also thanks to Kalman Toth for showing the right forum for such questions.
    To clarify the scenario, I did not mean to imply the end user 'owns' the schema.  I was trying to communicate that in my scenario, an end user will have loaded their own private data into the database file originally delivered with the application. 
    If the schema needs to be updated for new application features, the end user's data will of course need to be preserved during the application upgrade if that upgrade includes a database schema change.
    Although I listed step 3 as transferring the data, I should have made more clear I was trying to express my limited understanding of how this process "might work", since at the present time I am not an expert with this.  I suspected my thinking
    is limited and someone would correct me.
    This is basically the reason for my post; I am hoping an expert can point me to what I need to learn about to handle database schema changes when application upgrades are deployed.  For example, if an SQL script needs to be created and deployed
    then I need to learn how to do that.  What's the best practice, or most reliable/efficient way to make sure the end user's database is changed to the new schema after the upgraded application is deployed?  Correct me if I'm wrong on this,
    but updating the end user database will have to be handled totally within the deployment tool or the upgraded application when it first starts up.
    If it makes a difference, I'll be deploying application upgrades initially using Click Once from Visual Studio, and eventually I may also use Windows Installer or Wix.
    Again, thanks for your help.
    Best Regards,
    Alan

  • Generate report with data from database package

    Hi
    Is it possible to generate a report where the values come from an oracle database package instead of from an sql query declared in the report itself?
    If yes, how is it done?
    Appreciate any help. Thx.

    Hi,
    You can use REF CURSORs to generate reports from a database package.
    For information about REF CURSORs, please see Chapter 40 'Building a Paper Report with REF CURSORs' of the Oracle Reports Building Reports manual.
    This chapter is at:
    http://download-uk.oracle.com/docs/html/B13895_01/orbr_refcur.htm#i1011693
    Hope this helps.
    Regards,
    Panna

  • MRU Error : Current version of data in database has changed since user init

    When i use HTMLDB Wizard to create Master Detail Form
    (You can see step by step what i doing by see this url :
    http://jroller.com/resources/w/wildan83/MRU%20Error.pdf
    The is error in MRU :
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process. current checksum = "A884FA378C851786DDFE3A33709CB23C", item checksum = "0EEFFABE8252B0B279DB14A77F567F5D"., update "CNAP2"."ENROLLMENT" set "STUDENT_ID" = :b1, "SECTION_ID" = :b2, "ENROLL_DATE" = :b3, "FINAL_GRADE" = :b4.
    If there something missing.., just say ..
    Thanks for the help.

    Oh i see ..,i never think if that is the source of the MRU
    error.
    Ok ..,
    Now ..., i have new question .., how can i change so the the primay key in detail table (enrollment table), i have one primary key with two columns .., if you don't understand what i mean ..,
    check this alter table statement :
    ALTER TABLE ENROLLMENT
    ADD CONSTRAINT ENR_PK PRIMARY KEY
    (STUDENT_ID
    ,SECTION_ID) ;
    Now the question is .., when i using wizard to create master detail form .., html db automatically make student_id and section_id as the primary at "application level (html db)" .., how can i change this behaviour ..,
    i want the html db not treat this two column as primary key ?
    Do i have to create master detail form manually to accomplish this ?
    Thanks before .., sorry if my english is not too good.

  • ORA-20001: Current version of data in database has changed since user.....

    Hi,
    I am having a tabular form which I created using the wizard
    I am facing the below error when I try to update or 'Add Row'
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1, ORA-20001: ORA-20001: Current version of data in database has changed since user initiated update process."
    I havenot changed the query but I made certain columns based on select list,gave some default values,etc..
    How can I solve this problem?
    Also,I am getting the above error once I change the query for another tabular form.The client wanted some more fields to be displayed on the page.
    How can I solve this problem too?
    Thanks and Regards,
    K.tanna

    Can somebody help me out?

  • Accessing database package variables from Forms

    I have a database package that populates a table of values, i.e.
    type t_route_list is table of rt_route.RTR_ID%type;
    route_list t_route_list
    route_list gets populated by a package function and I want to access route_list in the Form.
    While I can access other package variables by writing a function that returns the variable, Forms doesnt seem to like functions that return a user defined datatype as above. I have also tried using a procedure with an OUT param instead of a function but it also fails with same error.
    i.e.
    declare
    v_route_list pkg_bulk_route_replace.t_route_list;
    begin
    pkg_bulk_route_replace.init;
    pkg_bulk_route_replace.get_route_list(v_route_list);
    message(v_route_list(1));
    end;
    This will not compile, but removing the index (1) from the last line makes it compile but crash with ORA-0600.
    The code above with message replaced with dbms_out.put_line works fine on TOAD.
    So my question is......
    Can my database package return a plsql table to a form and if so, how?!

    Actually I've got this to work now!
    Thde main culprit appears to be a difference in the version of sql or pl/sql used on forms (version 5) and the database (8.1.7).
    I had defined my table as a nested table. By redefining this as a indexed table, simply by adding on 'index by binary_integer' on my server package, I am suddenly able to access the elements of the table on my form. Fortunately this did not break the server code either - the table was populated using bulk collect and that still works.
    Still got a bit of coding to do, but things are looking up now.

  • Are ADF BC4J based on database package procedures?

    Hi all!
    Is it possible to create ADF BC4J components base on database package procedures like building ORACLE FORMS blocks on case generated module api?
    If yes, how can I achieve this? In the wizards I only see tables, views an so on!
    regards

    Read capital "26.4 Basing an Entity Object on a PL/SQL Package API" in "Oracle® Application Development Framework
    Developer’s Guide For Forms/4GL Developers"

  • SSO Userid required from database package/trigger

    I've done a search but cannot find the answer to my problem.
    If I log into a Forms application using SSO I can get the SSO userid and database USER.
    How do I get the SSO Userid from a database package or trigger that is called from Forms. Is there a database function that will return the SSO Userid?
    Thanks
    Stewart

    Rosario,
    Yes, I know how to retrieve the information but do I have to populate it first.
    E.g. 'SYS_CONTEXT('USERENV','CLIENT_IDENTIFIER') Returns an identifier that is set by the application through the DBMS_SESSION.SET_IDENTIFIER procedure'
    Do I have to call 'DBMS_SESSION.SET_IDENTIFIER' from my application before
    calling SYS_CONTEXT('USERENV','CLIENT_IDENTIFIER')?
    Thanks
    Stewart
    Message was edited by:
    stewartdawson
    Message was edited by:
    stewartdawson

  • Invalid Synonym on Database Package

    I have recently modified a database package spec and package body for the first time since our upgrade to Oracle 10.2.0.4.0. Once I ran my code to modify the package spec and package body, the synonym became invalid. I've read that this is a new feature in Oracle 10g. I'm just wondering how I get the synonym valid again. I have tried recompiling the package spec and body again and I've also tried executing the package. The package executes fine, but the synonym still has a status of Invalid. If anyone can help I would greatly appreciate it!!
    Shellie

    Straight from the Oracle documentation:
    "To create a PUBLIC synonym, you must have the CREATE PUBLIC SYNONYM system privilege."
    So the user that you want to be able to create a public synonym has to have this done by a privileged database user:
    GRANT CREATE PUBLIC SYNONYM TO <the_user>;

  • Do I need to restart database in change of spfile?

    Hi
    All,
    Do I need to restart database in change of spfile? my database is in 10.2.0.3 on AIX.
    and one more thing when I do more on spfile it displaying the contents that is readable i am thinking that spfile is binary file so how it can be possible.
    Thanks,
    Vishal

    You may be interested in reading this page
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/create.htm#sthref438
    SPFILE is a dynamic file so it does not need any sort of server restart.Also though it can be readable by any utility which can read any binary,its not advisable to read spfile like this.The best (recommended ) way is to create a pfile from it and then alter it if you need it.
    Aman....

  • Forms 11gR1 with Database Package

    Hi everyone,
    I'm asking this here, i need to know what i'm doing wrong.
    I have a database package that contains pipiled record.
    I want to use it in a form with forms builder.
    if i do
    select * from table(mypackage.myfunction());
    in PL/SQL Developper, i get all what i except (list of record)
    if i try to use this select in a CURSOR inside my form, i get error about SQL type not authorised
    with my from table();
    but if i use it with a populate_group_with_query, everything works perfectly.
    So, there's a way i can use my package inside a form program unit?
    Thanks for your help.

    No, working with collection is not like the POPLUATE_GROUP_WITH_QUERY built-in because you have to write the code to process the rows and columns of the collection.  A collection, in Oracle, is essentially an Array.
    To work with a collection, you have to create an object in your trigger PL/SQL to store the collection.  To do this you create a user defined TYPE and then create an object based on this type.  Take a look at the article, https://sites.google.com/site/craigsoraclestuff/oracle-forms---how-to-s/forms-procedure-based-block for an example of how to write a database package the uses a collection as the source of data for a Forms data block.
    Base on this article, in your Forms trigger you would then create an object typed off of the package type T_EMPLOYEE.  Next, you call your database package and assign the collection to your trigger object.  Finally, you loop through the collection to perform the needed action on each row.  Here is an example of the basic code using the article above as an example:
    /* sample code - for demonstration purposes */
    /* code is untested */
    DECLARE
      rec_employees   EMPLOYEE.T_EMPLOYEE;
    BEGIN
      EMPLOYEE.EMP_SELECT(rec_employees);
      FOR idx in 1 .. rec_employees.COUNT LOOP
        -- now do something with each column in the row...
        rec_employees(idx).empno ...
        rec_employees(idx).ename ...
        rec_employees(idx).job ...
        etc...
      END LOOP;
    END;
    Hope this helps.
    Craig...

  • How to avoid special characters( #) via Utl_file Package

    Hello,
    I am using UTL_FILE package in order to read the text from a text file and insert this text into a table.
    But the text contain special character like #.
    This is the nature of this text data.
    For example the O/S text file contain the following text:
    TEXT:
    Name of the default schema being used in the current schema.
    Name of the default schema being used in the current schema.
    Name of the default schema being used in the current schema.
    Name of the default schema being used in the current schema.
    Name of the default schema being used in the current schema.
    Name of the default schema being used in the current schema.
    How should we avoid reading the following line via UTL_FILE from the text file?
    So the text without these special characters will be inserted into a table.
    I wanted that these special characters would not be inserted into a table via UTL_FILE.
    What code I can add in my following routine in order to avoid the reading of special characters # or a following line from the text file?
    Thanks
    Sharbat
    UTL FILE Code:
    Declare                              
    l_file_handle UTL_FILE.FILE_TYPE;                              
    l_buffer VARCHAR2(4000);                              
    BEGIN                              
    l_file_handle := UTL_FILE.FOPEN('c:\temp', 'test.txt', 'r', 4000);                              
    loop
    UTL_FILE.get_line(l_file_handle,l_buffer);
    insert into TEST (text) values(l_buffer);
    end loop;
    exception
    when no_data_found then
    UTL_FILE.FCLOSE(l_file_handle);
    when others then
    if utl_file.is_open(l_file_handle)
    then
    utl_file.fclose(l_file_handle);
    end if;
    end;

    Hi,
    in Forms you can use text_io for reading text from a file. For questions related to database packages I suggest to post this question on teh database forum here on OTN.
    Frank

Maybe you are looking for

  • I believe I've encountered a phishing attempt via FireFox sync

    I was using firefox 3.6.12, and noted a small pop-up box advising me that FireFox sync had encountered a password problem. It wanted me to re-enter the password in the popup box. Since I'm new to Firefox sync (I'm an x-marks refugee), I'm a little le

  • Sql 2012 always on setup

    I got a sql 2012 always on setup between 2 standalone servers in 2 different locations. I do not understand why I need cluster manager managing the 2 nodes. I have cluster manager but there is no shared disks. there are 2 nodes under cluster manager

  • Bringing in an uncompressed .mov...when exported, comes out lower quality??

    hello i am dealing with a project using adobe flash cs3 and final cut pro 2 on a mac. i am exporting a quicktime from flash and then bringing that .mov into FC to edit, add music, etc. when i export from final cut, i see that the clip isnt as crisp a

  • JDI Deployment error

    Hello, during installation of the JDI (deploying the 3 packeges; JDI BUILD TOOL, JDI and JDI OFFLINE), i get an error message with this SC "tc.CBS.Appl Component": Starting Deployment of tc.CBS.Appl Aborted: development component 'tc.CBS.Appl'/'sap.c

  • OT: Compare PHP recordset to posted data

    I am populating a form with data from a recordset for user confirmation. When the form is submitted, I want to compare the submitted data to the original data and take action if there are any differences in anything. What would be the best way to do