QuestionQ16

VerifiedData Redaction and Masking

You need to redact the SALARY column in the HR.EMPLOYEES table so that it displays only the number 0.

Examine this syntax:

1. SQL> BEGIN  
2. DBMS_REDACT.ADD_POLICY  
3. (object_schema => 'HR',  
4. object_name => 'EMPLOYEES',  
5. policy_name => 'EMPSAL_POLICY',  
6. column_name -> 'SALARY',  
7. function_type =>  
8. expression -> '1-1');  
9. END;  

Which function type must be added at the end of line #7?

Explanation

DBMS_REDACT.FULL fully redacts a column’s value. Oracle Data Redaction displays the default full-redaction value of 0 for numeric data types, including a salary column. Oracle Data Redaction: Full Data Redaction

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!