Re: Copy Blob data into Varchar2

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
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:  https://docs.oracle.com/database/121/REFRN/GUID-D424D23B-0933-425F-BC69-9C0E6724693C.htm#REFRN10321

Regards
Jonathan Lewis



From: oracle-l-bounce_at_freelists.org <oracle-l-bounce_at_freelists.org> on behalf of Sanjay Mishra <dmarc-noreply_at_freelists.org> Sent: 25 March 2020 15:19
To: dmarc-noreply_at_freelists.org; 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.

Sanjay

On Wednesday, March 25, 2020, 04:49:45 AM EDT, Norman Dunbar <oracle_at_dunbar-it.co.uk> 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.

Cheers,
Norm.

--
Norman Dunbar
Dunbar IT Consultants Ltd

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

Company Number: 05132767
--
http://www.freelists.org/webpage/oracle-l



--
http://www.freelists.org/webpage/oracle-l
Received on Wed Mar 25 2020 - 16:28:14 CET

Original text of this message