Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: RLS with exceptions

Re: RLS with exceptions

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: 2000/08/07
Message-ID: <965683652.5068.0.nnrp-13.9e984b29@news.demon.co.uk>#1/1

I haven't tried this out, but I would have expected the query to return no rows at all and simply re-raise the exception raised by the policy function, as the policy function is executed before the query is parsed.

Can you give us an example of what actually happens ?

--

Jonathan Lewis
Yet another Oracle-related web site:  http://www.jlcomp.demon.co.uk

aowens2325_at_my-deja.com wrote in message <8mn4d9$ilg$1_at_nnrp1.deja.com>...

>I am implementing Oracle's RLS package and I have added user defined
>exceptions to my policy functions. These user defined exceptions are
>raised when a user does not have permission to execute the statement
>type. I run a script that attempts to issue select, insert, update and
>delete statements for a user on each table for which the policy has
>been enabled. After each statement type I check the sql%rowcount.
>I've discovered that if the user defined exception is raised by the
>policy function, the sql%rowcount is not accurate. Any ideas as to why
>this is happening and how it can be avoided???
>
>
>Sent via Deja.com http://www.deja.com/
>Before you buy.
Received on Mon Aug 07 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US