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: Oracle triggers

Re: Oracle triggers

From: Lothar Armbruester <lothar.armbruester_at_t-online.de>
Date: Wed, 24 Jul 2002 17:59:19 +0200
Message-ID: <PM0003A6879FA5B995@hades.none.local>


Chuck wrote:
> I am looking for some help with developing an Oracle trigger.
> The trigger has to look at users and only allow them to select certain
> values based on their security. There are two tables involved. When I
> try nested if statements in the trigger, it ignores anything after the
> first if statement or ignores certain users embedded in the trigger.
>
> Any ideas?

Hello Chuck,
you may have a look at row level security in the docs. This transparently adds an additional where condition to all selects on a specific table. So you can control which user may see which rows.

I don't think a trigger is the right way to solve your problem since it is not fired on selects (AFAIK).

Hope that helps,
Lothar

-- 
Lothar Armbrüster       | la_at_oktagramm.de
Hauptstr. 26            | la_at_heptagramm.de
D-65346 Eltville        | lothar.armbruester_at_t-online.de
Received on Wed Jul 24 2002 - 10:59:19 CDT

Original text of this message

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