Search notes:

ORA-02297: cannot disable constraint … - dependencies exist

Some tables in parent child relationship:
create table tq84_P (
   id  number,
   constraint tq84_P_pk primary key (id)
);

create table tq84_C (
   id   number,
   id_P not null,
   --
   constraint tq84_C_pk primary key (id  ),
   constraint tq84_C_fk foreign key (id_P) references tq84_P
);

create table tq84_CC (
   id   number,
   id_C not null,
   --
   constraint tq84_CC_pk primary key (id  ),
   constraint tq84_CC_fk foreign key (id_C) references tq84_C
);
Try to disable a primary key. It does not work because there is a referring table.
The error ORA-02297: cannot disable constraint (RENE.TQ84_P_PK) - dependencies exist will be thrown:
alter table tq84_P disable primary key;
With the cascade clause, however, the primary key can be disabled.
alter table tq84_P disable primary key CASCADE;
The previous command also disabled the foreign key of TQ84_C (but not of TQ84_CC):
select
   con.table_name,
   con.constraint_type,
   con.constraint_name,
   con.status,
   con.deferred
from
   user_constraints con
where
   con.table_name      in ('TQ84_P', 'TQ84_C', 'TQ84_CC') and
   con.constraint_type in ('P', 'R')
order by
   con.table_name;
Note: there is no corresponding alter table enable primary key cascade, unfortunately.
drop table tq84_CC;
drop table tq84_C ;
drop table tq84_P ;

See also

constraint
Other Oracle error messages such as ORA-02298: cannot validate … - parent keys not found

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...', 1740464616, '18.220.134.84', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-02297_cannot-disable-constraint_dependencies-exist/index(94): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78