Using DBMS_CRYPTO with CLOBs (Doc ID 1637923.1)

Last updated on JUNE 23, 2017

Applies to:

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

Goal

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 http://docs.oracle.com/cd/E11882_01/network.112/e36292/data_encryption.htm#DBSEG337).

Solution

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