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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to create two db-links within one schema when global_name

Re: How to create two db-links within one schema when global_name

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Wed, 08 Jan 2003 07:14:41 -0800
Message-ID: <F001.00529F93.20030108071441@fatcity.com>

Have you checked on 'connection qualifiers' in the manual as I suggested in my reply ?

DB1 is the database name and database link name - but I have used HR and SHIP as the connection qualifiers to identify two separate paths to the same database.

Note the appearance of two '@' signs when using the qualified database link.

select table_name from user_tables_at_DB1@HR;

Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

Coming soon a new one-day tutorial:
Cost Based Optimisation
(see http://www.jlcomp.demon.co.uk/tutorial.html )

Next Seminar dates:
(see http://www.jlcomp.demon.co.uk/seminar.html )

____England______January 21/23
____USA_(CA, TX)_August

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

-----Original Message-----
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Date: 08 January 2003 12:54
global_name

Hi Jonathan,

thanks for your reply.

The deal is that you can't use DB1_at_HR and DB1_at_SHIP if you are using global_names=true; the link name has to be the same than the global database
name.

But what do I do, if I need the same user to have two db-links to different
schemas on the remote database?

Any idea?

Thanks,
Helmut

-----Ursprüngliche Nachricht-----
Von: Jonathan Lewis [mailto:jonathan_at_jlcomp.demon.co.uk] Gesendet: Mittwoch, 8. Januar 2003 12:14 An: Multiple recipients of list ORACLE-L Betreff: Re: How to create two db-links within one schema when global_names=tr

Look up the details of 'connection qualifiers'.

create public database link DB1_at_HR

    connect to hr identified by pwd_hr using 'DB1';

create public database link DB1_at_SHIP

    connect to shipping identified by pwd_shipping using 'DB1';

Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

Coming soon a new one-day tutorial:
Cost Based Optimisation
(see http://www.jlcomp.demon.co.uk/tutorial.html )

Next Seminar dates:
(see http://www.jlcomp.demon.co.uk/seminar.html )

____England______January 21/23
____USA_(CA, TX)_August

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jonathan Lewis
  INET: jonathan_at_jlcomp.demon.co.uk

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Wed Jan 08 2003 - 09:14:41 CST

Original text of this message

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