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

Home -> Community -> Usenet -> c.d.o.tools -> Re: granting updates to rows

Re: granting updates to rows

From: Conan <conan_at_>
Date: 2000/08/11
Message-ID: <EmOk5.14455$r4.7342@news.indigo.ie>#1/1

I can think of two ways of doing it.

  1. grant update on the whole table and then have a before update trigger that checks the user and rollsback the update if the user does not own the data.
  2. grant select on the main table to all. Then create a view the returns only the data that belongs to an individual. Then grant update on the view. to all. the view would be something like create view update_table as select * from table where owner_column = user;

HTH Conan

Rene Nyffenegger wrote in message <8n0990$1nm$1_at_nnrp1.deja.com>...
>Hi
>
>I was wondering if there is a trick (or even
>a command) that allows me to grant update rights
>for rows with a specific criteriom to selected users
>or roles.
>
>The details:
>We have a table with data for and from multiple customers. These
>customers should be able to see (select) the data of
>all other customers but only write (update) data that
>sort of belong to them. This is, a customer would
>be the owner of a row when he has inserted one and then
>may change this row's data but not an other customer's row's
>data.
>
>
>TIA
>
>Rene
>
>
>Sent via Deja.com
http://www.deja.com/
>Before you buy.
Received on Fri Aug 11 2000 - 00:00:00 CDT

Original text of this message

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