What changed?
What is the version of each database in the distributed transaction?
Do any of the table have triggers on them that were changed recently or had FK
constraints added?
If triggers exist, were any stored procedures called by the trigger modified
recently?
Again were you able to manually run the failing SQL so you can compare the
error stack returned in SQLPlus verse what you have?
If code which has been working for a while suddenly breaks then almost always
some part of the process has in fact changed or you have a data issue.
Mark Powell
Database Administration
(313) 592-5148
________________________________
From: Sanjay Mishra <smishra_97@xxxxxxxxx>
Sent: Tuesday, May 16, 2017 2:48:15 PM
To: Powell, Mark; dedba@xxxxxxxxxx; dmarc-noreply@xxxxxxxxxxxxx; mark@xxxxxxxxx
Cc: Oracle-L Freelists
Subject: Re: transaction or savepoint rollback required
Mark
After Tracing SQL is identified and it is insert into remote table using select
from primary Database table join and it is also failing with same error.
Tx
Sanjay
On Tuesday, May 16, 2017 2:45 PM, "Powell, Mark" <mark.powell2@xxxxxxx> wrote:
If you run the SQL that is failing directly in a SQLPlus window do you get any
more information back?
Double check that both DBA_2PC_PENDING and DBA_2PC_NEIGHBORS return "no rows"
on all involved servers.
There are only a few things that cause an update to fail such as trying to
store a value that exceeds the target column capacity, you try to update a not
NULL column to NULL, violate a FK constraint check, or the target row is in use
and you get a distributed timeout. I would think each of these would produce
an error that would be passed back so the suggestion above.
Mark Powell
Database Administration
(313) 592-5148
________________________________
From: Sanjay Mishra <smishra_97@xxxxxxxxx>
Sent: Tuesday, May 16, 2017 12:07:57 PM
To: dedba@xxxxxxxxxx; dmarc-noreply@xxxxxxxxxxxxx; mark@xxxxxxxxx
Cc: Powell, Mark; Oracle-L Freelists
Subject: Re: transaction or savepoint rollback required
Tony
There is no database as well as table trigger on Optic based Database link on
Remote database. Not able to understand as how to resolved it as eveh bounceing
didn;t helped.
Sanjay
On Monday, May 15, 2017 6:52 PM, "dedba@xxxxxxxxxx" <dedba@xxxxxxxxxx> wrote:
Hi Sanjay
It sounds as if the OPTIC database closes the connection on logon. That could
happen if there is a database trigger that fires on logon and raises an
exception.
Cheers,
Tony
On 16 May 2017 8:18:41 AM AEST, Sanjay Mishra <dmarc-noreply@xxxxxxxxxxxxx>
wrote:
Mark
AS per error and the dblink OPTIC, the current as well as remote database is
not showing any error in alert log. I saw in listener log that request reached
OPTIC database link based server.
What is best way on backend to trace distributed query as I tried to trace
session but it is not providing any details. This process was working fine but
suddently got this issue and now failing continously afterward. I even had
bounced the databases but still no success.
TIA
Sanjay
On Monday, May 15, 2017 8:44 AM, Mark J. Bobak <mark@xxxxxxxxx> wrote:
Ok, so go to the alert.log of the db that is hitting end of fie on
communication channel. See if you can determine the root cause of that error.
-Mark
On Fri, May 12, 2017 at 3:39 PM, Sanjay Mishra
<dmarc-noreply@xxxxxxxxxxxxx<mailto:dmarc-noreply@xxxxxxxxxxxxx>> wrote:
Mark
Here is what is getting now
SQL> exec Webprocess_mkinv('14003331');
BEGIN Webprocess_mkinv('14003331')
*
ERROR at line 1:
ORA-02055: distributed update operation failed; rollback required
ORA-02068: following severe error from OPTIC
ORA-03113: end-of-file on communication channel
ORA-06512: at "invuser.pnttbl", line 31
ORA-06512: at "invuser.pntfail", line 89
ORA-06512: at line 1
Or
ERROR at line 1:
ORA-02067: transaction or savepoint rollback required
ORA-06512: at "invuser.pnttbl", line 12
ORA-06512: at "invuser.pntfail", line 52
ORA-06512: at "invuser.pnttrial", line 88
ORA-02055: distributed update operation failed; rollback required
ORA-02068: following severe error from OPTIC
ORA-03113: end-of-file on communication channel
ORA-06512: at "invuser.pntfail"
ORA-06512: at line 1
Sanjay
On Friday, May 12, 2017 2:16 PM, "Powell, Mark"
<mark.powell2@xxxxxxx<mailto:mark.powell2@xxxxxxx>> wrote:
Sanjay, when a distributed transaction fails it has always been the
responsibility of the calling program to issue an explicit rollback command.
Fix the program code to do so then determine why the transaction is failing to
begin with.
Did you list the full error stack returned to the program?
Mark Powell
Database Administration
(313) 592-5148
________________________________
From: oracle-l-bounce@xxxxxxxxxxxxx<mailto:oracle-l-bounce@xxxxxxxxxxxxx>
<oracle-l-bounce@xxxxxxxxxxxxx<mailto:oracle-l-bounce@xxxxxxxxxxxxx> > on
behalf of Sanjay Mishra
<dmarc-noreply@xxxxxxxxxxxxx<mailto:dmarc-noreply@xxxxxxxxxxxxx>>
Sent: Friday, May 12, 2017 11:04:18 AM
To: Oracle-L Freelists
Subject: transaction or savepoint rollback required
Has anyone experienced ths issue with distributed query where I am running a
stored procedure but will have mutliple remote database link used including
some insert remotely. Working fine but suddenly stopped working and has no
savepoint in the code and getting error
ORA-02067: transaction or savepoint rollback required
ORA-02055: distributed update operation failed; rollback required
There is no error on existing as well as on remote database in dba_2pc_pending.
Any other way to check and rollback or so as it is now constantly generating
the same error with every execution
Any help is appreciated
Tx
Sanjay
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.