|
Hi Erman!
Thx for answering :) Thx Yes we are good as well.
Yes, I used that build-id VPD and it works for AP_invoices view well
BUT it allows to select also from apps.ap_invoices_ALL view.
when login as xxuk I set
apps.mo_global.set_policy_context('S',123);
dIsplays from ap_invoices only org_id=123 data what is what we need
BUT VPD not working on _ALL views :(
user can also query the apps.ap_invoices_all and get ALL data
as xxuk/xxx
SQL> select count(*) from apps.ap_invoices;
COUNT(*)
----------
53184
SQL> select count(*) from apps.ap_invoices_all;
COUNT(*)
----------
672001
The grant is given to the xxuk only this for ap_invoices view only.
grant select on apps.ap_invoices; -> did automatically in background this
GRANT SELECT ON AP.AP_INVOICES_ALL# TO XXUK;
SQL> connect / as sysdba
Connected.
SQL> revoke select on apps.ap_invoices_all from xxuk;
Revoke succeeded.
SQL> connect xxuk/xxx
Connected.
SQL> select count(*) from apps.ap_invoices;
select count(*) from apps.ap_invoices
*
ERROR at line 1:
ORA-00942: table or view does not exist
SQL> connect / as sysdba
Connected.
SQL> grant select on apps.ap_invoices to xxuk;
Grant succeeded.
SQL> connect xxuk/xxx
Connected.
SQL> select count(*) from apps.ap_invoices;
COUNT(*)
----------
53184
SQL> select count(*) from apps.ap_invoices_all;
COUNT(*)
----------
672001
So, any suggestion ?
We dont want them to select from apps.ap_invoices_all... :/
Thx!Br,Linda
|