My Oracle Support Banner

Several Examples of Using DBMS_CRYPTO to Encrypt/Decrypt Table Data (Doc ID 863071.1)

Last updated on FEBRUARY 03, 2022

Applies to:

Oracle Database Cloud Service - Version N/A and later
Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
Oracle Database Cloud Schema 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
Information in this document applies to any platform.
 

Goal

Several examples of using dbms_crypto:

1. Simple encryption using one encryption key per table.

2. Double encryption - records are encrypted with specific record key, encrypted in turn with the table master key. Record encryption key is kept inline in the table.

Solution

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
Goal
 1. Simple encryption using one encryption key per table.
 2. Double encryption - records are encrypted with specific record key, encrypted in turn with the table master key. Record encryption key is kept inline in the table.
Solution
 1. Simple encryption using one encryption key per table.
 2. Double encryption - records are encrypted with specific record key, encrypted in turn with the table master key. Record encryption key is kept inline in the table.
References

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