Search notes:

ORA-32795: cannot insert into a generated always identity column

create table tq84_ora_32795 (
   id  integer generated always as identity,
   txt varchar2(10)
);
The first insert statement runs OK, the second and third throw ORA-32795: cannot insert into a generated always identity column:
insert into tq84_ora_32795(    txt) values (      'abc');
insert into tq84_ora_32795(id, txt) values (   2, 'def');
insert into tq84_ora_32795(id, txt) values (null, 'def');
Cleaning up
drop table tq84_ora_32795;

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...', 1758206548, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-32795_cannot-insert-into-a-generated-always-identity-column(48): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78