My Oracle Support Banner

Accessing CLOB returned by XMLTYPE.GETCLOBVAL() Using OCI From Within OCCI To Avoid ORA-3001 (Doc ID 1364684.1)

Last updated on JUNE 27, 2023

Applies to:

Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


This note describes how to access a CLOB returned from a XMLTYPE column using function 

If it is possible to use OBJECT mode, code does not have to be changed, otherwise, if the mode of the Environment object cannot be changed then the workaround shown below will need to be implemented.


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
 Sample Code
 Sample Output

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