Database Error Messages

Release
toggle
  • 23ai
  • 21c
  • 19c
Updated
Jun 24, 2024

ORA-25158

Cannot specify RELY for foreign key if the associated primary key is NORELY

Cause

RELY was specified for the foreign key constraint, when the associated primary key constraint was NORELY.


Action

Change the option of the primary key also to RELY.