Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: How can I access remote tables?
If the 'other schema' is in the same instance as you are, you do not need a remote database link, just permission to select from...
For instance..
You are connected as Henrik so you have all rights to anything in the Henrik
schema, but, if there is another user named , say, stephan, you would need to
have stephan ( or the DBA ) grant you rights to stephan's schema objects ...
If he has a table called mydata then , with permission to select granted, you
could then issue a
select * from stephan.mydata
hth
"Jerry Gitomer" <jgitomer_at_hbsrx.com> wrote:
>CREATE PUBLIC DATABASE LINK remote
>CONNECT TO scott IDENTIFIED BY tiger
>USING '<instance name from tnsnames.ora file>';
>
>hth
>jerry gitomer
>
>
>Henrik Otto wrote in message <381D940D.5EED_at_space.se>...
>>Hello,
>>I wonder how I can access a table in another schema for selects
>easily.
>>I dont want to alter the priviliges for the table. I'd like to
>do
>>something like: select name from table_name_at_other_schema. I've
>tried
>>to create a database link but I dont know what to put in the
>>connect-string clause. Any help is appreciated.
>>
>>Henrik
>
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==---------- http://www.newsfeeds.com The Largest Usenet Servers in the World! ------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==----- Received on Mon Nov 01 1999 - 14:44:00 CST
![]() |
![]() |