Solved

minimum priv to select across schema

Posted on 2011-02-11
4
526 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 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 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to take different types of Oracle backups using RMAN.

617 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