3.13 Exemption of Users from Oracle Data Redaction Policies
You can exempt users from having Oracle Data Redaction policies applied to the data they access.
To do so, you should grant the users the EXEMPT REDACTION POLICY system or schema privilege. Grant this privilege to trusted users only.
In addition to users who were granted this privilege, user SYS is also exempt from all Data Redaction policies. The person who creates the Data Redaction policy is by default not exempt from it, unless this person is user SYS or has the EXEMPT REDACTION POLICY system or schema privilege.
Note the following:
-
The
EXEMPT REDACTION POLICYsystem or schema privilege, when granted to a user or role on a schema, enables the grantee to bypass any existing Oracle Data Redaction policies. This user will be able to view the actual data from tables or views on which Data Redaction policies are defined in the schema. -
Users who have the
INSERTprivilege on a table can insert values into a redacted column, regardless of whether a Data Redaction policy exists on the table. Data Redaction only affects SQLSELECTstatements (that is, queries) issued by a user, and has no effect on any other SQL issued by a user, includingINSERT,UPDATE,MERGE, orDELETEstatements. (See the next bullet for exceptions to this rule.) -
Users cannot perform a
CREATE TABLE AS SELECTwhere any of the columns being selected (source columns) is protected by a Data Redaction policy (and similarly, any DML operation likeINSERT-SELECT,UPDATE,MERGE, orDELETEstatements where the source column is a redacted column), unless the user was granted theEXEMPT REDACTION POLICYsystem or schema privilege. -
The
EXEMPT REDACTION POLICYsystem privilege is included in theDBArole, because theDBArole contains theEXP_FULL_DATABASErole, which is granted theEXEMPT REDACTION POLICYsystem privilege. This privilege is granted to theEXP_FULL_DATABASErole to enable export of data which has one or more redaction policies defined. This privilege must be granted explicitly to users otherwise.