Search notes:

ORA-02293: cannot validate (.) - check constraint violated

Preparation
create table tq84_t(a number);

begin
   insert into tq84_t values ( 1);
   insert into tq84_t values ( 2);
   insert into tq84_t values ( 3);
   insert into tq84_t values (-4);
   insert into tq84_t values ( 5);

   commit;
end;
/
The following statement throws ORA-02293: cannot validate (RENE.TQ84_T_CK) - check constraint violated:
alter table tq84_t add constraint tq84_t_ck check (a > 0
Cleaning up:
drop table tq84_t;

See also

Check constraints
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...', 1758206440, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-02293_cannot-validate_check-constraint-violated(59): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78