minimum priv to select across schema

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
Greens8301Asked:
Who is Participating?
 
sdstuberCommented:
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
 
sdstuberCommented:
you might also want synonyms
other wise you'll need to prefix the objects with the schema owner

select * from schema2.some_table

0
 
sdstuberCommented:
if you're looking for a "grant select all in schema"  privilege,

such a privilege doesn't exist
0
 
Greens8301Author Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.