Search notes:

ORA-02298: cannot validate … - parent keys not found

create table tq84_P ( id integer, txt varchar2(20), constraint tq84_p_pk primary key ( id));
create table tq84_C (pid integer, val number(7,2),  constraint tq84_c_fk foreign key (pid) references tq84_P);
alter table tq84_C disable constraint tq84_c_fk;
insert into tq84_c values (777, 88.88);
commit;
alter table tq84_C enable constraint tq84_c_fk;
-- ORA-02298: cannot validate (TQ84_C_FK) - parent keys not found
Cleaning up:
drop table tq84_C;
drop table tq84_P;

See also

Other Oracle error messages such as ORA-02297: cannot disable constraint … - dependencies exist

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759421479, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-02298_cannot-validate_parent-keys-not-found(50): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78