I have a referential constraint that will not enable, even though the referenced values are indeed in the referenced table. I have closely looked over the spelling in the constraint script and in both tables.
When I try to enable the constraint, the error returned is 'parent key not found'.. I physically compared the data, and the values needed are indeed in the referenced table.
The referenced column is set as Primary Key and that is enabled.
The involved process concerns a data load/transfer from another schema/database via a dblink.
In the source tables for the data transfer, there is a similar constraint that is indeed enabled.
Can't really post the data due to data sensitivity, was just hoping I could get some ideas of further things to check.
Any ideas or suggestions appreciated.
Code for constraint:
ALTER TABLE SR2.LOG ADD (
CONSTRAINT FF1
FOREIGN KEY (NOTCH_ID)
REFERENCES SR2.NOTCH (ID)
DISABLE NOVALIDATE);