Prev Question
Next Question

You execute the following piece of code with appropriate privileges:

5a4b98a015ac7 - Which two statements are true when a session logged in as SCOTT queries the SAL column in the view and the table?

User SCOTT has been granted the CREATE SESSION privilege and the MGR role.
Which two statements are true when a session logged in as SCOTT queries the SAL column in the view and
the table?

A.
Data is redacted for the EMP.SAL column only if the SCOTT session does not have the MGR role set.

B.
Data is redacted for EMP.SAL column only if the SCOTT session has the MGR role set.

C.
Data is never redacted for the EMP_V.SAL column.

D.
Data is redacted for the EMP_V.SAL column only if the SCOTT session has the MGR role set.

E.
Data is redacted for the EMP_V.SAL column only if the SCOTT session does not have the MGR role set.

Explanation:
Note:
* DBMS_REDACT.FULL completely redacts the column data.
* DBMS_REDACT.NONE applies no redaction on the column data. Use this function for development testing
purposes. LOB columns are not supported.
* The DBMS_REDACT package provides an interface to Oracle Data Redaction, which enables you to mask
(redact) data that is returned from queries issued by low-privileged users or an application.* If you create a view chain (that is, a view based on another view), then the Data Redaction policy also applies
throughout this view chain. The policies remain in effect all of the way up through this view chain, but if another
policy is created for one of these views, then for the columns affected in the subsequent views, this new policy
takes precedence.

Prev Question
Next Question

Leave a Reply

Your email address will not be published. Required fields are marked *