Re: Copy Blob data into Varchar2

From: Jonathan Lewis <>
Date: Wed, 25 Mar 2020 15:28:14 +0000
Message-ID: <LNXP265MB1562F839404E6CBE12BAF914A5CE0_at_LNXP265MB1562.GBRP265.PROD.OUTLOOK.COM>

A further detail to the max_string_size setting - you have to be in upgrade mode and run an upgrade script to enable it, and you can't downgrade the database afterwards.

See the 12.2 reference manual on the parameter for details:

Jonathan Lewis

From: <> on behalf of Sanjay Mishra <> Sent: 25 March 2020 15:19
To:; Oracle-L Freelists; Norman Dunbar Subject: Re: Copy Blob data into Varchar2

Thanks Norman, Db is 12.2 but maxsize is not extended. I will test on Sandbox and test it.


On Wednesday, March 25, 2020, 04:49:45 AM EDT, Norman Dunbar <> wrote:

On 25/03/2020 03:14, Sanjay Mishra (Redacted sender smishra_97 for

DMARC) wrote:
> ORA-06502: PL/SQL: numeric or value error: character string buffer too small

What version of Oracle? In the limits section of the manual for 11g, the VARCHAR2 data type is limited to 4,000 bytes. Check the "Reference" manual for your version.

For version 12 it's also 4,000 but can be 32,767 if you have set MAX_STRING_SIZE to EXTENDED in the spfile.


Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
27a Lidget Hill
West Yorkshire
United Kingdom
LS28 7LG

Company Number: 05132767

Received on Wed Mar 25 2020 - 16:28:14 CET

Original text of this message