Search notes:

ORA-02292: integrity constraint (…) violated - child record found

Trying to delete a record in a table with a primary key whose value is still referenced in a table with a foreign key causes Oracle to throw the ORA-02292 error.

Demonstration

create table tq84_P (
   id  number(6),
   val varchar2(10),
   --
   constraint pk primary key (id)
);

create table tq84_F (
    id_p,
    txt    varchar2(20),
    --
    constraint fk foreign key (id_p) references tq84_P
);

insert into tq84_P values (1, 'one');
insert into tq84_F values (1, 'xyz');
Following statement throws ORA-02292: integrity constraint (RENE.FK) violated - child record found because TQ84_F has a record where id_p = 1:
delete from tq84_P where id = 1;
The following statement can be used to find the name and owner of the table with the primary key:
select
   pk.owner          pk_owner,
   pk.table_name     pk_table_name
from
   dba_constraints fk join
   dba_constraints pk on pk.owner            = fk.r_owner and
                         pk.constraint_name  = fk.r_constraint_name
where
   fk.owner           = 'RENE' and
   fk.constraint_name = 'FK'
;   
Cleaning up:
drop table tq84_F;
drop table tq84_P;

See also

Error messages related to referential integrity.
referential integrity
Other Oracle error messages

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...', 1759421792, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-02292_integrity-constraint-violated_child-record-found(84): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78