Column level masking prevents users from seeing data contained in a specific column and table.
In this example, the masking function shows the
sal
column in the
emp
table for employees that do not have the name King. To apply column level security, add the following masking function to the stored procedure in the database:
create or replace function mask_sal(sal in number, name in varchar) return integer as
begin
if name = 'KING'
then
return -1;
end if;
return sal;
end;
Next, create a security rule masking function which causes the Rule Engine to mask select statements containing the