Search notes:

ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: …, maximum: …)

On a system whre the value of max_string_size is standard:
create table tq84_t (c clob);

insert into tq84_t values (lpad('x', 4000, 'x'));
select cast(c as varchar2(4)) c4 from tq84_t;
--
-- C4  
-- ----
-- xxxx
   
update tq84_t set c = c || '!';
select cast(c as varchar2(4)) c4 from tq84_t;
--
-- ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 4001, maximum: 4000)
If the value of max_string_size is extended, this error is correspondingly thrown if the size of the cast clob exceeds 32767 characters.

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...', 1759612596, '216.73.216.149', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/errors/ORA-22835_Buffer-too-small-for-CLOB-to-CHAR-or-BLOB-to-RAW-conversion_actual-maximum(52): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78