My Oracle Support Banner

Using DBMS_CRYPTO with CLOBs (Doc ID 1637923.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 10.2 to 12.1]
Information in this document applies to any platform.


When trying to use DBMS_CRYPTO in order to encrypt Character LOBs (CLOBs), there are some extra steps required since the encrypted data is usually stored as a Binary LOB (BLOB). There are functions and procedures available within DBMS_CRYPTO in order to do this, but although the documentation gives examples for standard BLOBs, there is little in the way of examples for CLOBs. This document gives a coding example, based on the example in the Database Security Guide, in the section Developing Applications Using the Data Encryption API (for example, in 11.2, see


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.