Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Users & ownership

Re: Users & ownership

From: Steve Bell <stephenb_at_sympatico.ca>
Date: Sun, 6 Jan 2002 09:00:28 -0500
Message-ID: <zPYZ7.1851$os5.114686@news20.bellglobal.com>


Hi,

If you've granted the privileges properly, then user1 can access the table of user2 PROVIDED you use the correct syntax;

You must qualify the table name with the owner's name like this (assume you're logged in as user1) :

SELECT * FROM USER2.EMP; The syntax has the owner's name (USER2) followed by a period, followed by the table name (EMP).

A common practice is to create a SYNONYM for user2.emp and grant privileges to that object so your syntax isn't so complicated...ie. give the synonym a more friendly name than 'user2.emp'...

I hope this helps,

Steve Received on Sun Jan 06 2002 - 08:00:28 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US