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: table access

RE: table access

From: Armstead, Michael A <maa25681_at_GlaxoWellcome.com>
Date: Wed, 10 Jan 2001 14:02:28 -0500
Message-Id: <10737.126305@fatcity.com>


You need to look into using synonyms any time you want to access tables you don't own and you want to access them without indicating a schema name. The synonyms can be created by USER2 or they can be PUBLIC.

Michael Armstead
Database Administrator, OCP-Certified
Corporate & Finance Information Systems
Glaxo SmithKline

> -----Original Message-----
> From: Poosapati Varma [SMTP:psgkv_at_yahoo.com]
> Sent: Wednesday, January 10, 2001 1:41 PM
> To: Multiple recipients of list ORACLE-L
> Subject: table access
>
> Hi guys,
>
> I have a user which has for ex.. 100 tables.
>
> i need to create a new user and allow the user to
> access the 'SELECT' on all the tables of the above
> user.
>
> What i had done is created a newuser and created a
> role in the user which has 100 tables and issued
>
> grant select on <100_table_names_here> to Role_1.
> and
> grant role_1 to USER2.
>
> When the user issues a select statement on a table
> he has to issue the username.table_name to select
> data.
>
> is there any other way to access the tables without
> mentioning the username.
>
> Varma.
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Poosapati Varma
> INET: psgkv_at_yahoo.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
Received on Wed Jan 10 2001 - 13:02:28 CST

Original text of this message

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