UPDATE on seemingly key preserving view in Oracle raises ORA-01779
问题 Problem I'm trying to refactor a low-performing MERGE statement to an UPDATE statement in Oracle 12.1.0.2.0. The MERGE statement looks like this: MERGE INTO t USING ( SELECT t.rowid rid, u.account_no_new FROM t, u, v WHERE t.account_no = u.account_no_old AND t.contract_id = v.contract_id AND v.tenant_id = u.tenant_id ) s ON (t.rowid = s.rid) WHEN MATCHED THEN UPDATE SET t.account_no = s.account_no_new It is mostly low performing because there are two expensive accesses to the large (100M rows