我得到了
ORA-30926:无法在源表中获取稳定的行集
在以下查询中:
MERGE INTO table_1 a
USING
(SELECT a.ROWID row_id, 'Y'
FROM table_1 a ,table_2 b ,table_3 c
WHERE a.mbr = c.mbr
AND b.head = c.head
AND b.type_of_action <> '6') src
ON ( a.ROWID = src.row_id )
WHEN MATCHED THEN UPDATE SET in_correct = 'Y';
我已经运行了table_1
,它包含数据,我还运行了内部查询(src
),它也包含数据。
为什么会出现这个错误,如何解决它?
发布于 2018-07-26 10:38:50
SQL Error: ORA-30926: unable to get a stable set of rows in the source tables
30926. 00000 - "unable to get a stable set of rows in the source tables"
*Cause: A stable set of rows could not be got because of large dml
activity or a non-deterministic where clause.
*Action: Remove any non-deterministic where clauses and reissue the dml.
由于重复记录(16K),此错误发生在me 上
我尝试了唯一的it 。
但是,当我在没有唯一的情况下尝试合并时,第二次出现了同样的问题,这是由于提交
合并后如果未完成提交,将显示相同的错误。
如果不使用unique,则如果在每次合并操作后都给出commit,则查询将起作用。
https://stackoverflow.com/questions/2337271
复制相似问题