BPEL Database Adapter in SOA Suite10g

Hi,
I have couple of questions on bpel in SOA Suite 10g:
1. When I defined the realtionships between tables in the database adapter and try to modify the generated query,I feel it is not considering the modified SQL.
2. It is not allowing the CLOB datatype in the query.
3. what should be the data type in target xsd for an input oracle table filed of CLOB datatype or how to convert the CLOB to string format?
Could someone please answer me..?
Thanks,
Soni

Hi Soni,
Below are the answers to your query.
1. When I defined the realtionships between tables in the database adapter and try to modify the generated query,I feel it is not considering the modified SQL. ---> I have tried it and the query is getting changed, can you try it again.
2. It is not allowing the CLOB datatype in the query. --> CLOB datatype is converted into string in xsd
3. what should be the data type in target xsd for an input oracle table filed of CLOB datatype or how to convert the CLOB to string format? --> CLOB datatype acts as String data type in XSD so no need to type cast.
I hope this answers your query.
Thanks,
Ankit

Similar Messages

  • Can I alter DataBase Adapter in SOA

    Hi
    Can I alter DataBase Adapter in SOA or not?
    Thanks

    Hi,
    I don't think DDL is supported in DBAdapter. Can you explain the use case.
    One solution might be to use PL/SQL to create the tables.

  • JDeveloper 11g Errors Editing BPEL Database Adapter

    I am encountering problems editing Database Adapters in a BPEL based Service Composite Application in JDeveloper. Specifically,
    * double-clicking an existing Database Adapter component to view/edit it generates an uncaught exception in the GUI
    * clicking Next through the wizard proceeds to the next step but the view showing the
    SQL select criteria and input parameters doesn't return the original values set when the
    adapter was first created -- a second NPE is logged at that time
    Here are the specifics of what's running:
    * host for JDeveloper is a Windows7 Home Premium 64-bit (version 61. build 7601 SP 1) PC with 8GB RAM
    * JDeveloper 11.1.1.5 (the SOA / WebCenter version)
    * the c:\OracleMW directory has JDK 6.0.24 installed
    * the Windows machine does have Java EE JDK 7 installed but JDeveloper uses the JDK inside c:\OracleMW
    * while running, JDeveloper is using around 274M of memory
    * database hosting the SOA meta data store and the desired DB of the adapter is 11g (11.2.0.1.0)
    * database is up, reachable and healthy while attempting to edit the Adapter component
    Here is the exact error encountered and the stack trace:
    GUI popup = An unexpected error has occurred in JDeveloper. The program may be unstable, which could result in data loss. Decide how you want to proceed and click OK.
    Details = Uncaught exception
    java.lang.NullPointerException
    o.tip.tools.ide.adapters.designtime.adapter.xr.util.SQLRefresher.run(SQLRefresher.java:118)
    j.lang.Thread.run(Thread.java:662)
    If you click on ignore / continue and proceed through the steps of the Wizard, when the Define Selection Criteria step appears, the original criteria and input parameters defined when the adapter was first built are not displayed and the "Feedback - Log" tab in the log windows registers another entry of:
    Previously reported error [NPE in o.tip.tools.ide.adapters.designtime.adapter.xr.util.SQLRefresher:118]
    Also, if you go through the motions of adding a new parameter variable in the top section of the dialog, after clicking OK, the dialog DOES suddenly display the original variables defined as input parameters.
    Thinking this is a symptom of JDeveloper trying to run in too little memory, I have attempted to increase the max memory setting of JDeveloper to 1024M by adding this line
    AddVMOption -Xmx1024M
    in
    c:\OracleMW\JDeveloper\jdev\bin\jdev.conf
    I've also tried adjusting that same setting in the config file for the IDE itself at
    c:\OracleMW\JDeveloper\ide\bin\ide.conf
    and get the same result. (Subsequent review of properties in About JDeveloper shows that JDeveloper uses the jdev.conf file, not the ide.conf file FWIW.) Memory really shouldn't be a problem because I'm still new to SOA style development and the "application" involved is a very simple "HelloSOA" type service that just sets a couple of BPEL variables, transforms some input variables into variables passed to this Database Adapter, does a few more Transform operations for the DB result values to the reply values and sends the reply.
    However, one other sign that memory utilization could be contributing to this is that periodically, switching to the "Source" view of the composite.xml file or the BPEL process file will lock the GUI up for about 35 seconds with nothing happening. An obvious sign of garbage collection gettng triggered.
    Any suggestions?

    Oracle has identified a fix added to newer versions of JDeveloper which corrected these NullPointerException errors encountered using the 11.1.1.5 version of JDeveloper. That fix had not be propagated back to the 11.1.1.5 version but subsequently HAS been ported back. The fix is associated with patch ID 12670305 which can be downloaded from http://support.oracle.com by searching for that bug ID then downloading the associated ZIP file. I've applied the patch to JDeveloper 11.1.1.5 running on Windows7, Vista 32-bit and LINUX 64-bit and it works like a champ on all three platforms.

  • Access to package through database adapter in Soa suite problems

    Hi,
    We have to build a bpel process that inserts data in Oracle EBS custom tables. We have to use Soa suite 10.1.3.4.0.
    In Oracle EBS we have made a custom api with a pl/sql record and 2 pl/sql tables as argument.
    When i made a database adapter, Jdeveloper made a wrapper package to translate to this custom api.
    Under the user apps this works fine.
    But I have the following problem: Our customer does not want us to connect to apps schema direct.
    So we made another user that is granted to the custom api , the wrapper api and the types for the wrapper api.
    I even created public synonyms for all these objects.
    But still runtime in BPEL console these errors occurs:
    An error occurred while preparing and executing the APPS.XXEPF_BPEL_VERWERK_ASSIGNMENT.XXEPF_INHUUR_ASS_BERICHT_PKG$ API. Cause: java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXEPF_INHUUR_ASS_BERICHT_PKG$'
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXEPF_INHUUR_ASS_BERICHT_PKG$'
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXEPF_INHUUR_ASS_BERICHT_PKG$'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    [Caused by: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXEPF_INHUUR_ASS_BERICHT_PKG$'
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXEPF_INHUUR_ASS_BERICHT_PKG$'
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXEPF_INHUUR_ASS_BERICHT_PKG$'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    When i update only the location in the wsdl:
         <jca:address location="eis/DB/inflex" UIConnectionName="eli_apps_ontw2"
              ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory" />
            </port>
    to "eis/DB/inflex2" the same proces runs fine.
    (inflex2 connects to apps and inflex2 to XXEBSBPELQ)
    Anybody an idea?
    Thanks, JD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Are the types defined in the same way in both schema's?
    Vaguely remember that there was some restriction to use DB and EBS adapter that types had to be owned by the schema that was connecting to it. Please check the docs for this.
    hth

  • BPEL Database Adapter data to B2B TP

    Hi SOA/BPEL Experts
    In BPEL How we are going to Map my Data base data ie which i got from Database Adapter to the Partner Link Adapter Service Trading Partner Data for ex EDI, X12 V4010 210's.
    My Database data which i want to send to the Partner <----to-----> .ecs (X12 V4010 210's) format data ??
    Any idea's is appreciated, any Examples are also helpful
    thanks
    Ravi
    Edited by: user598717 on Aug 24, 2009 6:48 AM

    Hi SOA/BPEL Experts
    In BPEL How we are going to Map my Data base data ie which i got from Database Adapter to the Partner Link Adapter Service Trading Partner Data for ex EDI, X12 V4010 210's.
    My Database data which i want to send to the Partner <----to-----> .ecs (X12 V4010 210's) format data ??
    Any idea's is appreciated, any Examples are also helpful
    thanks
    Ravi
    Edited by: user598717 on Aug 24, 2009 6:48 AM

  • BPEL database adapter pooling rooling back transaction

    Dear Forum Members,
    I made a quick example of BPEL retrieving data from DB adapter which is pooling a database, transforms the data and generate a file.
    The process executes, but at the end is throws the following fault: The transaction was rolled back. The work performed for bpel instance "X" was rolled back, but the audit trail has been saved for this instance.If this is a sync request, please resubmit the request from the client. If it is an async request, please recover from the recovery console by resubmitting the invoke message.
    Along with the fault, the adapters does not update the processed database rows.
    Did a miss any configuration?
    Regards.

    Hi,
    You have to investigate the reason it is rolling back... Is the process taking too long? Do the process have rights to update the database? Check SOA *diagnostic* log files...
    Cheers,
    Vlad

  • Problem after restart of a database used by a database adapter in SOA suite

    We are migration from Oracle interconnect to SOA suite. I am a bit worried that I am taking a backwards step in robust drift. I restarted a Oracle database that is used as an end point in both interconnect and SOA. In both cases the database adapter in interconnect and the partner link in SOA start throwing java error messages. This is not the problem, what worries me is that with Interconnect restarting the database adapter allows queued messages to be written to the database, nothing goes missing. But with SOA suite the messages that could not be delivered before restarting SOA suite end as "canceled" that is to say they do NOT get completed. What happened to guaranteed transaction delivery? or am i missing something.

    Hi,
    The JNDI Name to use for the service connection is "eis/DB/soademoDatabase".
    This Database is a requirement of the course... (Chapter 4 of Getting Started with Oracle SOA Suite 11g R1 - A Hands-On Tutorial).

  • Reading MS Access Database file with database adapter in soa

    I have an .MDB file on another machine that i want to read from within SOA composite using database adapter. can i do that ? how ?

    Have you checked out the jdbc-odbc bridge from Sun?  I would think you should be able to create a jdbc connection to Microsoft Access.  With that connection, you would then be able to create a jndi entry on the DB adapter from SOA.  I haven't used this before, so I'm not sure how well, or even if it would work.

  • BPEL Database Adapter "Faulted while invoking operation.." --where to look?

    Hi,
    I hope that someone can assist me. Occassionally in production a database adapter step will fault. On the BPEL Console flow diagram for the step I can see "Faulted while invoking operation XXXXX on provider YYYYY". The step retries, but the fault never appears to resolve.
    The database being accessed is available and I am able to perform the same query manually. Only a reboot appears to solve the problem.
    Where do I look to see the cause of this fault? I have looked in the following log but cannot see anything either related to the adapter, flow or flow id. Should I look anywhere else?
    Thanks - Anit

    Hi,
    Below is what the database adapt step shows in the flow diagram. The flow contains several other database adapter accesses prior to this, to the same database, and these completed correctly. I will look in the log file you suggested.
    Faulted while invoking operation "DB_ID_PETICION_MNP" on provider "DB_ID_PETICION_MNP".
    <messages>
    <input>
    <Invoke_Obtener_ID_PETICION_MNP_DB_ID_PETICION_MNP_InputVariable>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="DB_ID_PETICION_MNPInput_msg">
    <DB_ID_PETICION_MNPInput xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/DB_ID_PETICION_MNP">
    <id_pedido_crm>13485201</id_pedido_crm>
    </DB_ID_PETICION_MNPInput>
    </part>
    </Invoke_Obtener_ID_PETICION_MNP_DB_ID_PETICION_MNP_InputVariable>
    </input>
    <fault>
    <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>null</summary>
    </part>
    </bindingFault>
    </fault>
    </messages>
    [FAULT RECOVERY] Schedule retry #1 at "Oct 23, 2009 11:28:39 AM".
    ...same as before. This repeated 4 times.
    Finally rebooted the server, and the adapter completed OK:
    <messages>
    <Invoke_Obtener_ID_PETICION_MNP_DB_ID_PETICION_MNP_InputVariable>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="DB_ID_PETICION_MNPInput_msg">
    <DB_ID_PETICION_MNPInput xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/DB_ID_PETICION_MNP">
    <id_pedido_crm>13485201</id_pedido_crm>
    </DB_ID_PETICION_MNPInput>
    </part>
    </Invoke_Obtener_ID_PETICION_MNP_DB_ID_PETICION_MNP_InputVariable>
    <Invoke_Obtener_ID_PETICION_MNP_DB_ID_PETICION_MNP_OutputVariable>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="response-headers">[]</part>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="DB_ID_PETICION_MNPOutputCollection">
    <DB_ID_PETICION_MNPOutputCollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/DB_ID_PETICION_MNP">
    <DB_ID_PETICION_MNPOutput>
    <ID_PETICION_MNP>13485201-37491</ID_PETICION_MNP>
    </DB_ID_PETICION_MNPOutput>
    </DB_ID_PETICION_MNPOutputCollection>
    </part>
    </Invoke_Obtener_ID_PETICION_MNP_DB_ID_PETICION_MNP_OutputVariable>
    </messages>
    Thanks - Anit

  • BPEL Database Adapter tuning

    I am fetching records from Database using DB Adapter in BPEL. It takes more than 3 seconds. If i execute the same query from toad the time taken is less than a second. In my BPEL process i have used translation.
    Can any one help me in guiding how can i improve the performance.
    I suspect that i need to tune the DB Adapter, Is there any tuning guidelines for tuning DB Adapter.
    Regards
    Vikas

    Hi! i think all of you are very busy... can someone post the tunning guide, i can put it in some webpage to download it, in this way everyone who read this thread will download the guide without posting a message! :-)
    Best Regards and blesses!

  • BPEL Database Adapter Issue

    I am using DB adapter in my bpel for polling purpose. so that if any new entry comes in the db in a specific table it will execute my bpel. and in DB adapter I made configuration for sequence file. but whatever value I enter in the table my sequence file is updated with value "32477". can any body help in this regards.

    Well this happened on the production so we don't really have the scope of testing this again. Also it has not happened before anywhere else. 
    This version is Oracle application Server 10g (10.1.3.5).

  • Parent-Child Join on tables in Database Adapter

    Hi,
    We are doing a join on two tables(T1 and T2) in Database adapter for an Insert operation. There is no Reference Integrity between these two tables in Database, but join is done through bpel database adapter.
    Here is a scenario - when we try to insert a record(parent-child), into these two tables, If there is any data issue in any of the child record, Adapter inserts parent-record, also inserts few child-records it processed before it encountered this data issue and terminates.
    Issue here is , We want this to be transactional, it means, If any of the child record fails adapter should rollback the entire insert operation both from parent and child tables and exit with an error. Instead BPEL inserting half records into child table.
    Is there any parameter I need to set or am I missing anything? Someone please suggest.
    Thanks,
    Phani

    There are a few options I guess.
    1. Add the referential key constraint.
    2. Add custom logic in your BPEL project to compensate for any errors you encounter in your BPEL processes.

  • Database Adapter Connection to EBusiness Suite Issue

    I have a process that creates records in the EBusiness Suite using the BPEL Database Adapter. The adapter calls a single wrapper procedure that internally calls 4 TCA APIs one after the other. There appears to be an USERENV LANG issue during the final api that is called. The LANG needs to be US but the SQL Worksheet in JDeveloper BPEL Designer returns GB which I suspect is the value the adapter has when it connects to the eBusiness Suite.
    How can the value of the LANG be set for the adapter ? My Environment variable for NLS_LANG is set to AMERICAN_AMERICA.WE8ISO8859P1. My various Oracle homes are also set to this value.
    I have also tried FND_GLOBAL.APPS_INITIALIZE procedure to effectively 'log on' to the EBS but this returns an error. The same wrapper package called directly from SQL*Plus works perfectly (where USERENV LANG is US). Solutions welcome !

    The issue was resolved by adding the following to the start of the wrapper procedure:
    EXECUTE IMMEDIATE 'ALTER SESSION SET NLS_LANGUAGE = ''AMERICAN''';

  • Database adapter not returning all the records

    I've taken over a BPEL from a developer who left the organization and have been having an issue during our User Acceptance Testing. We are querying a table that will return the insurance enrollment information for employee's and their dependants. When an employee change plans, or adds people, the old plan is terminated and a new once is created. When this happens there will be two records on the database to show the old plan and the new plan.
    When we run the SQL thru JDEV or SQLDeveloper, the data comes out fine. When we run it through a BPEL Database Adapter we are only getting one of the rows returned.
    I have created a small tester BPEL that is easily modified and deployed to run the same query to try multiple configurations changes within the DBAdapter. What I have found is all the records are returned when the "Return single result set" box on the DBAdapter Wizard is unchecked. When it's checked then it only returns one record for the employees with an old and a new plan.
    Can someone explain what the "Return single result set" option does, and what the impact will be if it's unchecked?

    Hello,
    In same way i am using two parent-child(header-line) tables. they have one to many relationship.
    I want to generate XML which contains multiple line items under a child elements for header elements.
    I have tried it but i am getting only one line under that child item. i am using jdev10.0.3.3.0
    can u help me please.
    -regards
    satyendra

  • Attaching Security policy to Database Adapter

    Hi,
    Can anyone please tell me how can i attach security policy to a database adapter in soa 11g?

    Hi,
    Can anyone please help me how can i attach policy in adapter levels?Suppose if i want to do an encryption in the beginning of the SOA process and finally at the end of process i have to decrypt the data and then insert it to the DB. But i didnt find any way to attach the decryption policy to DBAdapter level.Do we have any option to do it?

Maybe you are looking for