Search notes:

ORA-02264: name already used by an existing constraint

create table tq84_tab_abc (
   id    number,
   val   number,
   --
   constraint tq84_pk   primary key(id),
   constraint tq84_gt_9 check      (val > 9)
);

create table tq84_tab_xyz (
   id    number,
   val   number,
   --
   constraint tq84_pk   primary key(id),
   constraint tq84_gt_5 check      (val > 5)
);
--
-- ORA-02264: name already used by an existing constraint
--

--
-- Rename constraint AND index:
--
alter table tq84_tab_abc rename constraint tq84_pk to tq84_pk_abc;
alter index tq84_pk rename to tq84_pk_abc;


create table tq84_tab_xyz (
   id    number,
   val   number,
   --
   constraint tq84_pk   primary key(id),
   constraint tq84_gt_5 check      (val > 5)
);

drop table tq84_tab_abc;
drop table tq84_tab_xyz;

See also

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...', 1759473920, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-02264_name-already-used-by-an-existing-constraint(70): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78