DBMS_RLS.ADD_POLICY [message #668525] |
Wed, 28 February 2018 01:28 |
|
shyam ragunathan
Messages: 6 Registered: February 2018
|
Junior Member |
|
|
DBMS_RLS.ADD_POLICY
Policy is getting created but still the user able to see the all rows
DBMS_RLS.ADD_POLICY(object_schema=> 'hr',
object_name=>'EMPLOYE',
policy_name=>'EMPLOYE'||'RLS_POLICY',
function_schema=>'hr',
policy_function=>'fnc',
update_check=>true);
Policy available in
SELECT * FROM DBA_POLICIES WHERE object_owner='UBS1202WPS';
|
|
|
|
|
Re: DBMS_RLS.ADD_POLICY [message #668550 is a reply to message #668549] |
Thu, 01 March 2018 01:14 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
1. Please use [code] tags in your posts.
2. Does he have the EXEMPT ACCESS POLICY privilege? what is this?
It is described in the docs.
3. If you enable autotrace for the query, do you see the predicate being applied?
|
|
|
|
Re: DBMS_RLS.ADD_POLICY [message #668555 is a reply to message #668554] |
Thu, 01 March 2018 05:12 |
John Watson
Messages: 8960 Registered: January 2010 Location: Global Village
|
Senior Member |
|
|
Quote:code tags ?? i am not getting it
Quote: yes the user have EXEMPT ACCESS POLICY
You haven't read anything I've suggested, have you?
Quote:Predicate Information (identified by operation id):
---------------------------------------------------
2 - access("EMP_NO"='000002')
filter("EMP_NO"='000002')
Well? Do you see your predicate being applied?
|
|
|
|
|
|
|