My Oracle Support Banner

Performance Problems From Running LOB Functions In The “insert Into “ Statement (Doc ID 2437537.1)

Last updated on APRIL 17, 2023

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


Source table '<table 1>' has smaller data columns ( byte ) .

Intermediate table '<table 2> has columns VARCHAR2(4000 CHAR)'

Final Table '<table 3> has columns VARCHAR2(4000 CHAR)'

Inserting table1 with Byte =====> table2  with VARCHAR2 column is fast with 100+ seconds only

Inserting table2 with VARCHAR2 column =====> table3 with VARCHAR2 column takes 3000+ seconds

Byte to CHAR insert is fast rather than reading from CHAR to and inserting into CHAR.

In short:

VARCHAR2(4000 byte) datatype table to VARCHAR2(4000 CHAR) datatype table INSERT is working fine with 100+ seconds

VARCHAR2(4000 CHAR) datatype table to VARCHAR2(4000 CHAR) datatype table INSERT is taking long as 3000+ seconds


This is with MAX_STRING_SIZE=EXTENDED in 12c.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.