DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Trigger Err (Insert into another DB)

  1. #1
    Join Date
    Nov 2001
    Posts
    22
    I was trying to do an application which will delete the records at a scheduled time. Upon deletion, a trigger will be triggered to do an insert to a table of another DB. However, I was prompted an error "ORA-02041:client database did not begin a transaction". I had created and tested the DBLink. Can anybody advise? Thanks in advance.

    CREATE OR REPLACE TRIGGER "Ouser"."TINSERT_T" AFTER DELETE
    ON "Ouser"."CL"
    FOR EACH ROW BEGIN
    insert into test@DB1 values ('1');
    end;

  2. #2
    Join Date
    Jul 2002
    Location
    Washington DC
    Posts
    110
    ORA-02041 client database did not begin a transaction

    Cause: An update occurred at a coordinated database without the coordinatorbeginning a distributed transaction. This may happen if a stored procedurecommits and then performs updates, and the stored procedure is invoked
    remotely. It could also happen if an external transaction monitor violates the XA protocol.

    Action: If the cause is the former, check that any commit is not followed by an update.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width