Solved

minimum priv to select across schema

Posted on 2011-02-11
4
519 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
Comment Utility
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
Comment Utility
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
Comment Utility
if you're looking for a "grant select all in schema"  privilege,

such a privilege doesn't exist
0
 

Author Closing Comment

by:Greens8301
Comment Utility
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.

Join & Write a Comment

Suggested Solutions

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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 configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now