Polling table with Database Adapter

Hi All,
I have created a Database Adapter to poll the table for the new record or modified.
I have added a receive activity to that Adapter and deployed.
However the instance is not completing and its in always running state and waiting at receive activity.
Can you please help me out
Thanks

hello,
i have to do database polling..this is wat i have done.but instance is not getting created in BPEL..
i have created a sequence in databse.
i have created a source table in database which has three colums id,name,sequence.(generated by doin seq.nextval)
i have created a table as seqhelper table which has two fields table_name and seqid.
now i hav dragged a db adapter.I hav chosen poll,update seq table..and given my seq table name,seqname filed as table_name,seqvalue field as seqid.and sequence fiels ad sequence column of source table ...and done polling frequency as 5 seconds.
now created a bpel process,chosen interface as based on wsdl and selected db adapters wsdl file and linked to bpel after removing the default exposed service of bpel..so bpel as one receive activity joined to db adapter...
WHEN<
i am inserting any new records to source table....instance is not getting created...please help..

Similar Messages

  • Oracle SOA Suite 10.1.3.4 Polling database table with Database Adapter

    We are trying to use the database adapter to poll for new and changed data in a database. To do that we try to use a sequencing table on an external database. But for that we need to specify the data-source name for the external sequencing table. Where do we need to define this data-source? We have tried with data-source defined in the Enterprise Manager, but it's not right. Also tried with the name of database connection in JDeveloper, still not working.
    Any ideas?

    Hi,
    If you are trying to understand how to create a connection pool for a data source, then this document might be helpful
    http://blogs.oracle.com/fusionmiddlewarereallife/soa_11g_bpel_composite_and_database_adapter.html

  • Intermittence for execute Polling with DataBase Adapter in OSB11g

    Hello Guys,
    I'm having a problem running the polling DataBase Adapter OSB11g. The creation of the adapter was made in Jdeveloper 11.
    The problem is:
    Intermittence to run the polling DataBase. Sometimes it works, other time it does not work.
    Displays the following exception:
    *<Info> <JCA_FRAMEWORK_AND_ADAPTER> <BEA-000000> <<oracle.tip.adapter.db.InboundWork handleException> BINDING.JCA-11624*
    DBActivationSpec Polling Exception.
    *Query name: [BD_XPTO_NOTIFICA_XPTOSelect], Descriptor name: [BD_XPTO_NOTIFICA_PRICING.XPTO]. Polling the database for events failed on this iteration.*
    Caused by JTS transaction was marked rollback only.
    This exception is considered retriable, likely due to a communication failure.  Polling will be attempted again next polling interval.
    This is a BUG? Have Fix?
    Tks,
    Azevedo, Artur.

    It looks like a database issue or a XA configuration issue? What database you're polling? Oracle? Sybase? Check if your database is supported...
    Cheers,
    Vlad

  • 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.

  • Can I use polling frequency for Database Adapter

    I need to use Database Adapter that acts like FileAdapter. Can I set polling frequency for my Database Adapter, so that the adapter can query every 5 secs?

    You can use polling feature when you configure your DB adapter Operation Type as "Poll for New or Changed Records in Table"
    If you use Adapter configuration wizard it will promot for "Pollling Options" and Polling Frequency is the option which you can configure in seconds, mins or hrs

  • Problem with database adapter on plsql procedure with in/out parameters

    running BPEL 10.1.3.1 and using the database adapter on a plsql procedure with in/out parameters I get errors
    the plsql procedure:
    create or replace procedure proc_with_clob_inout_parameter(
    p_string in varchar2,
    p_clob in out clob)
    is
    begin
    p_clob := p_string;
    end proc_with_clob_inout_parameter;
    In BPEL I call this procedure. When I only assign a value to the p_string parameters (in a BPEL assign) all is well. When I also assign a value to the p_clob parameter the error occurs:
    <part name="summary">
    <summary>
    file:/ora1/app/oracle/as101.3/bpel/domains/digitaaldossier/tmp/.bpel_janb_inout_1.0_f6908ccf864581b7265c362444e88075.tmp/twee.wsdl
    [ twee_ptt::twee(InputParameters,OutputParameters) ] - WSIF JCA Execute of
    operation 'twee' failed due to: Error while trying to prepare and execute
    an API.
    An error occurred while preparing and executing the
    JANB.PROC_WITH_CLOB_PARAMETER2 API. Cause: java.sql.SQLException: Parameter
    Type Conflict [Caused by: Parameter Type Conflict]
    ; nested exception is:
    ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the
    JANB.PROC_WITH_CLOB_INOUT_PARAMETER API. Cause: java.sql.SQLException: Parameter
    Type Conflict [Caused by: Parameter Type Conflict]
    Check to ensure that the API is defined in the database and that the
    parameters match the signature of the API. Contact oracle support if error
    is not fixable.
    </summary>
    </part>
    In BPEL 10.1.2.0 this isn't a problem. I tested it against a 10.2.0.1 and a 10.2.0.2 database and in both situations I get the error with BPEL 10.1.3.1 and no error with BPEL 10.1.2.0
    it appears to be a problem in the database adapter...
    anyone with the same problems and/or a solution?

    Not of any use to you, but we had exactly the same problem on Friday when we applied AS 10.1.2.2 Patchset on top of BPEL 10.1.2.0.2.
    The clob in our pl/sql proc wan't declared as in/out but for some reasons JDeveloper had created a clob on the Output Parameter type in the db partner link xsd. I removed this and it worked. This code had been untouched , and working fine, for months.
    I'll be raising an SR today.
    Rob J

  • Error with Database adapter

              Hi All,
    I am using a database adapter to write values to database.The build was successful.However when i test it in the console with the sameple input I am getting the below error.
    ERROR:
    java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: Client received SOAP Fault from server : Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: JCA Binding Component connection issue. JCA Binding Component is unable to create an outbound JCA (CCI) connection. NGW_PP_DBAdapter:Write_DB_Adapter [ Write_DB_Adapter_ptt::insert(StgProductportfolioCollection) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: BINDING.JCA-12510 JCA Resource Adapter location error. Unable to locate the JCA Resource Adapter via .jca binding file element <connection-factory/> The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/DB_Conn'. The reason for this is most likely that either 1) the Resource Adapters RAR file has not been deployed successfully to the WebLogic Application server or 2) the '<jndi-name>' element in weblogic-ra.xml has not been set to eis/DB/DB_Conn. In the last case you will have to add a new WebLogic JCA connection factory (deploy a RAR). Please correct this and then restart the Application Server Please make sure that the JCA connection factory and any dependent connection factories have been configured with a sufficient limit for max connections. Please also make sure that the physical connection to the backend EIS is available and the backend itself is accepting connections. ". The invoked JCA adapter raised a resource exception.
    Can anyone help me out to fix this error.
    Thanks in advance.

    From the error it is clear that your composite is not able to find the DB jndi.The JCA Binding Component is unable to startup the Resource Adapter specified in the <connection-factory/> element: location='eis/DB/DB_Conn'.
    Please follow these steps:
    1) Have u created DB jndi eis/DB/DB_Conn that you are using on weblogic console.
    2) After creating did you redeploy the DB adapter on weblogic console.
    3) If you have done above 2 steps cross check your jndi exists in ur DB adapter or not on weblogic console.
    That could only be the possible reasons for the error you are getting.
    Hope this helps.
    Regards,
    Karan
    Oracle Fusion Middleware Blog

  • 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.

  • Can we access the e-business apps schema with database adapter

    Hi..
    can we access the tables/views/api's in apps schema using database adapter. Generally we access it using oracle apps adapter.
    Thank you,
    Dan.

    Hi Dan,
    As mentioned by the other user, you can very well use the db adapter as APPS Schema user to connect to any APPS instance.
    This is the reason why you have the connection navigator in JDev not differentiating much for APPS adapter connection and db connection listed.
    However, having said that I would still prefer using APPS JCA Adapter for APPS instance and DB adapter for databases.
    Regards
    A

  • Compatibility of PostgreSQL database with Database Adapter OSB 10.3.1

    Hello,
    I'm having problems configuring a Database Adapter for a PostgreSQL database in OSB 10.3.1. Someone knows if this adapter supports PostgreSQL databases?
    Thank you,
    Regards
    Héctor

    I doubt. Drivers/DB support is at http://download.oracle.com/docs/cd/E11036_01/integrate.1013/b28994/adptr_db.htm#BDCIIDAE
    Manoj
    Edited by: mneelapu on Aug 18, 2009 4:18 PM

  • How to set polling interval for database adapter in interconnect?help plz!!

    Hi
    i have 4 database adapters with same name subscribing to same event in 4 different interconnect instances(i.e., same business event and application event in different hubs) and pointing to same source application database , same destination application database.
    source application database have one oai bridge schema.When a message has to be sent,message will be enqueued in messageobjecttable.This message can be taken by 4 databse adapters.and send to 4hubs then 4 messages will be sent to destination application instead of single message.
    To avoid this,I want to set database polling interval in 4 adapters sych a way that if one adapter take message in MESSAGEOBJECT TABLE,the other three adapters don't pick same message.
    this way i can avoid redundacy at destination application.Please reply soon
    Thanks

    You would seem to have an extremely unusual use case for interconnect. The whole purpose of Interconnect is to concentrate the message processing into one hub and distribute the message to those applications interested in it. The use of 4 hubs from one application is probably not supported for precisely the reasons you are having trouble. Can you give us more details of your use case?
    I am not sure that adjusting the polling interval for the different adapters will help. Since at some point you will get a collision where 2 or more adapters poll at the same time.

  • Multiple messages enqueuing into one table using Database Adapter

    Hi All,
    I am trying to fetch records from one table and insert into another table in the same database using two DB adapters each for one function.When trying for one record,it is working fine.But for more than one records using for-each loop I am unable to insert the records into the table.Can anyone suggest any solution.
    For DB Adapter 1 and 2 I am selecting "Perform an operation on a Table".
    Options being selected in case of both adapters:-
    DB Adapter1-'select' and DB Adapter2- 'Insert'
    Regards,
    Niva Das

    Do not know the exact implementation how you have done but this is what you can do to narrow down the issue.
    you can check out the instance to know whether you are able to fetch multiple records from the first table.
    If that works fine then you can check the transformation whether  the data is getting transformed in to correct format.
    If that too works fine check out whether the invocation to second db adapter is fine or not.

  • Create a table with database details

    I have to create a table which has DBName, FileName, FileSize and FileType of a database(DB1)

    do you mean this?
    INSERT INTO YourTable (DBName,FileName,FileSize,FileType)
    SELECT DB_NAME(),physical_name,size,CASE WHEN type=0 THEN 'Data' ELSE 'Log' END
    FROM sys.database_files
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • OSB with database adapter using stored procedure

    Hi All,
    We have a following requirement, in OSB while using the DB adapter with stored procedure.
    1) the store procedure has custome datatype as inout parameter
    2) send reference cursor as input to stored procedure
    Can you please let me know how to do this.
    Thanks,
    Vinoth

    Please go through below links -
    Section "9.7 Stored Procedure and Function Support" of Tech Adapter user guide - http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_db.htm#CHDFBBCD
    http://blogs.oracle.com/middleware/2010/05/using_jca_adapter_with_osb_11113.html
    Regards,
    Anuj

  • Query a remote table with Database Links

    How do database links work with ODP.NET? The following code produces an "ORA-02041: client database did not begin a transaction" error on the Fill method.
    SQL (in acme instance):
    CREATE DATABASE LINK sales.hq.acme.com
    CONNECT TO scott IDENTIFIED BY tiger
    USING 'sales'
    VB .NET:
    Dim cn As New OracleConnection("Data Source=acme;User ID=scott;Password=tiger;")
    Dim da As New OracleDataAdapter("SELECT * FROM [email protected]", cn)
    Dim ds As New DataSet
    da.Fill(ds, "RemoteEmp")

    Just read running procedure on remote db???
    Changed first line to
    Dim cn As New OracleConnection("Data Source=acme;User ID=scott;Password=tiger;Enlist=false")
    and it works now.
    That's what I get for searching the forum instead of browsing.

Maybe you are looking for