Search notes:

Oracle: DBMS_LOB.SUBSTR

dbms_lob.substr returns a substring of a clob as a varchar2.
For a blob, it returns the specified bytes as a raw.
Note: Unlike in the SQL function substr, the number of characters (or bytes) to be removed is the second (not the third), the offset is the third (not the second) parameter:
dbms_lob.substr (
   lob_locator,
   amount,
   offset
)

See also

ORA-22992: cannot use LOB locators selected from remote tables
dbms_lob

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...', 1745356203, '3.17.191.196', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/installed/packages/dbms/lob/substr(50): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78