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

Home -> Community -> Usenet -> c.d.o.tools -> Re: database link as user PUBLIC

Re: database link as user PUBLIC

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Tue, 02 Jan 2001 19:37:10 +0800
Message-ID: <3A51BD66.3E9C@yahoo.com>

bernhard labus wrote:
>
> Hello everybody,
>
> maybe someone knows:
> How can I create a database link as user PUBLIC,
> ***I don't mean*** a public database link.
>
> I am on database A and want to query a public synonym on database B.
> when I try
> create database link LINKTOBasPUBLIC connect to PUBLIC using 'B',
> ORA-00987: missing or invalid username(s)
> or
> create database link LINKTOBasPUBLIC connect to PUBLIC identified externally
> using 'B',
> ORA-00987: missing or invalid username(s)
>
> Thanx in advance
> Bernhard

Just create a link that connects to an account that has only 'create session' priv on the target. It will then only be access objects that have been granted to public.

HTH
Connor

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk (mirrored at
http://www.oradba.freeserve.co.uk)

"Some days you're the pigeon, some days you're the statue"
Received on Tue Jan 02 2001 - 05:37:10 CST

Original text of this message

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