Database adapter for performing sync read of N records at a time

Would anyone have an example and/or documentation related to performing a select operation in a database adapter where the adapter can fetch N number of records at a time? The database adapter would not be an activation agent/point polling for changes to any records, but invoked in the middle of the process. I searched for this in the samples folder and online but found nothing.
Any help would be appreciated.
Thanks.

Hi,
Do you want to know the best way to integrate Oracle BPEL to OTM? Then it's simple webservice call from BPEL using http binding.
If you want to connect to Apps inbound then you can either use DB adapter or JMS adapter or Apps adapter which ever best suites your business requirement.
Rgds,
Mandrita.

Similar Messages

  • Improve Database adapter insert performance

    Hopefully this is an easy question to answer. I'm getting passed to my BPEL over 8,000 records and I need to take those records and then insert them into an Oracle database. I've been trying to tune the insert by using properties like inMemoryOptimization, but the load still takes severl hours. Any suggestions on how to get the Database adapter to perform better or load all 8,000 records at once? thanks in advance.

    Hello.
    8000 records doesn't sound "huge", unless a record is say 1 kB then you have 8 MB, which is a large payload to move around in one piece.
    A DB merge is typically slower than an insert, though you did say you were using an insert.
    If you are inserting each row one at a time that seems like it would be pretty slow.
    Normally the input to a DB adapter insert is a collection (of rows) vs. a single row. If you have been handed 8000 individual rows you can assemble them into a collection with an iteration - tedious in BPEL but works fine.
    Daren

  • JVM Setting for performance as reading zip files.....??

    I am not too familiar with VM options but I noticed that reading from Zip files is pretty process intensive. I am basically searching through zip files to find a file and then taking that inputstream for processing. I am basically looping through the zip file until i match the filename....pretty crazy.
    Anyway, it is somewhat slower than I'd like so I want to see what I can do to increase performance. I am using the following parameters:
    -Xms512m -Xmx1024M -Xss16M -XX:ThreadStackSize=256 -XX:MaxPermSize=256m
    The machine I have is a single P4 3GHZ, ~3GB RAM.
    Do those params look ok?
    Thanks!
    Michael

    intensive. I am basically searching through zip
    files to find a file and then taking that inputstream
    for processing. I am basically looping through the
    zip file until i match the filename....pretty crazy.I think it is pretty I/O intensive...hence slower
    to see what I can do to increase performance. I am
    using the following parameters:
    -Xms512m -Xmx1024M -Xss16M -XX:ThreadStackSize=256
    -XX:MaxPermSize=256m
    Parameters look ok. I am not sure what -XX:ThreadStackSize will do as -Xss also sets the stack size? you can also try to pass -server and keep both Xms and Xmx to 1024 and see if it brings any improvement.
    -BJ

  • FTP Adapter  Sync Read in SOA Suite cluster  giving issues

    Hello All ,
    I am trying to use a FTP Adapter in sync read mode in bpel in clustered environment.
    FTP Adapter has to sync read a file from a remote unix server. And during this the error that comes is file not found.
    ORABPEL-11007
    No Data to process.
    File /o31364629.pdf to be processed was not found or not available or has no content
    Whereas FILE IS THERE IN THE DIRECTORY.
    This issue is coming intermittent . I do have some successful BPEL instances coming up.
    But majorly its failing.
    Now turnign the logs in DEBUG mode said its trying to create some temp file which is unable.
    Caused by: ORABPEL-11440
    Error in writing temp file after getting content.
    Error in writing temp file after getting content for file: o31364629.pdf
    Please ensure 1. the local filesystem has write permission 2. local file system is not full.
    Please see below full log.
    <2009-12-16 10:47:30,970> <INFO> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTPInteraction Created
    <2009-12-16 10:47:30,971> <DEBUG> <LiebertServices.collaxa.cube.ws> <AdapterFramework::Outbound> file:/apps/erikap1/aerikap1/erikap1_SoaSuite/bpel/domains/LiebertServices/tmp/.bpel_Test_FTP_1.0_c904a18cefb4038ec3b754d37b34d2d1.tmp/New_FTP_adap.wsdl [ SynchRead_ptt::SynchRead(Empty,opaque) ] - Starting JCA LocalTransaction
    <2009-12-16 10:47:30,971> <DEBUG> <LiebertServices.collaxa.cube.ws> <AdapterFramework::Outbound> file:/apps/erikap1/aerikap1/erikap1_SoaSuite/bpel/domains/LiebertServices/tmp/.bpel_Test_FTP_1.0_c904a18cefb4038ec3b754d37b34d2d1.tmp/New_FTP_adap.wsdl [ SynchRead_ptt::SynchRead(Empty,opaque) ] - Invoking JCA Outbound Interaction
    <2009-12-16 10:47:30,971> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP outbound adapter interaction invoked : oracle.tip.adapter.ftp.outbound.FTPReadInteractionSpec@17b7cfb
    <2009-12-16 10:47:30,971> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FileInteraction::PROPS ====>{}
    <2009-12-16 10:47:30,972> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> Considering header for filename, output filename from header: o31364629.pdf
    <2009-12-16 10:47:30,972> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> Not Considering header for directory as it is blank
    <2009-12-16 10:47:30,972> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP Agent Determined
    <2009-12-16 10:47:30,972> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTPSource::Local Temp Directory is /ftpdata/elshap1/reach/fileftp/temp_ftp/localhost_LiebertServices_Test_FTP~1.0_/outbound
    <2009-12-16 10:47:30,972> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP Host: dianadb.emrsn.com
    <2009-12-16 10:47:30,972> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP Post: 21
    <2009-12-16 10:47:30,973> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP Username: elsha_p
    <2009-12-16 10:47:30,973> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP Keep Connections: true
    <2009-12-16 10:47:30,973> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> FTP outbound adapter read file interaction invoked.
    <2009-12-16 10:47:30,973> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> Outbound File Adapter received request to read file with parameters: { Directory=, FileName=o31364629.pdf, DeleteFile=false}, headers=[_directory=[], _filename=[o31364629.pdf], _props=[{}]]
    <2009-12-16 10:47:30,974> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> Creating Temp File iwCmE1Jr7hUYMdXRISl0OA== Local Path: /ftpdata/elshap1/reach/fileftp/temp_ftp/localhost_LiebertServices_Test_FTP~1.0_/outbound Remote Dir:
    <2009-12-16 10:47:30,976> <DEBUG> <LiebertServices.collaxa.cube.ws> <File Adapter::Outbound> Calling getContentsAsStream() on FTPAgent: dianadb.emrsn.com: type = FTP, host = dianadb.emrsn.com:21, username = elsha_p
    directory = null, mode = STREAM, fileType = ASCII, maxRetries = 0 Localfile: o31364629.pdf Path: /ftpdata/elshap1/reach/fileftp/temp_ftp/localhost_LiebertServices_Test_FTP~1.0_/outbound/iwCmE1Jr7hUYMdXRISl0OA== Remote Dir:_
    <2009-12-16 10:47:30,982> <ERROR> <LiebertServices.collaxa.cube.ws> <AdapterFramework::Outbound> file:/apps/erikap1/aerikap1/erikap1_SoaSuite/bpel/domains/LiebertServices/tmp/.bpel_Test_FTP_1.0_c904a18cefb4038ec3b754d37b34d2d1.tmp/New_FTP_adap.wsdl [ SynchRead_ptt::SynchRead(Empty,opaque) ] - Could not invoke operation 'SynchRead' against the 'FTP Adapter' due to:
    ORABPEL-11007
    No Data to process.
    File /o31364629.pdf to be processed was not found or not available or has no content
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
         at oracle.tip.adapter.file.outbound.FileReader.readFile(FileReader.java:253)
         at oracle.tip.adapter.file.outbound.FileReader.executeFileRead(FileReader.java:168)
         at oracle.tip.adapter.file.outbound.FileInteraction.executeFileRead(FileInteraction.java:248)
         at oracle.tip.adapter.ftp.outbound.FTPInteraction.execute(FTPInteraction.java:172)
         at oracle.tip.adapter.fw.wsif.jca.WSIFOperation_JCA.executeRequestResponseOperation(WSIFOperation_JCA.java:486)
         at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:479)
         at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:528)
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:285)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:829)
         at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:412)
         at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:199)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3714)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1657)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:220)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:317)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5787)
         at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1089)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:589)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:421)
         at sun.reflect.GeneratedMethodAccessor174.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:141)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:58)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: ORABPEL-11440
    Error in writing temp file after getting content.
    Error in writing temp file after getting content for file: o31364629.pdf
    Please ensure 1. the local filesystem has write permission 2. local file system is not full.
         at oracle.tip.adapter.ftp.inbound.FTPSource.getContents(FTPSource.java:883)
         at oracle.tip.adapter.ftp.inbound.FTPSource.getFileFromSource(FTPSource.java:799)
         at oracle.tip.adapter.file.outbound.FileReader.readFile(FileReader.java:250)
         ... 43 more
    I am using the setting for file adapter to avoid race condition in HA environment.
    Set oracle.tip.adapter.file.controldirpath=/ftpdata/elshap1/reach in pc.properties file
    This is shared folder accesible from both nodes & is given 777 full permission till the folder outbound where the temp fiel is getting created.
    Please let me know if you have any idea on this.
    This is a severe prodcution issue for us.
    thanks in advance.
    --Shivani                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Just want to highlight the below portion in the log listed.
    Caused by: ORABPEL-11440
    Error in writing temp file after getting content.
    Error in writing temp file after getting content for file: o31364629.pdf
    Please ensure 1. the local filesystem has write permission 2. local file system is not full.
         at oracle.tip.adapter.ftp.inbound.FTPSource.getContents(FTPSource.java:883)
         at oracle.tip.adapter.ftp.inbound.FTPSource.getFileFromSource(FTPSource.java:799)
         at oracle.tip.adapter.file.outbound.FileReader.readFile(FileReader.java:250)
         ... 43 more
    Thanks Shivani

  • Database Adapter Logical Delete Not Working....

    Hi,
    I have an issue with the DB Adapter under BPEL GA 10.1.3.1. I'm trying to do a logical delete on a table however the logical delete isn't updating the records to show that they've been processed.
    I've created a simple test case with a 3 column table sitting in Oracle XE DB with the third column containing the logical delete flag. I've created a new process consisting of a DB Adapter partnerlink and a receive. In the logs (below) I can see the Select statement followed by the Update (logical delete) occurring but the Update statement just actually run against the DB. I can copy the update statement and run this through SQL as the same DB user and it updates the records.
    Has anyone seen this before?
    Thanks.
    <2006-11-13 15:06:30,901> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> client acquired
    <2006-11-13 15:06:30,917> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> SELECT A, B, C FROM F_TABLE WHERE (C = ?)
         bind => [IN]
    <2006-11-13 15:06:30,917> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> client acquired
    <2006-11-13 15:06:30,917> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> TX beginTransaction, status=NO_TRANSACTION
    <2006-11-13 15:06:30,917> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> TX Internally starting
    <2006-11-13 15:06:30,917> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> external transaction has begun internally
    <2006-11-13 15:06:30,917> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.DBAdapterConstants isElementFormDefaultQualified> Element is FTABLE namespace is http://xmlns.oracle.com/pcbpel/adapter/db/top/ReadTABLE
    <2006-11-13 15:06:30,933> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.ox.O_XParser parse> Transforming the row(s) [<FTABLE Record A />, <FTABLE Record B />, <FTABLE Record C />] read from the database into xml.
    <2006-11-13 15:06:30,933> <DEBUG> <default.collaxa.cube.activation> <AdapterFramework::Inbound> [Read_TABLE_ptt::receive(FTABLECollection)]Posting inbound JCA message to BPEL Process 'Read_TABLE' receive activity:
    <FTABLECollection xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/ReadTABLE">
    <FTABLE>
    <a>Record</a>
    <b>A</b>
    <c>IN</c>
    </FTABLE>
    <FTABLE>
    <a>Record/a>
    <b>B</b>
    <c>IN</c>
    </FTABLE>
    <FTABLE>
    <a>Record</a>
    <b>C</b>
    <c>IN</c>
    </FTABLE>
    </FTABLECollection>
    <2006-11-13 15:06:30,933> <DEBUG> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Delivery Thread 'JCA-work-instance:Database Adapter-6 performing unsynchronized post() to localhost
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> Begin batch statements
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> UPDATE F_TABLE SET C = ? WHERE ((A = ?) AND (B = ?))
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log>      bind => [OUT, Record, A]
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log>      bind => [OUT, Record, B]
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log>      bind => [OUT, Record, C]
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> End Batch Statements
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> TX commitTransaction, status=STATUS_ACTIVE
    <2006-11-13 15:06:31,073> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> TX Internally committing
    <2006-11-13 15:06:31,323> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> external transaction has committed internally
    <2006-11-13 15:06:31,323> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> client released
    <2006-11-13 15:06:31,323> <DEBUG> <default.collaxa.cube.activation> <AdapterFramework::Inbound> onBatchBegin: Batch 'bpel___localhost_default_Read_TABLE_1_4__1163389596916.ReadTABLE.FTABLE1163394391323' (bpel___localhost_default_Read_TABLE_1_4__1163389596916.ReadTABLE.FTABLE1163394391323) starting...
    <2006-11-13 15:06:31,323> <DEBUG> <default.collaxa.cube.activation> <AdapterFramework::Inbound> onBatchComplete: Batch 'bpel___localhost_default_Read_TABLE_1_4__1163389596916.ReadTABLE.FTABLE1163394391323' (bpel___localhost_default_Read_TABLE_1_4__1163389596916.ReadTABLE.FTABLE1163394391323) has completed - final size = 3
    <2006-11-13 15:06:31,323> <DEBUG> <default.collaxa.cube.activation> <Database Adapter::Inbound> <oracle.tip.adapter.db.TopLinkLogger log> client released
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELExecution::Read_TABLE> entering <scope> at line [no line]
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELExecution::Read_TABLE> entering <scope> at line [no line]
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELExecution::Read_TABLE> entering <sequence> at line 55
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELExecution::Read_TABLE> entering <sequence> at line 55
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELEntryReceiveWMP::Read_TABLE> executing <receive> at line 58
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELEntryReceiveWMP::Read_TABLE> set variable 'Read_TABLE_receive_InputVariable' to be readOnly, payload ref {FTABLECollection=108e2d22815529ac:-3067a9ff:10edf296212:-78da}
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELEntryReceiveWMP::Read_TABLE> variable 'Read_TABLE_receive_InputVariable' content {FTABLECollection=oracle.xml.parser.v2.XMLElement@1303465}
    <2006-11-13 15:06:31,339> <DEBUG> <default.collaxa.cube.engine.bpel> <BPELInvokeWMP::Read_TABLE> executing <invoke> at line 61

    Hi,
    I haven't yet used 10.1.3, but we had a number of issues under 10.1.2.0.2 around caching and upd/ins/del.
    A number of things we changed were
    - set usesBatchWriting to false in oc4j-ra.xml file
    - set identityMap to NoIdentityMap via toplink work bench
    - set should-always-refresh-cache-on-remote,should-disable-cache-hits,should-disable-cache-hits-on-remote to true in toplink mappings.xml file (note this last one is only if toplink was not used to insert the source data).
    Ashley

  • Can we split and fetch the records in Database Adapter

    Hi,
    I designed a Database Adapter to fetch the records from oracle Database. Some time, the Database Adapter need to fetch around 5000, or 10,000 records in single shot. In that case my BPEL process is choking and getting error as
    java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    Could someone help me to resolve this?
    In Database Adapter can we split and fetch the records, if number of records more then 1000.
    ex. First 100 rec as one set and next 100 as 2nd set like this.
    Thank you.

    You can send the records as batches useing the debatching feature of db adapter. Refer documentation for implementation details.

  • 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 Configuration Execute Pure SQL

    Hii
    I have following scenario in my Project.
    I have ERRORCODE Details Table in Database which has following columns.
    1)ERRORCODE VARCHAR2
    2)PRIORITY VARCHAR2
    3)QueueName Varchar2
    I have one web service which takes errorcode as input parameter of string type in which i have to pass values like 1,2,3.
    Web service treated these values as complete one string value but i want it should be treated like seperately.Beacuse i have to pass these values to the query.
    I have configured database adapter for the following query using Execute Pure SQL.
    SELECT DISTINCT QueueName FROM ErrorCodeDetails where priority= (select min (priority) from ErrorCodeDetails where ErrorCode In(#ERRORCODE))
    So can anyone please help me what changes i have to make in this query so the sql query treat the errorcode string value as three different value rather than one single value??
    Thanks in advance.
    Regards,
    Priyanka

    Change the query like this.
    SELECT DISTINCT QueueName FROM ErrorCodeDetails where priority= (select min (priority) from ErrorCodeDetails where ErrorCode In(select csv from xmltable(#ERRORCODE)))
    In case it is required to treat the individual comma separated values in #ERRORCODE as number use the to_number function.
    SELECT DISTINCT QueueName FROM ErrorCodeDetails where priority= (select min (priority) from ErrorCodeDetails where ErrorCode In(select to_number(csv) from xmltable(#ERRORCODE)))
    In case this helps , please mark the answer as correct/helpful.
    Regards.

  • Database adapter returns result different to SQL

    Hi,
    I created Database adapter for master-detail select:
    SELECT DISTINCT t1.INSTANCE_ID, t1.SERVICE_ID, t0.CONFIGURATION_KEY, t0.CONFIGURATION_VALUE, t0.INSTANCE_ID FROM SRVINSTANCECONF t0, SERVICE_INSTANCE t1
    WHERE (((t0.CONFIGURATION_KEY = #key) AND (t1.SERVICE_ID = #serviceID)) AND (t0.INSTANCE_ID = t1.INSTANCE_ID))
    This select in our database return 2 rows. This is what I want.
    But when I call webservice with database adapter this returns 2 master tags but all detail tags. It looks like t0.CONFIGURATION_KEY = #key where condition is not taken into SQL statement.
    Thanks

    pk of detail is t0.CONFIGURATION_VALUE, t0.INSTANCE and row are not duplicated. Problem is that rows are not filtered.
    There are all rows with SERVICE_ID = 2
    INSTANCE_ID, SERVICE_ID, CONFIGURATION_KEY
    3,2,"instanceType"
    3,2,"keyName"
    3,2,"device"
    3,2,"tebs"
    3,2,"size"
    3,2,"imageId"
    3,2,"securityGroups"
    3,2,"dir"
    2,2,"imageId"
    Adapter returns for CONFIGURATION_KEY = "imageId" AND SERVICE_ID = 2 this XML
              <top:ServiceInstanceCollection xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/InstancesConfigurationAdapter">
                   <top:ServiceInstance>
                        <top:instanceId>2</top:instanceId>
                        <top:serviceId>2</top:serviceId>
                        <top:srvinstanceconfCollection>
                             <top:Srvinstanceconf>
                                  <top:configurationKey>imageId</top:configurationKey>
                             </top:Srvinstanceconf>
                        </top:srvinstanceconfCollection>
                   </top:ServiceInstance>
                   <top:ServiceInstance>
                        <top:instanceId>3</top:instanceId>
                        <top:serviceId>2</top:serviceId>
                        <top:srvinstanceconfCollection>
                             <top:Srvinstanceconf>
                                  <top:configurationKey>instanceType</top:configurationKey>
                             </top:Srvinstanceconf>
                             <top:Srvinstanceconf>
                                  <top:configurationKey>securityGroups</top:configurationKey>
                             </top:Srvinstanceconf>
                             <top:Srvinstanceconf>
                                  <top:configurationKey>size</top:configurationKey>
                             </top:Srvinstanceconf>
                             <top:Srvinstanceconf>
                                  <top:configurationKey>dir</top:configurationKey>
                             </top:Srvinstanceconf>
                             <top:Srvinstanceconf>
                                  <top:configurationKey>imageId</top:configurationKey>
                             </top:Srvinstanceconf>
                             <top:Srvinstanceconf>
                                  <top:configurationKey>tebs</top:configurationKey>
                             </top:Srvinstanceconf>
                             <top:Srvinstanceconf>
                                  <top:configurationKey>keyName</top:configurationKey>
                             </top:Srvinstanceconf>
                             <top:Srvinstanceconf>
                                  <top:configurationKey>device</top:configurationKey>
                             </top:Srvinstanceconf>
                        </top:srvinstanceconfCollection>
                   </top:ServiceInstance>
              </top:ServiceInstanceCollection>

  • BPEL 10.1.2.0.2 with JBOSS deployment descriptor of database adapter

    We use Oracle BPEL Process Manager 10.1.2.0.2 with JBOSS v3.2.6 . In our BPEL processes we use also the DatabaseAdapter.
    We deploy our processe manually with obant, because we are only able to access our productiv-system about putty(ssh).
    For that we have to manually adapt our DatabaseConnectionData,which were created on our development enviroment, in the apropriate wsdl files.
    On our productiv-system we see in the domain-log files following lines:
    <2006-11-08 04:52:44,465> <INFO> <condis.collaxa.cube.ws> <AdapterFramework::Outbound>
    file:/opt/etmn/jboss_bpel/domains/condis/tmp/.bpel_WF_Notifikation_1.0.jar/SetFaultedWS.wsdl [ SetFaultedWS_ptt::SetFaultedWS(InputParameters) ] - Using JCA Connection Pool -
    max size = <unbounded>
    <2006-11-08 04:52:44,468> <WARN> <condis.collaxa.cube.ws> <AdapterFramework::Outbound>
    file:/opt/etmn/jboss_bpel/domains/condis/tmp/.bpel_WF_Notifikation_1.0.jar/SetFaultedWS.wsdl [ SetFaultedWS_ptt::SetFaultedWS(InputParameters) ] - JNDI lookup of
    'java:/eis/DB/DBL_WFMODUL' failed due to: DBL_WFMODUL not bound
    <2006-11-08 04:52:44,469> <INFO> <condis.collaxa.cube.ws> <AdapterFramework::Outbound> Since unable to locate the JCA Resource Adapter deployed at 'java:/eis/DB/DBL_WFMODUL',
    will then attempt to instantiate ManagedConnectionFactory oracle.tip.adapter.db.DBManagedConnectionFactory directly.
    After some reading in the "Adapters UserGuide" you can find some lines about necessary configuration of the "deployment descriptor of the database adapter"
    concerning the "<jca:address location=..." used in the apropriate wsdl files:
    The adapter service WSDL refers to the run-time connection configured in the
    deployment descriptor of the database adapter. (In Oracle Application Server, it is
    oc4j-ra.xml). The relevant code example for the service WSDL follows:
    <jca:address location="eis/DB/DBL_WFMODUL" UIConnectionName="DBL_WFMODUL"
    ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory"
    The questions are now:
    What is the apropriate file for the "deployment descriptor of the database adapter" for Oracle BPEL Process Manager 10.1.2.0.2 with JBOSS 3.2.6 ??
    Exist there a description for that?
    What are really the consequences if you configure the "deployment descriptor of the database adapter" or not ?

    Hi Martin,
    Thanks for sharing valuable information of bpel install .
    We are stuck installing bpel pm 10.1.2.0.2 on linux from past one week ,can u plz help us in giving some pointers.
    We downloaded mrca utility from otn and tried to upload the repository into 10g database but we got "ultra search schema not found" error and few other errors.
    Can we use any 10g database or is there any version that we need to use.Can you plz specify the database version that u used for ur install.
    Then we tried to create a repository while installing Oracle Application Server 10.1.2.0.2(J2EE and Web Cache with new OID), which creates a new dbase with a repository loaded into it.
    we tried to run the ldap search command to get the encrypted password but failed to execute that command successfully.finally we tried to change orabpel pwd with alter command. And when we finally started with BPEL PM install and pointed to the above AS home it didnt recognize it and giving error as "plz point to the appropriate Application Server(AS) home and it cant find the AS home in folder in which we specified."
    Can u plz help us and give some pointers in resolving our issues.
    Thanks a lot in advance.
    Vandana.

  • Database Adapter: exposing multiple operations using one PartnerLink

    Hi,
    I use the Database Adapter for accessing stored procedures in a package.
    Using the wizard, I am able to specify a PartnerLink for one procedure in my package. However, the same package (my 'business service') contains multiple procedures I want to expose and call, preferably via the same PartnerLink.
    Is this possible?
    If so, what is the best strategy, e.g. use the wizard multiple times and merge the resulting wsdl files?
    Thanks, Sjoerd

    How do you do that?
    I specifically want to Poll a table, with the wizard it doesn't give you any options to edit the query, I suppose you go into the generated files and edit the query that way?
    As it happens I have actually worked around my specific issue using XSLT functions, I was actaully trying to convert DB2 JD Edwards dates using this table lookup) but once I understood how the date format is stored it was simple enough to do in XSLT.
    However I'm still interested to know how this is done as I may have another requirement that requires SQL joining to the same table twice.
    Regards
    Stuart

  • Database adapter not returning error immediately in table space error.

    Hi,
    In my BPEL process I have an invoke activity to call Database adapter for a PL/SQL procedure invocation.
    The adapter received TABLESPACE error. The wiered thing is the error response we got after 3 hours? I am expecting immediately.
    How do I need to configure this?
    Here is more about my process.
    My BPEL process is an asynchronous process. Before and after the database adapter call I have a java embeded activity with checkpoint();
    retryIntervalValue is 60.
    Is there any thing I have to specify? Why it is taking 3 hours? is there a way to reduce this?
    -- Khaleel

    Hi. Is this still a problem or is it solved? As far as I know how BPEL works this can not really take 3 hours before erroring. You are the one that knows the application best so you can check some things. Maybe the time reported is from the database machine on which time is set different from BPEL machine? What database are you using? Is it Oracle? I guess so. What version? I assume the BPEL repository is in different database from DB Adapter? Can you confirm that checkpoint() is really done? What error is exactly thrown from DB Adapter? How does your BPEL process start? Is it adapter-driven and is the process XA-Transacted? In that case the whole process could be in retry for a longer period of time.
    Regards,
    Jos Baan

  • Strategies for performance.

    Hi Folks,
    wondering if any data available on posible strategies for benchmarking perfomance of Oracle Portal. Some kinda of data sheet, ???
    SKD

    <p>The 'Performance and Sizing'<a> section on OTN would be a good start.
    <BR>
    <P>Metalink has a nice document about how to use Grinder for performance testing.

  • Table for Measuring point Reading.

    Dear Experts,
    Please guide where can I find the database table for measuring point reading values namely READC which is a part of RIMR0 structure, for using in developemts.
    Regards
    Jogeswara Rao

    hi
    check in IMRG table, you can find the values in SI unit . convert the same using Functional module. consult with your technical team
    regards
    thyagarajan

  • DB adapter for MSQL?

    Is it availible an database adapter for Microsoft SQL server? We have both MSQL version 6 and 7.

    The JDBC adapter alread exist but this a custom development from Oracle Consulting.
    I think that your Oracle representative can ask for it through the internal oracle globalexchange site
    Hope this help

Maybe you are looking for