Search notes:

ORA-02287: sequence number not allowed here

create sequence tq84_seq;
create table    tq84_tab   (id integer, val varchar2(10));

begin
   insert into tq84_tab values (tq84_seq.nextval, 'abc');
   insert into tq84_tab values (tq84_seq.nextval, 'def');
   commit;
end;
/
Sequences are not allowed in where conditions; the following statement throws ORA-02287: sequence number not allowed here:
select val from tq84_tab where id = tq84_seq.currval;
Sequences are also not allowed with with clauses, the same error is thrown:
with seqval as (select tq84_seq.currval curid from dual)
select
   val
from
   tq84_seq       join
   seqval   on id = curid;

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...', 1758199463, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-02287_sequence-number-not-allowed-here(56): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78