My Oracle Support Banner

Some examples of implementing Data Redaction using DBMS_REDACT (Doc ID 1588270.1)

Last updated on MARCH 10, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 to 12.1.0.1 [Release 11.2 to 12.1]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud 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
Information in this document applies to any platform.

Goal

This document shows some examples creating Data Redaction policies using package DBMS_REDACT. The DBMS_REDACT package is a new feature in RDBMS release 12c however it has also been made available in patchset 11.2.0.4. The use of the Data Redaction feature requires a license for the Advanced Security Option (that also covers Transparent Data Encryption).
 

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
Solution
 1) The first example: FULL redaction for the SAL column:
 2) Second example: replace the SAL column with a fake value:
 3) The third example, alter the existing policy and redact the SSN column with a regular expression (regexp) mask:
References


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