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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Avoid a synonym

Re: Avoid a synonym

From: <ryan_gaffuri_at_comcast.net>
Date: Mon, 01 Nov 2004 20:39:49 +0000
Message-Id: <110120042039.19939.41869F15000938D400004DE32200734748079D9A00000E09A1020E979D@comcast.net>


alter session set current_user=<user you want to use)

if your tables are in several users, then this won't work.

> I have a group of users that should only see a subset of data in certain
> tables. They share a role. I will create a view that implements that, and
> add it to their role. Then, to allow them to use the same queries as other
> users, I will have them individually create private synonyms that point to
> their views. Does anyone know of a better way, where each user won't have to
> create several private synonyms? This is Oracle 9i.
>
>
> Dennis Williams
>
> DBA
>
> Lifetouch, Inc.
>
>
>
> --
> http://www.freelists.org/webpage/oracle-l

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Nov 01 2004 - 14:35:34 CST

Original text of this message

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