Solved

minimum priv to select across schema

Posted on 2011-02-11
4
521 Views
Last Modified: 2012-05-11
I have sql*net access to schema1 and schema2

If I am in schema1 I cannot run a query that joins table from schema2

What is the minimum priv required for selecting tables from both schema at the same time logging in one of the schema (besides granting a role with 'grant select on ... to ....)

oracle 11.2

Thanks
0
Comment
Question by:Greens8301
  • 3
4 Comments
 
LVL 73

Accepted Solution

by:
sdstuber earned 500 total points
ID: 34872402
if you don't have a role with the privileges
 then you'll need explicit privileges on each of the objects owned by either schema granted to the other schema

if you don't want that, then you'll have to use the "ANY" privileges which aren't restrictive.

if schema1 has "select any table", it can read schema2 but also schema3, schema4, etc,

0
 
LVL 73

Expert Comment

by:sdstuber
ID: 34872411
you might also want synonyms
other wise you'll need to prefix the objects with the schema owner

select * from schema2.some_table

0
 
LVL 73

Expert Comment

by:sdstuber
ID: 34872435
if you're looking for a "grant select all in schema"  privilege,

such a privilege doesn't exist
0
 

Author Closing Comment

by:Greens8301
ID: 34872553
Thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question