Unix Technical Forum

cannot rollback in a distributes transaction

This is a discussion on cannot rollback in a distributes transaction within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hi, I am trying to execute a Remote procedure through Database link. Ex: DECLARE verr varchar2(1000); BEGIN SP_TEST@DB1(verr); END; ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-08-2008, 05:25 AM
amaranatha.reddy@gmail.com
 
Posts: n/a
Default cannot rollback in a distributes transaction

Hi,
I am trying to execute a Remote procedure through Database link.
Ex: DECLARE
verr varchar2(1000);
BEGIN
SP_TEST@DB1(verr);
END;
In the above example, I am connected to DB2 and am executing the
Procedure in DB1 through the database link setup in DB2.

When I try to rollback a transaction in the remote procedure (sp_test),
it is throwing an error saying "Cannot rollback in a distributed
transaction". But i have no problem using COMMIT, in the remote
procedure.

Can anybody help me out....


Regards,
Amar.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-08-2008, 05:26 AM
Mark D Powell
 
Posts: n/a
Default Re: cannot rollback in a distributes transaction

What version of Oracle on what platform? Is sp_test an anonymous
transaction or a regular transaction?

Generally speaking the commit or rollback you are attempting in sp_test
should be executed in the code on DB1 after the return from sp_test
based on the return from sp_test. That is if sp_test encounters an
error it should return the error code to its remote caller and let the
caller determine what to do.

HTH -- Mark D Powell --

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-08-2008, 05:26 AM
Rauf Sarwar
 
Posts: n/a
Default Re: cannot rollback in a distributes transaction

Most likely you are on 8i or below. Check bug id 1347296 on the
Metalink. This is fixed in 9i.

Regards
/Rauf

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:32 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com