Search notes:

ORA-43907: This argument must be a literal or bind variable.

Setting cursor_sharing to force causes to_number( … on conversion error) to throw an ORA-43907: This argument must be a literal or bind variable error:
alter session set cursor_sharing = force;

select to_number(1 default -1 on conversion error) from dual;
With the cursor_sharing_exact hint, the error goes away.
select /*+ cursor_sharing_exact */ to_number(1 default -1 on conversion error) from dual;
Or alternatively, set cursor_sharing to exact:
alter session set cursor_sharing = exact;

select to_number(1 default -1 on conversion error) from dual;

See also

ORA-43918: This argument must be a literal
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...', 1740470944, '52.15.69.226', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-43907_This-argument-must-be-a-literal-or-bind-variable(52): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78