Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle 9i VPD Predicate Function
HansF wrote:
> On Fri, 03 Jun 2005 20:54:30 -0400, Chris McMahon interested us by
> writing:
>
>
>>I've observed that the predicate function we wrote for the policy >>against a table is firing twice for each query against that table. Is >>this normal behavior for VPD Predicate Functions?
My predicate function has a policy with the TEST table and its body looks something like this:
v_pred := ' EXISTS ( SELECT 0 FROM lookup WHERE username = ''test'' ) ';
INSERT INTO test_log VALUES ( v_pred );
return v_pred;
The SQL statement I run looks like this:
SELECT * FROM test;
After which, the TEST_LOG table has two rows in it.
I can't see why two rows are showing up in the TEST_LOG table unless for some reason the predicate function is being called twice. And I don't have any other policies. Received on Fri Jun 03 2005 - 21:36:40 CDT
![]() |
![]() |