I am trying to update a table in a database using another table in another database. This script was working fine until recently when I started getting the error: ORA-30926: unable to get a stable set of rows in the source tables.
Please find the Script below.
MERGE INTO VANTAGEDB.CERT_UPLOAD A
USING (
SELECT PERSONNEL_ID,
SURNAME,
FORENAMES,
BIRTH_DATE
FROM PERSONNEL@ORA12C_TO_POBM
WHERE REMARK LIKE 'PORTAL_VANTAGE%'
) B
ON ( A.SURNAME = B.SURNAME
AND A.FORENAMES = B.FORENAMES
AND A.BIRTH_DATE = B.BIRTH_DATE)
WHEN MATCHED
THEN
UPDATE SET A.PERSONNEL_ID = B.PERSONNEL_ID
WHERE NOT REGEXP_LIKE (PERSONNEL_ID, '^[[:digit:]]+$')
AND CERT_STATUS IS NULL;
I have run these embedded scripts alone and they worked fine. What do i do please?
select surname, forename, birth_date from personnel group by surname, forename, birth_date having count(*) > 1
doesn't return anything? Can you run it to verify that statement?