My Oracle Support Banner

Using DBMS_CRYPTO with CLOBs (Doc ID 1637923.1)

Last updated on JUNE 10, 2021

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 10.2 to 12.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Generic (Platform Independent)


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.