Deferred constraints and transaction

          Hello.
          Let me explain my problem:
          1. I have table TBL_BASE in database Oracle with one column - ID (Primary Key)
          2. I have several entity bean with CMP which mapped to according tables in database,
          all of which has foreign key to TBL_BASE.ID.
          3. All FK constraints is DEFERRABLE, INITIALY DEFERRED.
          4. All methods in entity are marked as REQUIRED transaction.
          5. In ejbRemove method I try to remove the record from TBL_BASE first - I must
          be able do that because I have not committed transactio
          The problem is I receive error - that I cant do that because Foreign Key violation.
          It's look like that WebLogic try call commit on exit of method ejbRemove before
          real delete identity from database.
          

          Sorry.
          I found the issue. The problem was that I used DataSource in the ejbRemove. I
          change it ot TXDataSource and everything are working now. Thank you.
          "Yuriy Kuzmenko" <[email protected]> wrote:
          >
          >Hello.
          >Let me explain my problem:
          >1. I have table TBL_BASE in database Oracle with one column - ID (Primary
          >Key)
          >2. I have several entity bean with CMP which mapped to according tables
          >in database,
          >all of which has foreign key to TBL_BASE.ID.
          >3. All FK constraints is DEFERRABLE, INITIALY DEFERRED.
          >4. All methods in entity are marked as REQUIRED transaction.
          >5. In ejbRemove method I try to remove the record from TBL_BASE first
          >- I must
          >be able do that because I have not committed transactio
          >
          >The problem is I receive error - that I cant do that because Foreign
          >Key violation.
          >It's look like that WebLogic try call commit on exit of method ejbRemove
          >before
          >real delete identity from database.
          >
          

Similar Messages

  • Reporting exceptions on deferred constraints

    Is it possible to report exceptions on deferred constraints? I am using this mechanism to load tables in an arbitrary order and to prevent FK violations whilst loading.
    As a starting point, the script below works as expected (enabling and disabling):
    CREATE TABLE EXCEPTIONS
    ( ROW_ID ROWID
    , OWNER VARCHAR2(30)
    , TABLE_NAME VARCHAR2(30)
    , CONSTRAINT VARCHAR2(30)
    CREATE TABLE EMP( ENAME VARCHAR2(10));
    ALTER TABLE EMP ADD CONSTRAINT EMP_UK UNIQUE (ENAME) DEFERRABLE;
    ALTER TABLE EMP DISABLE CONSTRAINT EMP_UK;
    INSERT INTO EMP VALUES ('SMITH');
    INSERT INTO EMP VALUES ('SMITH');
    ALTER TABLE EMP ENABLE CONSTRAINT EMP_UK EXCEPTIONS INTO EXCEPTIONS;
    SELECT * FROM EXCEPTIONS;
    However, I don't want to disable constraints, because the application may be performing DML in another session.
    So in the script below I'm deferring the constraints instead of disabling them. But how can I report the constraint violations in this scenario?
    CREATE TABLE EXCEPTIONS
    ( ROW_ID ROWID
    , OWNER VARCHAR2(30)
    , TABLE_NAME VARCHAR2(30)
    , CONSTRAINT VARCHAR2(30)
    CREATE TABLE EMP( ENAME VARCHAR2(10));
    ALTER TABLE EMP ADD CONSTRAINT EMP_UK UNIQUE (ENAME) DEFERRABLE;
    ALTER SESSION SET CONSTRAINTS=DEFERRED;
    INSERT INTO EMP VALUES ('SMITH');
    INSERT INTO EMP VALUES ('SMITH');
    -- Which statement goes here to report constraint violations?
    SELECT * FROM EXCEPTIONS;
    The statement:
    SET CONSTRAINTS ALL IMMEDIATE;
    will validate deferred constraints and result in a SQL Error: ORA-00001: unique constraint (SCOTT.EMP_UK) violated
    But this does not tell me the rows.
    The statement:
    ALTER TABLE EMP ENABLE CONSTRAINT EMP_UK EXCEPTIONS INTO EXCEPTIONS;
    results in the following error, and no rows in the exceptions table:
    SQL Error: ORA-02091: transaction rolled back
    ORA-00001: unique constraint (SCOTT.EMP_UK) violated
    Is there any way to report the violations?
    At the end, I'd like to report ALL violating rows to the user.
    The best I can come up with is, for each constraint perform:
    SET CONSTRAINT EMP_UK IMMEDIATE;
    and in the exception handler explicitly query for duplicates in the table:
    SELECT ENAME FROM EMP GROUP BY ENAME HAVING COUNT(*) > 1;
    I hope there is a better way.

    I believe this will not be usable in a scenario in which the tables are loaded in the "wrong" order. The database will only be consistent after all tables have been loaded. Using DML error logging will produce false errors. Please correct me if I'm wrong.

  • Deferring Constraint Checking

    In the Oracle Lite documentation, there is a section:
    ==========================================================
    3.11.3.2 Defer Constraint Checking Until After All Transactions Are Applied
    1. Drop all foreign key constraints and then recreate them as DEFERRABLE constraints.
    2. Bind user-defined PL/SQL procedures to publications that contain tables with referential integrity constraints.
    3. The PL/SQL procedure should set constraints to DEFERRED in the BeforeApply function and IMMEDIATE in the AfterApply function as in the following example featuring a table named SAMPLE3 and a constraint named address.14_fk:
    ==========================================================
    For step 1, I am assuming this is on the base table that the publication references, since it is the one throwing the FK constraint violations at me.
    For step 2 however, are these procedures to be bound to the base tables as well, or somewhere else related to where the publication items are stored?
    Thanks,
    Allen

    In this case, the data model that I have to work with causes this situation
    TABLE A has 2 FK constraints to TABLE B
    TABLE B has 1 FK constraint to TABLE A
    In Oracle Lite, I:
    1-create a record in TABLE A where both of the columns with FK constraints are null
    2-create a record in TABLE B which refers to the original in TABLE A
    3-create a second record in TABLE B which also refers to the record in TABLE A
    4-update the record in TABLE A to refer to the 2 records in TABLE B
    When these changes reach the mobile server, they are placed in the error queue, because steps 1 and 4 are being combined and performed as one single insert. Since the records from step 2 and 3 don't exist yet, there is an FK violation.
    Is there a way to prevent the synchronization process from 'opitimizing' the transaction and combining steps 1 and 4? Everything works fine if I follow steps 1-4, but when 1 and 4 are combined it all falls apart.
    Thanks,
    Allen

  • Deferred constraints &  XAExceptions details

    When executing an XA transaction on Oracle 8i with a J2EE server, we are not getting enough details in the OracleXAException that occurs as a result of a deferred constraint being violated (during the commit).
    We're getting a oracle.jdbc.xa.OracleXAException (wrapped inside a TransactionRolledBackException), and upon further inspection I can call the OracleXAException methods:
    getOracleError() : int
    getOracleSQLError() : int
    I cannot get any textual details about the error (ie. which constraint was violated).
    Do other version of Oracle provide more details during XA transaction failures?
    Thanks,
    M

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by SAMEER DESHPANDE ([email protected]):
    Hello
    I would like to know the use of Deferred Constraints.
    At the time of COMMMIT, the Oracle ROLLBACKS the transaction if I set "SET CONSTRAINT ALL DEFERRED;"...
    What is the use of DEFERRED CONSTRAINTS...?
    Thanks
    Sameer<HR></BLOCKQUOTE>
    You can do "SET CONSTRAINT ALL IMMEDIATE" before committing. That statement will raise an error, without rolling back the transaction, if there are violated constraints.

  • Deferred Constraints - error on inserting

    Hi there,
    i've got a very courios problem with deferred constraints. My table creates are:
    CREATE TABLE mitglied
    ( svnr NUMBER(10) NOT NULL,
      instr VARCHAR(20) NOT NULL,
      CONSTRAINT mitglied_pk PRIMARY KEY (svnr));
    CREATE TABLE abteilung
    ( instr VARCHAR(20) NOT NULL,
      geleitetVon NUMBER(10) NOT NULL,
      stvVon NUMBER(10) NOT NULL,
      CONSTRAINT abteilung_pk PRIMARY KEY (instr),
      CONSTRAINT abteilung_geleitetVon_fk FOREIGN KEY (geleitetVon)
                 REFERENCES mitglied(svnr) INITIALLY DEFERRED DEFERRABLE,
      CONSTRAINT abteilung_stvVon_fk FOREIGN KEY (stvVon)
                 REFERENCES mitglied(svnr) INITIALLY DEFERRED DEFERRABLE);
    ALTER TABLE mitglied
      ADD CONSTRAINT mitglied_fk FOREIGN KEY (instr)
                     REFERENCES abteilung(instr) INITIALLY DEFERRED DEFERRABLE;My Inserts (from sql-file):
    INSERT INTO mitglied VALUES ('1833040984', 'Edwin Neugebauer', '1984', '20-JAN-2005', 'Posaune');
    <all of the other "mitglied"-inserts>
    INSERT INTO abteilung VALUES ('Posaune', '1833040984', '1512101070');
    <all of the other "abteilung"-inserts>
    COMMIT;The Error msg:
    Error starting at line 79 in command:
    INSERT INTO mitglied VALUES ('1833040984', 'Edwin Neugebauer', '1984', '20-JAN-2005', 'Posaune')
    Error report:
    SQL Error: ORA-02091: transaction rolled back
    ORA-02291: integrity constraint (U0426435.MITGLIED_FK) violated - parent key not found
    (it's the same for all of the other mitglied-inserts), and of course, I get also errors on the abteilung-inserts.
    I've already tried to solve this problem by using "SET AUTOCOMMIT OFF" in sqlplus, but that wasn't the point.
    What's wrong with my Constraints?

    Please post a complete example cut-n-paste from SQL*Plus window that shows the exact output step by step (as like below).
    It apparently works for me as shown below.
    SQL> CREATE TABLE mitglied
      2  ( svnr NUMBER(10) NOT NULL,
      3    mName VARCHAR(30) NOT NULL,
      4    gJahr INTEGER NOT NULL,
      5    aDat DATE NOT NULL,
      6    instr VARCHAR(20) NOT NULL,
      7    CONSTRAINT mitglied_pk PRIMARY KEY (svnr));
    Table created.
    SQL> CREATE TABLE abteilung
      2  ( instr VARCHAR(20) NOT NULL,
      3    geleitetVon NUMBER(10) NOT NULL,
      4    stvVon NUMBER(10) NOT NULL,
      5    CONSTRAINT abteilung_pk PRIMARY KEY (instr),
      6    CONSTRAINT abteilung_geleitetVon_fk FOREIGN KEY (geleitetVon)
      7               REFERENCES mitglied(svnr) INITIALLY DEFERRED DEFERRABLE,
      8    CONSTRAINT abteilung_stvVon_fk FOREIGN KEY (stvVon)
      9               REFERENCES mitglied(svnr) INITIALLY DEFERRED DEFERRABLE);
    Table created.
    SQL> ALTER TABLE mitglied
      2    ADD CONSTRAINT mitglied_fk FOREIGN KEY (instr)
      3                   REFERENCES abteilung(instr) INITIALLY DEFERRED DEFERRABLE;
    Table altered.
    SQL> INSERT INTO mitglied VALUES ('1833040984', 'Edwin Neugebauer', '1984', to_date('20-JAN-2005', 'dd-mon-yyyy'), 'Posaune');
    1 row created.
    SQL> INSERT INTO abteilung VALUES ('Posaune', '1833040984', '1512101070');
    1 row created.
    SQL> commit ;
    commit
    ERROR at line 1:
    ORA-02091: transaction rolled back
    ORA-02291: integrity constraint (OPS$LAPTOP\KKISHORE.ABTEILUNG_STVVON_FK)
    violated - parent key not found
    SQL>Message was edited by:
    Kamal Kishore

  • EjbRemove fails with deferred constraints in 8.1.6

    I get a constraint violation under certain conditions from Oracle.
    IBM ejb container hides the exception, and raises a CSI_ROLLBACK exception. The only workaround I can think of, is disabling all constraints in Oracle, and trusting IBMs Application server to guarantee the
    referential integrity of the database.
    Does anyone else notice these problems and found a resolution?
    Oracle introduced deferred constraints to allow the constraint violation checking at the end of an transaction.
    For the IBM implementation of entity EJBs this is essential,
    because any the "DELETE FROM WHERE id=" which result from an ejbRemove() happens >>>before<<< an ejbStore() which results in "UPDATE SET foreignkey = NULL ".
    I am using the jdbc driver from classes12.zip, and noticed that
    you get an constraint violation on a commit, when the record has been created in a transaction, is updated in a transaction, and then is deleted in a transaction. The transactions are isolated.
    A rollback, and deleting again resolves the problem.
    But the problem is that an Websphere Application server is in between the
    delete from a user, and the jdbc driver accessed through a datasource.
    null

    Does anyone know where to configure and find required settings (e.g. the number of open_cursors) for Oracle 8.1.6 server when using the jdbc thin driver ?
    null

  • Influence of deferred constraint to Table is mutating proble

    Hello,
    i have a question regarding the 'Table is mutating,
    Trigger/Function may not see it'-problem. I
    wondered whether a deferrable constraint can solve the problem,
    but as I tested it, it's the same
    behaviour as before.
    Situation:
    assume tables LOC_TO and TORDER and the following constraint:
    ALTER TABLE LOC_TO ADD (CONSTRAINT LT_TOID FOREIGN KEY (LT_TOID)
    REFERENCES TORDER ON DELETE CASCADE
    DEFERRABLE INITIALLY DEFERRED);
    assume a trigger on table TORDER:
    create or replace trigger tIU_TORDER_ADD
    after insert or update of TO_STATE on TORDER
    for each row
    declare
    begin
    insert
    into loc_to
    ( lt_locid,
    lt_toid )
    values
    ( 'HRL14042',
    :new.to_id )
    end tIU_TORDER_ADD;
    I thought, that on a deferred constraint at the triggered action
    no check to TORDER is done, and
    that this fact will prevent the ORACLE_ERROR ORA-04091.
    Can anyone tell me, why this doesn't work?
    Thanks
    Titus Leskien
    null

    There was a loophole in the mutating table gotcha: single row inserts in a BEFORE EACH ROW trigger were not considered mutating, but were in AFTER EACH ROW triggers. This did not apply to INSERT INTO ... SELECT ... statements, which always mutated, even if they only inserted one row.
    This is get-out is no longer included in the documentation, but as you have found still applies in the 9.2 database (and it's unlikely Oracle will have broken it in 10g).
    Cheers, APC

  • Deferred Constraints

    Hi,
    One of our projects is using Kodo to link Java to the Oracle db I works fine with 8.1.7 but we need to connect to a Lite db.
    Kodo is running this query which fails because Oracle Lite does not have a DEFERRED column in the ALL_CONSTRAINTS table. I can't find any info on deferred constraints in Lite.
    Does Lite handle constraints in the same way?
    Is there a workaround ?
    Peter
    SELECT t2.OWNER AS PKTABLE_SCHEM,
    t2.TABLE_NAME AS PKTABLE_NAME,
    t2.COLUMN_NAME AS PKCOLUMN_NAME,
    t0.OWNER AS FKTABLE_SCHEM,
    t0.TABLE_NAME AS FKTABLE_NAME,
    t0.COLUMN_NAME AS FKCOLUMN_NAME,
    t0.POSITION AS KEY_SEQ,
    DECODE (t1.DELETE_RULE,
    'NO ACTION', 3,
    'RESTRICT', 1,
    'CASCADE', 0,
    'SET NULL', 2,
    'SET DEFAULT', 4) AS DELETE_RULE,
    t0.CONSTRAINT_NAME AS FK_NAME,
    DECODE (t1.DEFERRED,
    'DEFERRED', 5,
    'IMMEDIATE', 6) AS DEFERRABILITY
    FROM ALL_CONS_COLUMNS t0,
    ALL_CONSTRAINTS t1,
    ALL_CONS_COLUMNS t2
    WHERE t0.OWNER = t1.OWNER
    AND t0.CONSTRAINT_NAME = t1.CONSTRAINT_NAME
    AND t1.CONSTRAINT_TYPE = 'R'
    AND t1.R_OWNER = t2.OWNER
    AND t1.R_CONSTRAINT_NAME = t2.CONSTRAINT_NAME
    AND t0.POSITION = t2.POSITION;

    Peter,
    Please let us know if you still need help with this post.
    Thank you.

  • Diff B/W master data and transaction data

    Hi all,
    What is the main Diff B/W master data and transaction data.  give me some example ?
    Thanks in Advance
    Krish...

    hi krish,
    MASTER Data is the data that exists in the organization like employee details, material master, customer master, vendor master etc. These are generally created once.
    Master data are distributed throughout the company, they are often not standardised and often redundant. As a result it is very costly to offer efficient customer service, keep track of supply chains and make strategic decisions. With SAP Master Data Management (SAP MDM) these important business data from across the company can be brought together, harmonised and made accessible to all staff and business partners. As a key component of SAP NetWeaver, SAP MDM ensures data integrity via all IT systems.
    Regardless of the industry, companies often work with different ERP and Legacy systems. The result: the business processes are based on information about customers, partners and products which is displayed in different ways in the systems. If the data are recorded manually, there are more inconsistencies: some data sets are entered several times, others cannot be retrieved by all divisions of the company.
    As corporate applications are becoming increasingly complex and produce ever greater amounts of data, the problem is intensified further. Nevertheless, your employees must work with the inconsistent data and make decisions on this basis. The lack of standardised master data easily leads to wrong decisions, which restrict efficiency and threaten customer satisfaction and profitability.
    In a word: in order to save costs and ensure your company’s success it is necessary to consolidate master data about customers, partners and products, make them available to all employees beyond system boundaries and use attributes valid company-wide for the purpose of description.
    TRASNACTION Data - These are the business documents that you create using the master data - Purchase orders, sales orders etc
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9d/193e4045796913e10000000a1550b0/content.htm
    Regards,
    GNK.

  • Difference between unique constraint and unique index

    1. What is the difference between unique constraint and unique index when unique constraint is always indexed ? Which one is better in this case for better performance ?
    2. Is Composite index of 3 columns x,y,z better
    or having independent/ seperate indexes on 3 columns x,y,z is better for better performance ?
    3. It has been very confusing for me to decide which columns to index, I have indexed most foreignkey columns, is it a good idea ? We do lot of selects and DMLS on most of our tables. Is there any query that I can run and find out if indexes are really being used and if they are improving any performance. I have analyzed and computed my indexes using ANALYZE index index_name validate structure and COMPUTE STATISTICS;
    null

    1. Unique index is part of unique constraint. Of course you can create standalone unique index. But is is no point to skip the logical view of business if you spend same effort to achive.
    You create unique const. Oracle create the unique index for you. You may specify index characteristic in unique constraint.
    2. Depends. You can't utilize the composite index if the searching condition is not whole or front part of the indexing key. You can't utilize your index if you query the table for y=2. That is.
    3. As old words in database arena, Index may be good or bad for a table depending on the size of table, number of columns in the table... etc. It is very environmental dependent. In fact, It is part of database nomalization. Statistic is a way oracle use to determine the execution plan.
    Steve
    null

  • Remote and Transactional Cube

    Dear Friends,
    How a Basic Cube differs from a Transactional and Remote Cube ?
    A Small Example-  Cube Carries the Transaction data of Customer ,Material, Sales details ( characteristics) and price, Quantity and Revenue (keyfigures) .
    When do we Really have to Change or to Create the Other Cubes to hold those Data ?
    What is the Exact Purpose that a Scenario Needs the Remote and Transactional Cube ?
    I hope Remote Cube Can be created with "Infoservices" and "Source system" . What is the demand for both these options?
    Thanks well in advance ,
    Ramesh

    hi,
    Remotecbue will have  only structure and It does't hold any data.
    and it is used to bring live data to BW ..At the time of reporting only the data fetches from the source system. So it takes more time to execute.
    it will not hav update rules...
    Transactional InfoCubes are used only in conjunction with SEM. The data from this kind of InfoCube is accessed transactionally, meaning data is written to the InfoCube (possibly by several users at the same time) and reread as soon as possible. Basic InfoCubes are not suitable for this. You should use Basic InfoCubes for read-only access (for example, when reading reference data).
    Rfer
    http://help.sap.com/saphelp_bw33/helpdata/en/39/100c38e15711d4b2d90050da4c74dc/frameset.htm
    thanks
    (Assign points if useful..)

  • Downloding the SAP master data and transaction data to a flat file

    Hello All,
    Is there any SAP standard method or transaction to download the SAP master data and transaction data to flat file.
    With out using ABAP development, SAP had provided any tool or method to download the SAP system master and transaction data to flat file.
    Thanks,
    Feroz.

    hi
    as of now up to my knowledge no.

  • Current server is the coordinator and transaction is not found

    Hi,
    We're using Weblogic 8.1 SP3. We have a single weblogic domain and 2 clusters in it. EAR1 is deployed in cluster 1 and EAR2 is deployed in cluster 2. EAR2 is compiled and created using j2ee.jar and not weblogic.jar.
    We have a MessageDrivenBean which is CMT / Required in EAR1 calls a BMT Stateless Session Bean in EAR2.
    A new transaction is begun in the BMT SB method and commit or rollback is called based on exception. A RuntimeException is thrown back to the MDB in case the transaction is rolled back in Bean Managed SB.
    Sometimes from the Bean Managed SB the following exception is thrown:
    javax.transaction.TransactionRolledbackException: Current server is the coordinator and transaction is not found. It was probably rolled back and forgotten already.
         at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
         at com.oakgrovesystems.reactor.frontDesk.EJBFrontDeskBean_1gq9kv_EOImpl_813_WLStub.handleRequest(Unknown Source)
         at com.oakgrovesystems.reactor.requests.ReactorRequest.send(ReactorRequest.java:212)
         at com.oakgrovesystems.reactor.client.EJBReactorProxy.sendRequest(EJBReactorProxy.java:44)
         at com.oakgrovesystems.reactor.client.AbstractReactorProxy.handleRequest(AbstractReactorProxy.java:52)
         at sun.reflect.GeneratedMethodAccessor153.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at tavant.bpm.client.proxy.DynamicFailoverReactorProxy.invoke(DynamicFailoverReactorProxy.java:84)
         at $Proxy11.handleRequest(Unknown Source)
         at tavant.bpm.client.ProcessHome.handleRequest(ProcessHome.java:298)
         at tavant.bpm.client.ProcessHome.startProcess(ProcessHome.java:87)
         at tavant.bpm.client.processor.CreateWorkflowInstance.startProcess(CreateWorkflowInstance.java:70)
         at tavant.bpm.client.processor.CreateWorkflowInstance.invoke(CreateWorkflowInstance.java:51)
         at tavant.bpm.ejb.AsynchronousProcessorMessageBean.onMessage(AsynchronousProcessorMessageBean.java:58)
         at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
         at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
         at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
         at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    This is not consistently reproducible though it happens when server is heavily loaded. When this exception occurs, the transaction in the BMT Session Bean is actually getting committed! The message gets redelivered from the MDB.
    What could be the problem?
    Regards
    Sandhya

    I'm seeing a similiar problem on our servers recently and thought I would add my problem as well. We are using Weblogic 8.1; don't know which SP is in production. We have an EAR file with an SB EJB that puts messages in a queue. The EAR is deployed in a cluster along with the queues. The errors below occurred in 3 of the 4 WLS instances in our cluster. This happened during a peak period and lasted for several seconds in Production.
    ###<Jul 1, 2005 11:18:12 AM EDT> <Warning> <RMI> <exsdxtxeax1x.prod.xxxx.xxx> <ems-04> <ExecuteThread: '12' for queue: 'web
    logic.kernel.Default'> <<WLS Kernel>> <> <BEA-080006> <Failed to associate the transaction context with the response while marshall
    ing an exception to the client:
    javax.transaction.TransactionRolledbackException: Current server is the coordinator and transaction is not found. It was probably
    rolled back and forgotten already..
    javax.transaction.TransactionRolledbackException: Current server is the coordinator and transaction is not found. It was probably
    rolled back and forgotten already.
    at weblogic.transaction.internal.TransactionManagerImpl.sendResponse(Ljava.lang.Object;)Ljava.lang.Object;(TransactionManag
    erImpl.java:1438)
    at weblogic.rmi.internal.BasicServerRef.associateTxContext(Lweblogic.rmi.spi.InboundRequest;Lweblogic.rmi.spi.OutboundRespo
    nse;)V(BasicServerRef.java:490)
    at weblogic.rmi.internal.BasicServerRef.postInvoke(Lweblogic.rmi.extensions.server.RuntimeMethodDescriptor;Lweblogic.rmi.sp
    i.InboundRequest;Lweblogic.rmi.spi.OutboundResponse;Ljava.lang.Throwable;)V(Optimized Method)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(Lweblogic.rmi.spi.InboundRequest;)V(Optimized Method)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(Lweblogic.kernel.ExecuteThread;)V(Optimized Method)
    at weblogic.kernel.ExecuteThread.execute(Lweblogic.kernel.ExecuteRequest;)V(Optimized Method)
    at weblogic.kernel.ExecuteThread.run()V(ExecuteThread.java:178)
    at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source)
    >

  • Connection failover and transaction failover

    Connection failover and transaction failover
    I need to know more about a behavior in a RAC cluster. When a node goes down that is executing one of my transaction through JDBC , does the connection and transaction failover to a new node without me needing to restart tran or reconnect ?
    Please provide some insight
    Thanks

    Transactions are NOT automatically rolled back. The application must do this otherwise the session will get disconnected.
    If you code TAF, all sessions will failover to the backup connection. You can specify that select statements are automatically re-executed after the failover. Insert/update/delete transactions must be explicitly rolled back and resubmitted by the application.
    IF you are using an ORacle Connection pool, the connection pool will automatically cleanup connections to the failed instance, abort inflight transactions. The application will either retry or it will propagate the error to the end user.
    See the whitepaper on the OTN RAC page (otn.oracle.com/rac) Workload Management with Oracle RAC for more information.

  • Can i display My application iview and transaction iview in single page ?

    Hi,
    I am new in web dynpro and portal. i am doing one approval application through web dynpro. Now i need to attache sap inbox to application. For that some budy suggested me about transaction view. So my questions are as folloes.
    1.> How i attached my application to iview ?
    2.> How i created Transaction  iview ?
    3.> Can i attache my application iview with transaction iview if it is possible then how ?
    4.> Can i display My application iview and transaction iview in single page ?
    Please guide me in this procesure.
    Regards,
    Gurprit Bhatia

    Hi Gurprit,
    1.> How i attached my application to iview ?
           You can attach your application to web Dynpro IView, for this login into portal, in the Content Management tab right click on a folder, then New --> IView. Select WD java Application. Select your application and create an Iview.
    2.> How i created Transaction iview ?
           Similarly, instead of selecting WD java Application, select iView template, you will get a list of available templates, and in this you will find template for Transaction Iview, in this template define the Tx for which you want to create the template.
    3.> Can i attache my application iview with transaction iview if it is possible then how ?
          No, I dont think you can attach your application to transaction Iview. but, you can attach both IViews on single page.
    4.> Can i display My application iview and transaction iview in single page ?
          Yes, you can attach  both IViews on single page. Again in Content Management tab, crate a PAGE; Then right click on created IViews and select  add IView to Page ßß: Delta Link.
    Hope this helps.
    Regards,
    Amit

Maybe you are looking for

  • AdapterMessageMonitoring in PI 7.1

    Hi experts, In PI 7.0 there used to be a WebService "AdapterMessageMonitoring" on WAS to show all the messages passed through adapter Engine. Does anyone know how is this called on PI 7.1? Thanks in adavance

  • Can I "reset" hard drive capacity

    I'm not sure how it happened (although I suspect it was during an aborted install of Bootcamp), but an 80GB external (firewire) hard drive now shows up as a 55GB hard drive. I have tried everything I can think of -- well, OK, Disk Utility -- but I ju

  • Place CC PSD file in to InDesign

    I have been trying out CC this afternoon and came to a problem when I try to place a PSD file saved from Photoshop CC in to InDesign. I have both InDesign CS6 and CC installed and the same issue occurs with both, so I think it is a problem with the P

  • BPEL Assign activityafter copying data, loosing namespace

    Hello Guys, in BPEL, using assign activity to copyList data from one payload to another payload, when i look the audit trail, namespace are missing, take an example. input: <inputVariable> <part  name="payload"> <ns1:personsElement  manager="Manager

  • IDES 4.7 Installation under Windows 2003 Enterprise Server, Xeon 64 bit

    Dear all, we are just trying to install IDES 4.7: IDES 4.7 Installation under Windows 2003 Enterprise Server, Xeon 64 bit But the installation break with error Message: Error 5 (Access is denied.) in excution of a "NetServerGetInfo" function, line (2