Re: Copy Blob data into Varchar2

From: Sanjay Mishra <"Sanjay>
Date: Thu, 26 Mar 2020 00:52:15 +0000 (UTC)
Message-ID: <>

 Thanks Jon for the information. 

    On Wednesday, March 25, 2020, 11:29:17 AM EDT, Jonathan Lewis <> wrote:    

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 Thu Mar 26 2020 - 01:52:15 CET

Original text of this message