Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

minimum priv to select across schema

Posted on 2011-02-11
4
Medium Priority
?
528 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 74

Accepted Solution

by:
sdstuber earned 2000 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 74

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 74

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

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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

715 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