Home » RDBMS Server » Security » Column Masking on Table
Column Masking on Table [message #162399] |
Fri, 10 March 2006 01:11  |
anilhyd
Messages: 10 Registered: October 2005
|
Junior Member |
|
|
We need to mask one column to group of users and allow to other users. The requirements are as below:-
Schema name - SCOTT
Table name - EMP
Users - u1,u2,u3
SQL>DESC EMP
Name Type
----------------- ------------
EMP_NAME VARCHAR2(30)
DEPT VARCHAR2(30)
ACCOUNT_NO NUMBER(9)
DATE_OF_JOINING DATE
Requirements:-
a) u1 and u2 cannot see the column Account_no
b) Only u3 can see the column Account_no
c) u1,u2,u3 shall run the queries as select * from scott.emp
and they cannot change this code (Schema name.table name)
4) For u1 and u2 if they run
select * from scott.emp - the output should be
EMP_NAME DEPT ACCOUNT_NO DATE_OF_JOINING
-----------------------------------------------------
Alex Sales 9999999999 01-Mar-2004
5) For user u3 if they run
select * from scott.emp - the output should be
EMP_NAME DEPT ACCOUNT_NO DATE_OF_JOINING
-----------------------------------------------------
Alex Sales 00480151560 01-Mar-2004
Please let me know how do we implement the above column masking. The user queries shall have schemaname.tablename and that cannot be changed.
Thanks in Advance..
|
|
|
|
|
|
Goto Forum:
Current Time: Wed Jun 04 08:04:06 CDT 2025
|