I have a merge query which works fine for few records ( < 500 )
Merge into TableA A using TableB B on (UNIQUEID = UNIQUEID)
when matched
then update
set
A.id = B.id,
when not matched
then insert (
A.id
)
values(
B.id
)
The issue occurs for large data sets ( > 7000 )
Error : MERGE STATEMENT ORA-30926: unable to get a stable set of rows in the source
I want the merge statement to be executed in chunks ( say 1000 at once ), so that the exact issue with data can be identified.