Overview Frequently Asked Questions

Find the answers to common questions regarding Oracle Data Redaction

What is Oracle Data Redaction?

Redaction is the process of selectively obscuring sensitive or confidential information that would be returned from a column in a table or view. Data Redaction does not change the contents of the table in the database, it operates on the data displayed when a user performs a query, redacting it based on the policy. Data Redaction can also be referred to as dynamic data masking.

Which use cases is Data Redaction best suited for?

Data Redaction is ideal for protecting sensitive information shown in dashboards, reports, or applications, restricting data exposure in management tools, and preventing sensitive data disclosure during analytics or read-only queries.

Does Data Redaction modify stored data, or only redact at query runtime?

Oracle Data Redaction only redacts data when queries are executed; the underlying stored data remains unchanged.

What’s the high-level workflow to define, test, and execute a redaction policy?

  1. Identify sensitive columns/tables.

  2. Grant necessary privileges to trusted users.

  3. Create redaction policy using the DBMS_REDACT.ADD_POLICY procedure.

  4. Test the policy by executing queries and verifying redacted output.

  5. Enable the policy for deployment; modify or drop as required.

Which data types are supported (character, number, date/time, JSON, LOB, etc.)?

Oracle Data Redaction supports

User-defined types, JSON, XML, RAW, and most spatial types are not supported.

What redaction methods are available, and when should each be used?

Redaction methods and when to use them:

How do I partially redact common PII (keep last-4 digits of SSN or redact email username/domain, etc)?

Can I stack multiple policies on the same table/column? How does precedence work?

No, you can’t apply multiple policies on the same table or the same column. Only a single policy can be defined per table/column, so precedence between multiple policies does not apply.

What is the behavior with SELECT ... FOR UPDATE, RETURNING INTO, and DML triggers?

Summary: Redaction protects query outputs, not internal PL/SQL or database-side logic.

Do redacted values affect ORDER BY, GROUP BY, DISTINCT, or function-based indexes?

No. Redaction occurs after SQL processing and before data is returned to the client. Sorting, grouping, and distinct operations all use actual (unredacted) values. Function-based indexes and constraints continue to operate on real data. This behavior is consistent and fully supported in Oracle AI Database 26ai.

Note: Users may infer ordering patterns, so use redaction alongside other controls (like VPD) if inference is a concern as inference attacks are not in the scope of Data Redaction.

How does redaction interact with materialized views, views on top of redacted tables, and result cache?

In short, redaction protects runtime query results, not data movement or extract utilities.

How do I audit when redaction was applied (who saw redacted vs. original)?

Tip: Include key session attributes such as CLIENT_IDENTIFIER, application module, or IP address in audit records. These help differentiate redacted sessions (no EXEMPT REDACTION POLICY, predicate = true) from unredacted sessions (exempt privilege or predicate = false).

How do I prove least-privilege and separation of duties for policy creators vs. consumers?

Role separation:

How do policies align with privacy frameworks (PII/PHI, GDPR, PCI, etc.)?

Data-minimization (GDPR/CCPA/HIPAA): Redaction enforces need-to-know by returning only masked values to non-privileged users.

What are the common misconfigurations that lead to data exposure despite redaction?

What’s new or changed for Data Redaction in Oracle AI Database 26ai (APIs, defaults, supported types, behavior)?

Does Data Redaction work seamlessly with JSON Relational Duality views and do I define policies on the relational table, the duality view, or both?

Yes. Redaction applies at query return time, so duality views behave the same as regular views.

  1. Define redaction policies on the underlying relational columns; those rules automatically propagate through the duality view.

  2. Add view-level policies only if the view introduces derived or computed columns that also require masking.

Any considerations for JSON columns (LONG/BLOB/CLOB JSON, search indexes) or JSON-path-targeted redaction in Oracle AI Database 26ai?

Oracle Data Redaction and JSON

Tip: If JSON is stored as a LOB or character column, regex redaction works well. For projected JSON attributes, apply redaction on the underlying column or create a view-level rule.

Are there guidelines for redaction with new or augmented data types introduced in Oracle AI Database 26ai?

In an Oracle AI Database 26ai multitenant-only world, how should I manage policies across CDBs and PDBs (common vs. local users, deployment pipelines)?

Do Oracle AI Database 26ai changes in optimizer, result cache, or query rewrite have any implications for redacted columns (plans, grouping, sorting)?

No. The optimizer, grouping, and sorting logic still operate on real (unredacted) data. Redaction is applied after SQL processing and before results are returned to the client. Oracle AI Database 26ai ensures that query rewrite, set operations, and expression evaluations behave consistently with redacted columns.

How does Oracle Data Redaction improve security and improve compliance?

Oracle Data Redaction improves security by dynamically masking sensitive data in real-time, ensuring that unauthorized users cannot access critical information even if they gain access to the database. It allows for granular access control based on user roles and conditions, reducing data exposure and insider threats without altering the stored data. For compliance, it helps organizations adhere to regulations like GDPR, HIPAA, and PCI DSS by auditing the EXEMPT REDACTION POLICY privilege and providing you the flexibility to define redaction policies that meet your specific data protection requirements. This reduces the risk of non-compliance, aiding organizations in avoiding fines and maintaining legal standards.