How to Write from BLOB to CLOB With Data Containing Multi-Byte Characters

(Doc ID 2314528.1)

Last updated on OCTOBER 10, 2017

Applies to:

PL/SQL - Version and later
Information in this document applies to any platform.

The following code performs conversion of given BLOB column to CLOB column irrespective of the character-set they are in.
It uses DBMS_LOB.CONVERTTOCLOB Procedure. This Procedure performs the conversion with underlying Character-set in consideration.

The below testing has been done on a Database with AL32UTF8 CharacterSet


 How to convert BLOB to CLOB value in a Multi-byte environment ?


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms