ORA-30926: unable to get a stable set of rows in the source tables [message #239187] |
Mon, 21 May 2007 12:54  |
DreamzZ
Messages: 1666 Registered: May 2007 Location: Dreamzland
|
Senior Member |
|
|
Hi,
i have two databases and two identical tables in that.
we usually daily insert from one database table to another.for that we wrote merge statement.that statment was running successfully for the last 1 month,but today when i checked there was error in log file..
this one
ORA-30926: unable to get a stable set of rows in the source tables
Any suggestions
this is mine merge statement
MERGE INTO XXXX t1
USING yyyyy@abc t2
ON (t2.Request_time = t1. Request_time)
WHEN MATCHED
THEN UPDATE
SET t1.server = t2.server,
T1.service = t2.service,
T1.client = T2.service,
T1.ts_transaction=t2.ts_transaction,
T1.elapsed_time =t2.elapsed_time
WHEN NOT MATCHED THEN
INSERT (t1.request_time, t1.server, t1.service, t1.client,
t1.ts_transaction, t1.elapsed_time)
VALUES (t2.request_time, t2.server, t2.service, t2.client,
t2.ts_transaction, t2.elapsed_time);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: ORA-30926: unable to get a stable set of rows in the source tables [message #239526 is a reply to message #239324] |
Tue, 22 May 2007 10:28   |
DreamzZ
Messages: 1666 Registered: May 2007 Location: Dreamzland
|
Senior Member |
|
|
solution is:
MERGE into xxxxx T1
Using (select request_time, server, service, client,
ts_transaction, elapsed_time from yyyy@dev01_ds) T2
on (T1.Request_time = T2.Request_time )
WHEN MATCHED
THEN UPDATE
SET t1. elapsed_time = t2. elapsed_time
When not matched then
Insert
(server, service, client,
ts_transaction, elapsed_time)
values
( t2.server, t2.service, t2.client,
T2.ts_transaction, t2.elapsed_time);
[Updated on: Tue, 22 May 2007 18:31] Report message to a moderator
|
|
|
|
|