Updaing 2 schema's in 1 db = non-emulated datasource

When updating two databases from within a single tx, you must use a non-emulated datasource (i.e. JTA support is required).
Is this true of updating two database schema's (same database) in the same tx as well ? The Oracle documentation seems not to discuss this.
Regards,
Manoj.

Manoj -- My apologies. I misread the question. If you reference another schema but only use a single data source definition then it is a 1 PC. You only need to configure 2 PC if you will be creating transactions across two different data sources and you want true 2 PC semantics. In fact, I'm not sure if in the pure Oracle database view of the world you wouldn't have to do the same thing but it has just been a while since I looked at that. Don't forget that you can also use basic database mechanisms like synonyms and views to reference the other schema.
Thanks -- Jeff

Similar Messages

  • Configuring Non-emulated dataSources

    I have try to configure a non-emulated data source because my emulated data source complains about open connections (see earlier posting), but when I start up the server it throws an exception:
    DataSource logwriter activated...
    java.lang.ClassCastException: oracle.jdbc.pool.OracleXAConnectionCacheImpl
    at com.evermind.server.Application.initDataSource(Application.java:1360)
    at com.evermind.server.Application.initDataSources(Application.java:1842
    at com.evermind.server.Application.preInit(Application.java:388)
    at com.evermind.server.Application.setConfig(Application.java:126)
    at com.evermind.server.Application.setConfig(Application.java:111)
    at com.evermind.server.ApplicationServer.initializeApplications(Applicat
    ionServer.java:1316)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.jav
    a:1087)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLa
    uncher.java:65)
    at java.lang.Thread.run(Thread.java:484)
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:47)
    My data-sources.xml file contains the following:
    <?xml version="1.0" standalone='yes'?>
    <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
         <data-source
              class="com.evermind.sql.OrionCMTDataSource"
              name="OracleDS"
              location="jdbc/OracleCMTDS1"          
              connection-driver="oracle.jdbc.driver.OracleDriver"
              username="sym"
              password="drive"
              url="jdbc:oracle:thin:@eureka:1521:sym"
              inactivity-timeout="30"          
         />
    </data-sources>
    Also in the example in the spec no ejb-location or xa-location is defined for the non-emulated data source, are these required.
    My bean transactions are container managed.
    Thanks in advance

    Hi Paul,
    What's an "emulated data source"?
    The only things I changed in the "data-sources.xml" file were the "username",
    "password" and "url" attributes -- and I am using the default "data-sources.xml"
    file that came with my copy of OC4J version 1.0.2.2 (which I run on a
    SUN Solaris 7 with Oracle 8.1.7.2)
    Despite the portability claims, I don't think that Weblogic apps can
    be ported unmodified to OC4J.
    Unfortunately I can't offer anything else because of the lack of information
    you have supplied. What environment are you using and what are you trying
    to do?
    Currently I have successfully deployed and executed a J2EE application
    (to OC4J -- version details above), consisting of a java client that
    modifies the database via a BMP entity bean.
    I can only suggest that you look at the following web sites which
    may give you some more insight into how to develop, deploy and execute
    J2EE applications using OC4J (not in any particular order):
    http://www.atlassian.com
    http://www.orionserver.com
    http://www.orionsupport.com
    http://www.elephantwalker.com
    Good Luck,
    Avi.

  • Can SOA consume business events using non-apps datasource ?

    Hi Gurus & Experts,
    We have a scenario where EBS raises custom business event to be consumed by SOA.
    Everything works fine using APPS login, however we need to non-apps datasource in some environements (custom schema user)
    Can SOA consume business events using non-apps datasource ?
    Please let me know.
    Thanks,
    Rev

    Hi Srini,
    Even i have a similar requirement . Could you please send me the link for OracleEBSAdapterUserGuide(b_28351). ?
    Did you come to know how to check whether WF_Listener is running ?
    Thanks in advance
    Nutan

  • Is it possible to change the owning schema when generating datetime dimensions in the datasource?

    When creating a date time dimension using the dimension wizard and generate schema wizard, i would like to be able to change the owning schema from dbo to something else. The field is greyed out and I am unable to change it.
    Is it possible to change the owning schema when generating datetime dimensions in the datasource?

    Hi rkbjr,
    Thank you for your question.  
    I am currently looking into this issue and will give you an update as soon as possible. 
    Thank you for your understanding and support. 
    Thanks,
    Bin Long
    TechNet Subscriber Support
    If you are TechNet Subscription user and have
    any feedback on our support quality, please send your feedback here.
    Bin Long
    TechNet Community Support

  • Concept: How can I handle a hole in a non-sap datasource?

    Hello,
    I want to discuss here a problem with non-sap datasource:
    We load data from oracle db with db-connect technique. Each record we load has an idate(record is created) and a udate(record is changed). Based on the udate we create a kind of delta load:
    The udate is selection criteria of the Infopackage(full upload)
    In the start routine of the transferrule we detect the oldest udate and store it to the tvarc table. This UDATE is the low selection criteria for udate of the next load. So we reload only the records, which are change after the last load.
    The data are transferred to ODS (overwrite) and so on..
    That works perfect!
    But now we find out, that in this non-sap datasource it’s possible to delete records directly. In SAP we have usually the procedure that a reversal document is created to delete a record(for example FI documents). In fact this non-sap datasource creates a hole in the database. A record is deleted – > no udate change -> no change in BW. That means the record is still in BW!
    Do you had a similar problem? Or do you have an idea how we could fix this problem.
    I can not load all data every day by full upload – that needs to much time more than 2 million data from five different datasources….
    Thank you for your attention
    Ralf

    Hello,
    To close my post, here is my solution:
    - ODS A is filled by delta using the UDATE field.
    - ODS B is filled by full upload. It contents only the key fields of ODS A (load needs
      only 20 minutes)
    - ODS C is filled by ODS A(only key fields) per full upload. In the startroutine of the
      update rule is a check: Delete all data, which are in ODS B.
      Result is: ODS C contents only the data, which have to be deleted in ODS A.
    - Full upload ODS C to ODS A. Set in the start routine recordmode to 'R'.
      Result is: these records are delete from the ODS A and change log of ODS A is
      updated.
    Before the next load the content of ODS B and C is deleted.
    (cool picture:)
    ..........CUBE X
    ..............|
    .(delta)....|
    ..............|........ODS C(diff. A - B)
    ..............|........|....|
    ..............|..(R).|....|.\  (check)
    ..............|........|....|..\
    ............ODS A....ODS B(keys)
    .(delta)...|................| (full)
    ..........non sap systems
    It's followed the principle of Sudhi's idea. But I did it not with PSA, because I have five different DataSources, so I need five calls to identify the records, which have to be deleted and five calls to edit the PSA ....
    In this way I load everything in ODS and do the procedure only once time.
    All the best Ralf

  • Creating a non transaction datasource

    All,
    I am using Quartz to fire Hibernate Jobs. Quartz Scheduler runs as a servlet in tomcat, the Hibernate job is a standalone app.
    The Scheduler calls the app like so:
    Quartz>Shell>Hibernate.
    When I start the Hibernate jobs, they instantly go into a blocked state, basically db dealocks. When view the connections with
    mysql admin, I can see the connections are sleep!
    I heard thru the grapevine that a non-transactional datasource would solve this problem.
    How do I do this? Is it done in tomcat, or do I need to change my hibernate db connection?
    Any ideas?

    You're deadlocking with another process - quite possibly with one of your earlier tasks that stalled for some reason.
    Turning off transactions is a dumb way to fix this - it avoids you finding out what the real problem is, thus curing the symptom but probably not the disease. Find out what's deadlocking and why, then fix that problem properly.

  • Emulated or non emulated data source ?

    Hi All,
    We are in the process of moving our application code from JDBC to Toplink. As we are in this process , the application code is a mixture of Toplink and JDBC calls (some individual method also mixture ). We are using External Transaction Controller for Toplink. Now I am just wondering if Emulated data source is good enough or should I go for Non-emulated data source for this situation.Can some one guide me on this. We have some connection pooling issues like connections reached max and Time Out exception..etc
    Giri.

    More to add to the above issue:
    I have a method which executes some JDBC and toplink calls in a loop . Toplink calls are releasing connections to the pools but JDBC call are not releasing connections to the pool.Both connections use the same data source.
    Giri.

  • Non-JTS datasource

    Dumb questions. What is the exact definition of 'non-JTS datasource'? And what are the recommended usages of the datasource? The TopLink's doc has little information on it. It says "Use Non-JTS for Specify if the session requires a non-JTS connection. Note: Normally, use this option for an application server when using cache synchronization".
    We use WAS connection pooling with Oracle databases. Some projects use 'XA datasource' while others use 'non-XA datasource'. In the sessions xml files, we all use <datasource> tag.
    What are the differences b/w the 'non-JTS datasource' referenced in TopLink and the 'non-XA datasource' concept?
    Also, I was told that all datasources in WAS 5.x are JTS datasources. I haven't found any information on it in the WAS documentations. Anyone has any more info on it?
    Thanks a lot for your assistance.
    Haiwei

    Andrei,
    I tried what you suggested, with WAS XA and non-XA datasource. Here is the code:             UserTransaction transaction = (UserTransaction) new InitialContext().lookup(USER_TRANSACTION);
                transaction.begin();
                connection = ((DataSource) new InitialContext().lookup(NON_XA_DATASOURCE)).getConnection("user04", "user04");
                statement = connection.createStatement();
                numberOfRows =
                    statement.executeUpdate(
                        "UPDATE USER04.PERSON SET VERSION = VERSION +1 WHERE  ID = '9999'");
                connection.commit();
                transaction.rollback();With XA datasource or non-XA datasource, I was both getting exception (see below), hence the version is not updated.
    java.sql.SQLException: DSRA9350E: Operation Connection.commit is not allowed during a global transactionThis seems to suggest (or confirm) that the WAS datasources are JTS datasources.
    Any comment?
    Haiwie

  • BC4J with non-SQL datasource

    Hi
    Is it possible to use BC4J with non-SQL, non-relational datasources? For example, we are exploring the possibility of using a file-based XML datastore (NOT the XDB) as the back-end for some ADF screens.
    Thanks,
    Sean

    BC4J is designed for SQL databases.
    http://www.oracle.com/technology/products/jdev/collateral/tutorials/903/j2ee_bc4j/prnt/j2ee_bc4j.html#bc4j-faq

  • Websphere 5.0 and non-jts-datasource = 2PC exception!

    Hello all
    We're migrating from a working weblogic 8 app to websphere 5.0, and we run into this problem.
    Toplink tries to enlist the NON-JTS datasource in the global transaction. In weblogic we defined our non-jts datasource as a non-transactional datasource, but there is no such option in websphere. What is going on??
    Please help
    TIA
    - Russ -

    Hello Rustam,
    WebSphere 5 throws exceptions when you try to get a non-jta datasource while in a transaction - it seems to try to enlist it in the transaction I think.
    This is more a WebSphere issue, since it means you cannot read outside of the transaction.
    There are 3 options:
    1) Don't define a non-jta datasource at all in TopLink. Draw backs to this are that there may be problems reading when there is no transaction, such as when you are using cache synch.
    2) Create your own datasource (outside of WebSphere) and place it in JNDI. Then have TopLink access it as a non-jta datasource. Your datasource must be completely independent of WebSphere so that it does not attempt to associate with JTA.
    3) Use a TopLink maintained read connetion pool. You can use the non-jts-connection-url sessions.xml tag, which will use the login setting defined in your project.xml. I've not tested it, but can also override the read pool in a preLogin event that should look something like:
    public void preLogin(SessionEvent event) {
    DatabaseLogin dbLogin(new Oracle9iPlatform());
    dbLogin.setUserName("name");
    dbLogin.setPassword("password");
    dbLogin.setConnectionString("jdbc:oracle:thin:@ip:port:sid");
    ConnectionPool readPool = new ReadConnectionPool("read", dbLogin, minCon, maxCon, event.getSession());
    event.getSession().setReadConnectionPool(readPool);
    Best Regards,
    Chris Delahunt

  • Non-jdbc datasource for MapViewer

    Is it possible to specify a non-jdbc datasource for Oracle MapViewer?
    That is, if I want Mapviewer to access the database through my own data layer, or with an ORM, is it possible?
    Thanks,
    Rupesh

    I copied jdbcdrv.zip intp C:\Program Files\Sybase\SQL
    Anywhere 9\java
    and using Java page in CF admin, added C:\Program
    Files\Sybase\SQL Anywhere 9\java to classpath, restarted CF
    Application server.
    I then defined new datasources using existing ODBC dsns as
    described in
    http://www.ianywhere.com/developer/product_manuals/sqlanywhere/0902/en/html/dbpgen9/000001 52.htm
    (doesn't seem kosher but that's what my model showed).
    It's not exactly speedy but I've not gotten any errors yet
    (maybe because it isn't speedy)
    Anybody have any idea if there is another way that doesn't
    use anODBC dsn ?

  • Schema browser not available on non-Oracle databases

    You can't utilize Schema Browser with SQL Server and neither can you drag a SQL server object onto the worksheet
    3.2.2
    Let us know the plan

    The SQL Server DnD support from the tree is logged as a bug.
    There are no plans to support the Schema Browser for non-Oracle platforms.

  • JDev 9.0.3.3 Data not saved to DB when using Non-Transaction DataSource

    Hi,
    Env: JDev 9.0.3.3/WL 6.0 sp1/Oracle 8i
    We have successfully deployed our application in 3-tier(remote mode) in JDev 9.0.3.2. using JClient, EO/VO, EJB Session Facade (BMT).
    Now we are planning to use JDev 9.0.3.3 (build 1205)
    We are using ejb.txn.type=local and Weblogic DataSource(non-txn).
    In JDev 9033, after commit the data is not getting saved to DB. No errors in the log below.
    This works fine in JDev 9032.
    This does not work with simple Master Detail and also with single row simple form.
    ==========================================
    [281] BaseSQLBuilder Executing DML ... (Update)
    [282] Executing DML...
    [283] UPDATE CISDBA.DCX_BASE_COST_V BaseCost SET ITEM_STAT=?,TID=? WHERE PART_NUM=? AND MY=?
    [284] cStmt = conn.prepareCall(" UPDATE CISDBA.DCX_BASE_COST_V BaseCost SET ITEM_STAT=?,TID=? WHERE PART_NUM=? AND MY=?"); // JBO-JDBC-INTERACT
    [285] cStmt.setObject(1, new BigDecimal((double) 2.0)); /*ItemStat*/ // JBO-JDBC-INTERACT
    [286] cStmt.setObject(2, "t2733bx"); /*Tid*/ // JBO-JDBC-INTERACT
    [287] cStmt.setObject(3, "04782612AA"); /*PartNum*/ // JBO-JDBC-INTERACT
    [288] cStmt.setObject(4, "2004"); /*My*/ // JBO-JDBC-INTERACT
    [289] cStmt.execute(); // JBO-JDBC-INTERACT
    [290] cStmt.close(); // JBO-JDBC-INTERACT
    BaseCostImpl: after doDML
    BaseCostImpl: End of doDML()...
    BaseCostInvestCost VO before postChanges...
    this.getWhereClause(): null
    isDirty() before executeQuery...
    this.getWhereClause(): null
    isDirty() after executeQuery...
    BaseCostInvestCost VO before postChanges...
    this.getWhereClause(): null
    isDirty() before executeQuery...
    this.getWhereClause(): null
    isDirty() after executeQuery...
    [291] BaseSQLBuilder: releaseSavepoint 'BO_SP' ignored
    [292] BaseSQLBuilder: setSavepoint 'BO_SP' ignored
    BaseCostInvestCost VO before postChanges...
    this.getWhereClause(): null
    isDirty() before executeQuery...
    this.getWhereClause(): null
    isDirty() after executeQuery...
    BaseCostInvestCost VO before postChanges...
    this.getWhereClause(): null
    isDirty() before executeQuery...
    this.getWhereClause(): null
    isDirty() after executeQuery...
    [293] BaseSQLBuilder: releaseSavepoint 'BO_SP' ignored
    [294] EJBTxnHandler: Commited txn
    [BaseCostInvestCostViewImpl.afterCommit] Enter
    [295] BaseCostInvestCostView2 notify COMMIT ...
    [BaseCostInvestCostViewImpl.afterCommit] Exit
    [BaseCostInvestCostViewImpl.afterCommit] Enter
    [296] BaseCostInvestCostView1 notify COMMIT ...
    [BaseCostInvestCostViewImpl.afterCommit] Exit
    [297] SubDept2SubProgView1 notify COMMIT ...
    [298] InvSubDeptLOV1 notify COMMIT ...
    [299] SubProg2SubDeptView1 notify COMMIT ...
    [300] SubProgramLOV1 notify COMMIT ...
    [301] StdCostView1 notify COMMIT ...
    [302] AltCostView1 notify COMMIT ...
    [303] PlantCodeView1 notify COMMIT ...
    [304] PaperCarView1 notify COMMIT ...
    [305] InvestCostItemView1 notify COMMIT ...
    [306] SavedSearchView1 notify COMMIT ...
    [307] AltCostView1_BaseInvestToAltViewLink_AltCostView notify COMMIT ...
    [308] InvestCostItemView1_BaseInvestToInvestItemViewLink_InvestCostItemView notify COMMIT ...
    [309] PaperCarView_BaseCostTrackedVehicleViewLink_PaperCarView notify COMMIT ...
    [310] VehicleProgramLOV1 notify COMMIT ...
    [311] SubDeptLOV1 notify COMMIT ...
    [312] Transaction timeout set to 28800 secs
    [313] [NavigationEvent: BaseCostInvestCostView1 From 0 to 1]
    [314] Column count: 14
    [315] ViewObject : Reusing defined prepared Statement
    [316] Binding param 1: 769661
    [317] Binding param 2: 2004
    [318] [RangeRefreshEvent: AltCostView1 start=-1 count=0]
    [319] Column count: 13
    [320] ViewObject : Reusing defined prepared Statement
    [321] Binding param 1: 769661
    [322] [RangeRefreshEvent: PaperCarView1 start=0 count=6]
    [323] Column count: 4
    [324] ViewObject : Reusing defined prepared Statement
    [325] Binding param 1: INV37
    [326] [RangeRefreshEvent: InvestCostItemView1 start=0 count=1]
    [327] [NavigationEvent: AltCostView1 From -1 to -1]
    [328] [NavigationEvent: PaperCarView1 From -1 to 0]
    [329] [NavigationEvent: InvestCostItemView1 From -1 to 0]
    ========================================================

    Hi Carsten,
    I tried to reproduce your problem, but couldn't. Let me explain what steps I executed and perhaps you can advise where I've not matched your steps.
    --Using build jdeveloper 9.0.3.3.1203, I built a new bc4j project containing a dept-emp default bc4j project (deptEntity, empEntity, deptView, empView, deptempFKAssoc, deptempFKViewLink, ApplicationModule).
    --In dos shell, I went to the directory \jdevdir\jdev\bin and ran setvars -go to set the correct jdk version
    --In the dos shell, in the directory \jdevdir\j2ee\home I executed the following command to install oc4j:
    java -jar oc4j.jar (defaults pswd to welcome for admin)
    --I remoted the appmodule to EJB Session Bean (BMT) and created a new deployment profile using the 9ias configuration for the application module.
    --I deployed the bc4j objects to oc4j
    --I created a new project
    --In this project I created a new jclient master-detail form using the above project's application module for the data model
    --I saved all and compiled the jclient project
    --I ran the jclient form and inserted a master record
    --I committed the transaction successfully
    --I browsed records, then edited a record
    --I committed the transaction successfully, then browsed.
    Is there something I've missed? Did you migrate your project and not start by creating a new project? Is there something special about the database schema you are using?
    Thanks,
    Amy

  • Error in using XA and Non-XA datasource at same time

    I think this case may be a little complicated:
    there are two actual databases, for example, A is for service/biz, and B is for data archiving. system run the archiving service once a day, we decided to use JTA to ensure that no records would be lost while any exceptions encountered on each side. we create two XADatasouces for A and B. And there is an existed Non-XADatasource in weblogic that be used by general business. it's Database A actually. make a summary:
    Two actually databases :
    A , B
    Three DataSources in Weblogic :
    Non-XA-DS , XA-DS1 - > refer to Database A, the business DB
    XA-DS2 - > refer to Database B, the archiving DB
    And the archiving code like this:
    try{
    UserTransaction.begin;
    fetch Data from XA-DS1;
    record logs to Non-XA-DS;
    save Data to XA-DS2;
    UserTransaction.end;
    }catch(){
    UserTransaction.rollback;
    }finally{
    release resources;
    look at the bold lines. it work well if remove the "*record logs to Non-XA-DS*". but if enable the logs features it will throw out an exception with message " cannot call commit of connection in a distributed transaction". It's weird, that Non-XA-DS is not a XADatasource and I also disabled the Global Transaction Support of the datasource. As i think . that UserTransaction would not manage a DS indicated not support JTA. is that correct? And how can I resolve this problems
    Edited by: 985707 on Feb 2, 2013 6:31 AM

    Actually it may work with pdnsd if you run it on 127.0.0.3:
    /etc/resolv.conf
    nameserver 127.0.0.3
    nameserver 127.0.0.1
    nameserver 127.0.0.2
    /etc/pdnsd.conf
    global {
    server_ip = 127.0.0.3;
    /etc/conf.d/dnscrypt-proxy
    DNSCRYPT_LOCALIP=127.0.0.1
    /usr/lib/systemd/system/dnscrypt-proxy.service
    [Unit]
    Before=pdnsd.service

  • Non Cumulative Datasource -  Initialization Indicator/flag

    Hi all,
      I've read in one of the documentation for Non cumulative keyigures (eg, stock handling) that the flag which indicates the datasource as Initialization datasource comes from OLTP.
      Which is that field?
    In a flat file datasource, this option is available  but
    how to do the same with OLTP datasource.
    I want to create a generic datasource for the purpose.
    How will I indicate that this datasource is to be used for initialization so that the infopackage will have
    "Create Opening Balance" option.
    regards
    Anoop

    Hi Klaus,
      Thanks for the reply. Infact, I've found out this myself after some research and I saw your reply when I was posting this question.
      Will there be any other settings required other than this field. What are the consequences of changing this value in the table directly?
    regs
    Anoop

Maybe you are looking for

  • Apex 3.2 on 11g with EPG on Localhost - IE 8 browser running very slow.

    I've just upgraded my development DB to 11gV2 but can't cut over to APEX4.0 yet as the production environment still needs to be upgraded(backward compatibility issues). New SETUP APEX 3.2 11g setup on localhost EPG IE8 runs very very slow Firefox run

  • How do I get Address Book work with iCal and imail?

    I've used ACT! for years and I have not found a reasonable Mac alternative.  imail, ical and address book are great, but they don't play together.  Any suggestions?

  • Error during STMS configuration

    I had perform a system copy with different system ID from the source system successfully. I encounter some problem during the STMS configuration. I already set all the configuration for the target system but when I tried to transport one configuratio

  • How to set Debugging level FINEST in the different OS environment

    Hi All, Please help me out to get system logs with debugging mode set as FINEST. I want to know how to get system logs finest. Is there any xml configuration in root folder? Please help me out to get the logs for different environments like windows o

  • Enable Storeage Location MRP settings in MRP4 View

    Hi Experts, I need your help very urgent! How can I enable the Storage Location MRP settings in MRP4 View? I think it should be somewhere in the spro. Thank you for your help! Artashes