Three database or multiple Database adapters in One Composite

Hi All,
I have below requirement:
1) I have two applications A and B.I am integrating them with SOA.I have to recieve data from A and update that data into application B for different Device IDs.
I am using one database adapter(insert operation) to recieve the data from A and insert that data into a staging table.(I have to hold on to the data into a table for 24 hrs and update the whole data into B at the ene of the day.)
BPEL-1 : Application A --- > Staging table(insert DB Adapter) (for every half an hour interval in that day)
That data(two request schema example) would be like below:
1) <devID> 345 </devID>
<Con>45</devId>
2) <devID> 343 </devID>
<Con>45</devId>
I will get the above schema for evry interval for dfifferent devIds. I am inserting the data into only one staging table even though the data would be for different device IDs.
After inserting the data for 24 hrs in the staging table,I have to use Application B WSDL url to update data into B.
I am using two Database adapters(one for each deviceId) for selecting the data for two device IDS and inserting into Application B.
BPEL-2:DB adapter(Select operation-- Staging table which has the data for this deviceID 345) ----------> application B WSDL
BPEL-3 : DB adapter(Select operation-- Staging table which has the data for this deviceIDs 343) ----------> application B WSDL
As of now after entering the data for couple of intervals for two deviceIDs,I am getting instances for BPEL-1 and after BPEL-2 which is for device ID 345.
But I am not getting instances for BPEL-3 which is for device ID 343.
Can I use three DB adapters(one for Insert,two for selecting the data from same table?
Why I am not able to update the data related to device Id 343 into B.?
Please guide me on this.

Hi Arik,
I am using seperate DB adapters (for each operation of insert(for any device ID),Select(for device ID1),Select(for Device ID 2) etc.
I have created seperate BPEL processes for above each operation as every device should be in seperate request.
Where do u want me to commit?
As of now, after u said I have set the Unit of wrok value as true in all _db.jca files.
Please find the below jca files for each operation:
Insert operation:
<adapter-config name="InsertWinamrData" adapter="Database Adapter" wsdlLocation="InsertWinamrData.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/DB/SOADB" UIConnectionName="SOADB" adapterRef=""/>
<endpoint-interaction portType="InsertWinamrData_ptt" operation="insert">
<interaction-spec className="oracle.tip.adapter.db.DBWriteInteractionSpec">
<property name="DescriptorName" value="InsertWinamrData.Imdreading"/>
<property name="DmlType" value="insert"/>
<property name="MappingsMetaDataURL" value="InsertWinamrData-or-mappings.xml"/>
<property name="DetectOmissions" value="true"/>
<property name="GetActiveUnitOfWork" value="true"/>
</interaction-spec>
</endpoint-interaction>
</adapter-config>
Select ope on one device ID:
<adapter-config name="GetIMDReadingIntoMDM" adapter="Database Adapter" wsdlLocation="GetIMDReadingIntoMDM.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/DB/SOADB" UIConnectionName="SOADB" adapterRef=""/>
<endpoint-activation portType="GetIMDReadingIntoMDM_ptt" operation="receive">
<activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
<property name="DescriptorName" value="GetIMDReadingIntoMDM.Imdreading"/>
<property name="QueryName" value="GetIMDReadingIntoMDMSelect"/>
<property name="MappingsMetaDataURL" value="GetIMDReadingIntoMDM-or-mappings.xml"/>
<property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
<property name="MarkReadColumn" value="READSTATUS"/>
<property name="MarkReadValue" value="YES"/>
<property name="MarkUnreadValue" value="NO"/>
<property name="PollingInterval" value="240"/>
<property name="MaxRaiseSize" value="4"/>
<property name="MaxTransactionSize" value="8"/>
<property name="NumberOfThreads" value="1"/>
<property name="ReturnSingleResultSet" value="false"/>
<property name="EnableStreaming" value="false"/>
<property name="GetActiveUnitOfWork" value="false"/>
</activation-spec>
</endpoint-activation>
</adapter-config>
seldct of other device ID:
<adapter-config name="GetIDMReadingIntoOne" adapter="Database Adapter" wsdlLocation="GetIDMReadingIntoOne.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/DB/SOADB" UIConnectionName="SOADB" adapterRef=""/>
<endpoint-activation portType="GetIDMReadingIntoOne_ptt" operation="receive">
<activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
<property name="DescriptorName" value="GetIDMReadingIntoOne.Imdreading"/>
<property name="QueryName" value="GetIDMReadingIntoOneSelect"/>
<property name="MappingsMetaDataURL" value="GetIDMReadingIntoOne-or-mappings.xml"/>
<property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
<property name="MarkReadColumn" value="READSTATUS"/>
<property name="MarkReadValue" value="YES"/>
<property name="MarkUnreadValue" value="NO"/>
<property name="PollingInterval" value="360"/>
<property name="MaxRaiseSize" value="4"/>
<property name="MaxTransactionSize" value="8"/>
<property name="NumberOfThreads" value="1"/>
<property name="ReturnSingleResultSet" value="false"/>
<property name="GetActiveUnitOfWork" value="false"/>
</activation-spec>
</endpoint-activation>
</adapter-config>
Please guide me on this.
Edited by: 899283 on Nov 25, 2012 10:27 PM

Similar Messages

  • Determining wether to implement on a single database or multiple databases.

    Good Day Mentors,
    Our company will be migrating from 2004B to 8.81. We currently have 2 databases. We wanted to know what are the things to consider before choosing wether to go one or multiple database. We are in F&B. The 2 databases purchase and sell the same items for most of the inventory.
    I've already checked these links:
    [Merge multiple separate companies (databases) into one]
    [Re: Multiple companies in one database vs. multiple databases]
    [Re: Setting up two companies on one database]
    After reading those posts, I've listed these questions(this I'll be asking the users/management):
    1.) Are the 2 databases, 2 business/legal entities?
    2.) Is the Tax files separately for each subsidiary/company?
    3.) Are the reports(P/L, balance sheet, etc) usually consolidated?
    4.) Is it ok that the people can see all the BP's, GL accounts, Pricelists etc?
    Are there till things I need to ask the management in order to make a wise decision on the matter?
    Are there still pros/cons I need to raise up?
    Thanks in advance!
    Sean Yu

    Hello,
    1.) Are the 2 databases, 2 business/legal entities?
    It will 2 business /Legal entities when you have registered your company in two different tax registration no.(PAN)
    2.) Is the Tax files separately for each subsidiary/company?
    Totally depend on how you registered your company in tax department .means if you have saparate tax reg no then it might be.
    3.) Are the reports(P/L, balance sheet, etc) usually consolidated?
    this option in optional it may be or may not be .
    4.) Is it ok that the people can see all the BP's, GL accounts, Pricelists etc?
    No, because data will very huge then user become confuse at the time of data entry(but we have solution for same without SDK)
    Means totally depend that both company register in same tax no or two different tax no.
    Thanks
    Manvendra Singh Niranjan

  • Multiple companies in one database vs. multiple databases

    Our company is going through an SAP B1 implementation.  We develop\manage shopping centers, each their own lega entity, etc.  To somewhat protect the financials, bank accounts, etc of each entity, we set each company up with its own database.  We are currently up to 22 databases.  Initially our consolidation plan relied on reports; however, the administration of the databases is more of a challenge than expected.
    Does anyone have a feel for the pros\cons of consolidating these companies into one "segmented" database?
    Thanks

    If you have multiple legal entities / companies, I would rather recommend that you create multiple databases within the SAP Business One server. This will let you manage different users, layouts, Chart of Accounts (CoA), Business Partner codes and a host of other items that would be very difficult to do if you tried to lump them all into one company.
    Of course, having to work at some form of consolidation reporting is no easy task, but I would suggest you try to standardise your CoA for all the other 22 companies as so they have the same headers / Account titles. This way, you can at least try a very basic report where you generate a TB from each company and pass it to Excel, and then work at some form of macro to draw / consol the 22 Trial Balance reports into one master copy.
    If you have SDK access, you could try doing it via SDK or maybe look at other partners with consol add on's like http://www.citixsys.com/

  • How to set Default database when multiple databases are residing in same server.

    I am using solaris and 9i version.
    Can you please provide me the steps.
    i have selected the O/S category, you did not see that?
    Rgds,
    G. Rajakumar.

    In the home directory of the user you log in as, there should be a file called .profile or .cshrc or possibly .login depending on your O/S. I believe that Solaris has .cshrc, but I don't use Solaris. You should be able to see it using
    ls -lat
    You need to add a line to this something like
    export ORACLE_SID=<<yoursid>> or
    ORACLE_SID=<<yoursid>> ; export ORACLE_SID or
    setenv ORACLE_SID=<<yoursid>>
    There is probably a similar line there already which you can just modify. The change will take effect the next time you log in.
    HTH
    John

  • 1 user license access multiple database

    Hi all...
    I have a question :
    In SAP B1 8.8, can 1 user license (for 1 physical user) access multiple databases?
    Multiple database is created for Head Office and Branches.
    Since Finance Accounting Manager is centralized at Head Office, so the Manager must have access to multiple databases.
    Can only 1 user license applied to this Finance Accounting Manager?
    Regards,

    Hi Ingrid,
    Finance/Logistic/CRM Limited will perform as professional user license in the multiple db accessing in one server except  the functionality authorization. You must make sure that all the users that use the Finance/Logistic/CRM Limited license have the same user code in the dbs
    JimM
    <ultra - said it once>

  • Multiple BPEL processes polling one inbound directory ?

    Hi All-
    Somewhere it mentioned that :
    "Multiple BPEL processes or multiple file adapters polling one inbound directory are not supported. Ensure that all are polling their own unique directory."
    Is this issue still there in 10.1.3.3.0?
    Please advice.
    Regards,
    Sreejit

    Hi,
    I have one directory say c:/files and I have two BPEL process accessing this folder say BPELA and BPELB.
    BPELA looking for the file with pattern file_A*.xml
    BPELB looking for the file with pattern file_B*.xml
    Still this phrase *"Multiple file adapters polling one inbound directory are not supported. Ensure that each is polling its own unique directory."* is a problem?
    Please advice.
    Regards,
    Sreejit

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

  • Multiple databases in one file: a small snafu

    Hello everyone,
    Opening multiple databases in a single file is an administrative convenience. It is well explained in the manual (see db/docs/ref/am/opensub.html). Normally, there is little difference between databases in their own physical files or grouped together in a single physical file. There is one small sentence in the manual that says the following:
    (begin fragment)
    However, since multiple databases in a file exist in a single physical file, opening two databases in the same file simultaneously requires locking be enabled unless all of the handles are read-only. As the locks for the two databases can only conflict during page allocation, this additional locking is unlikely to affect performance.
    (end fragment).
    I didn't pay attention to it, except the "unlikely to affect performance" part which told me that I wasn't to worry about it. The sun was shining. Life was good.
    And I was wrong. It was one of those "epic bug quests" I had to embark on, only to realise that it may not be a BDB bug, but my carelessnes. Nevertheless, I'm left with an uneasy feeling which I would like to explain here.
    Consider BDB configured as a concurrent data store.
    There are 2 threads. The first thread has the following pseudocode:
    cursor1 = db1->cursor(...)
    while(cursor1->c_get(... DB_NEXT...))
    // 1
    cursor2 = db2->cursor(...)
    while(cursor2->c_get(... DB_NEXT...))
    The second thread does only the following:
    db3->put(...)
    db1, db2 and db3 are all distinct databases. All cursors are read-only (the cursor implicitly used in db3->put is of course a write cursor).
    While the first thread is running, the second thread executes db3->put(...) at "//1".
    Question: what happens?
    Answer 1: if db1, db2 and db3 reside in different physical files, nothing special happens. Everything proceeds as it should.
    Answer 2: if db1, db2 and db3 reside in the same physical file, both threads block "sometimes".
    The "sometimes" used here means "when the put operation in thread 2 needs to allocate a new page".
    Reading the BDB source code is extraordinarily difficult (which says more about my limitations than about the clarity of the code) but here is what happens, as far as I could determine:
    (thread 1) cursor1 needs and acquires a read lock on db1
    (thread 2) db3->put needs a write lock on db2 to allocate a new page. Since db2 is in the same physical file as db1 and thread 1 already has a read lock, thread 2 waits until the read lock is released. Thread 2 blocks.
    (thread 1) cursor 2 needs a read lock on db3. For some reason, BDB detects that the another thread is waiting for a write lock on the physical file, and thread 1 blocks.
    Both threads block waiting on each other to complete.
    I suppose the system is the way it is to avoid starvation, but there you have it: be careful when you're lumping together multiple databases in one file!
    Anyone who can clarify or confirm this is welcome.
    Vincent

    I had experienced a similar problem. I run multiple process. Each one of them starts a transaction that does db->put and db->pget to its own database (which also has a secondary index). When each database is in a separate physical file there is no problem but when I put all databases in a single file the processes start to dead-lock.
    The following combination of options solved the deadlocking problem:
    - use serializable isolation level instead of snapshot, i.e. do not pass DB_TXN_SNAPSHOT to txn_begin
    - do not pass the DB_NO_WAIT option to txn_begin
    - use Btree instead of a Hash
    Hope that helps.

  • Add multiple users to a certain database in the SQL server in one go

    I wonder if there is any method to add multiple users to a certain database in the SQL server in one go and without using transact code.
    I can add a single user to a certain database “Q” for example by right click on the user “U1” for example then properties then in user mapping tab select
    the database “Q”, so there should be a method to add multiple users ( U1,U2,U3…) to this database?
    Best Regards,
    Ahmad

    Many thanks Visakh16,
    I can do this using the below script, but what I am searching for is do to this without any scripting.
    USE TestDatabase; --Make sure you have the right database
    DECLARE @sql VARCHAR(MAX) = '';
    SELECT @sql = @sql + 'CREATE USER ' + name + ' FOR LOGIN ' + name + ';
    ' +
    'GRANT CREATE TABLE, CREATE PROCEDURE, CREATE VIEW, VIEW DEFINITION TO ' + name + ';
    FROM sys.server_principals p
    WHERE p.type in ('S','U') -- SQL Logins and Windows Login. Do not change!
    and p.name in ('U1','U2','U3'); -- List of names to add. alter to suit
    PRINT @sql; -- Show the statements being executed in the messages pane
    EXEC(@sql); -- Run the statements that have been built
    Thanks,
    Ahmad

  • Multiple databases in one single RAC cluster

    Hi, I would like to know if one can have multiple databases running on a single RAC cluster, we have several databases in our shop and would like to consolidate all of them into a single 3-4 node RAC cluster running databases with 10.2 and 11.1 versions.
    I am newbie to RAC and would like to get some clarification if anyone has done this, google search comes up with few hits on this topic, so obviously this is not doable.
    In our case we have one database supporting critical applications and few other not so critical but are used very extensively between 9-5, so what is the use of RAC if I cannot consolidate all my databases into one cluster, or if I need a separate cluster for each of these critical databases?
    I have been all the Oracle docs that keep repeating one database multiple instances and one instance-one machine-one node, they don't even advise running multiple instances on a single node?.
    I appreciate any insight.
    Thanks.

    ora-sql-dba wrote:
    Can you give more details on how you would setup multiple databases running different versions on a single RAC cluster, I am yet to find any documentation that supports or even elaborates on this topic.You can configure a cluster with 12 nodes. Then, using dbca, configure a dev instance for nodes 1 and 2, a prod1 instance for nodes 3 to 6 and a prod2 instance for nodes 7 to 12.
    You also can configure each of these instances for all 12 nodes. And use it on all 12 nodes.
    Or, after configuring it for all 12 nodes, you can start the dev instance on nodes 1 and 2, prod1 on 3 - 6 and prod2 on the remaining nodes. If dev needs more power, you can for example shutdown prod2 on node 12 and start another dev instance there.
    My issue is with the 2nd option - running more than one instance on the same node or server. Why? Each instance has a basic resource footprint ito shared memory needed, system processes required (like db writer, log writer, sys monitor) etc. It does not make sense to pay for that same footprint more than once on a server. Each time you do, you need to reduce the amount of resources that can be used by each instance.
    So instead of using (for example) 60% of that server's memory as the SGA for a single instance, if you use 2 instances on that server you now have to reduce the SGA of each to 30% of system memory. Effectively crippling those instances by 50% - they will now have smaller buffer caches, require more physical I/O and be more limited in what they can do.
    So unless you have very sound technical reasons for running more than one instance on a server (RAC or non-RAC), do not.

  • Multiple databases in one Environment

    I am tryiing to figure out the best way to implement my JE environment. My use case requires that I be able to use UNIX tools like 'cp' to move JE databases from place of generation (development) to place of consumption (production). Moreover, each JE database stores very different data and has different refresh cycles (ex., one of them may be refreshed every week, another may be refreshed once a month, etc.)
    My dilemma is:
    1)- Should I use one env w/multiple databases, or,
    2)- A separate env for each database?
    With (1), I can't see a way of selectively updating one of the databases and copying over the changed JE log files to production servers (for read-only access at runtime). Every time I want to update one database, I'm thinking I'll have to pull down all JE log files, update the DB and push out all JE log files to production servers.
    (2) seems to go against the guidelines I've seen in this forum, viz., one env per process is more efficient.
    Thoughts/experiences/comments are welcome.
    Thanks

    Hi,
    What Charles suggested is the best approach if you need to avoid the performance issues with having multiple environments in a single process (you mention that you've read about them elsewhere on the forum). Please also be aware that we're working to solve those problems in an upcoming release. So if you prefer, you can implement your application using multiple environments now, and expect that the performance issues will be resolved later. This might make sense if your deployment will be small at first, and performance will not be a big issue right away.
    Mark

  • Multiple SAP systems on One database

    Hello,
    We are planing to install multiple SAP systems like SM, ERP on one database with multiple DB SIDs, it means each SAP system has its own Oracle instance. We know MCOD has only one DB SID (one oracle instance) for multiple SAP systems.
    Is it possible to set up the landscape like this? Is it supported by SAP?
    Can any body advice?
    Thanks,
    Kris

    >
    Kris wrote:
    > Thanks Markus,
    >
    > But we want to install one DBMS home for all oracle instances for different SAP components. Is it possible?
    >
    >
    > Thanks,
    > Kris
    Technically, it is possible.
    But SAP Does NOT support it. The only method to install one set of binaries (one ORACLE_HOME) that is supported by SAP is to use MCOD (all components are installed in one Database)

  • Multiple Databases in one Business Area?

    Can I put multiple databases into the same Business Area?
    The crux of the problem is as follows: I am migrating data from one database to another. There will be a period of dual running, whilst the products are migrated.
    I want to be able to write reports that compare the data between the two databases, and show me the discrepancies.
    Oh one of the databases is not Oracle, so using a db link is not an option.
    null

    Can I put multiple databases into the same Business Area?
    The crux of the problem is as follows: I am migrating data from one database to another. There will be a period of dual running, whilst the products are migrated.
    I want to be able to write reports that compare the data between the two databases, and show me the discrepancies.
    Oh one of the databases is not Oracle, so using a db link is not an option.
    null

  • One Application Multiple Databases

    Hello Friends,
    I am developing application using Struts and Hibernate. I is a web application. Now i want to do one functionality that is some what like..
    Suppose "My_Appp" is my application. I have 1,2,3,4 clients or users. Now I want to maintain seperate database for an individual user. Suppose 1 login's he will be directed to his database and when 2 login's he will be directed to his own database but I want to deploy Only and Only one .war file for all the Users. Means One Interface and Multiple databases. Is this possible using Hibenate and Struts. I anybody know, Please help me?
    Thanks and Regards
    Dagadu Akambe
    Pune, India

    I wouldn't recommend this. Why wouldn't you try to put a 'user' table to the database and let user xy only work on his entities?
    The other solution would be, using different aliases, but imo this has the same nasty effect.
    The only way using more than one database is, imo, if different data is stored in different databases.
    I'm sorry this post isn't answering your questions, but there is surely an easier solution.
    reagards
    slowfly

  • Can we link one application instance with multiple databases ?

    We have R12.1.1 and db is 11.1.0.7 on redhat 5.3 ( 64 bit).
    Can we link one application instance ( apps / , inst / ) with multiple database ( db / ),
    is this possible ?
    if yes how ?

    >
    Can we link one application instance ( apps / , inst / ) with multiple database ( db / ),
    is this possible ?
    No. You cant link application tier with more than one database.
    Similar query already answered by Hussein in detail in the forum :Re: Multiple instances, single Apps tier Please check that for more details
    -Rk

Maybe you are looking for

  • Keyboard issue

    Hello, I have an HP Pavilion dv6-3180sp running Win7 64, and this is what happened to me today: while I was multi-tabling at a poker room, my computer suddenly went off. I restarted and got a warning saying that the computer switched off due to overh

  • How can I backup my iPhoto to Google Drive?

    I have Mac Book Pro I new to reinstall the OS for this. I want to Backup my picture. Its too many cant burn on DVD. I think I can backup on Google Drive. Any easy way to add picturesto google drive???

  • How to hide an iView from a User w

    Hello Experts. Is there any way to hide an iView from some group of people? Fox example, we have a role (Role A) containing a page containing the iView (Role->Page->iView) and we want to hide this iView for users that don't have some another role or

  • Table where service PO and PR details will be avilable

    Hi All, In which table does details(like service master number,quantity,gross price and unit) of service PR and PO will sit. Thanks in advance Pavan

  • Functionality of transaction VK16

    Hi Can some one explain the functionality of transaction :VK16-Create Condition with Reference.It will be great if anyone could share associated document of how to use this transaction. This is an urgent requirement..Awaiting your earliest comments.