3.16 Disabling and Enabling an Oracle Data Redaction Policy
You can disable and then reenable Oracle Data Redactions policies as necessary.
3.16.1 Disabling an Oracle Data Redaction Policy
The DBMS_REDACT.DISABLE_POLICY
procedure disables Oracle Data Redaction policies.
You can find the names of existing Data Redaction policies and whether they
are enabled by querying the
POLICY_NAME
and ENABLE
columns
of the REDACTION_POLICIES
view. However, as long as the policy still exists,
you cannot create another policy for that table or view, even if the original policy is
disabled. In other words, if you want to create a different policy on the same column in the
same table, then you must drop the first policy before you can create and use the new policy.
3.16.2 Enabling an Oracle Data Redaction Policy
The DBMS_REDACT.ENABLE_POLICY
procedure enables Oracle Data Redaction policies.
Immediately after you create a new policy, you do not need to enable it; the creation process handles that for you. To find the names of existing Data Redaction policies and whether they are enabled, you can query the
POLICY_NAME
and ENABLE
columns of the REDACTION_POLICIES
view. After you run the procedure to enable the policy, the enablement takes effect immediately.