Learn the cause and how to resolve the ORA-02298 error message in Oracle.
When you encounter an ORA-02298 error, the following error message will appear:
- ORA-02298: cannot enable name - parent keys not found
You tried to execute an ALTER TABLE ENABLE CONSTRAINT command, but it failed because your table has orphaned child records in it.
The option(s) to resolve this Oracle error are:
Remove the orphaned child records from the child table (foreign key relationship), and then re-execute the ALTER TABLE ENABLE CONSTRAINT command.
Create the missing parent records in the parent table (foreign key relationship), and then re-execute the ALTER TABLE ENABLE CONSTRAINT command.