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: connect to a remote database

Re: connect to a remote database

From: Stephan Born <stephan.born_at_beusen.de>
Date: Mon, 25 Oct 1999 14:55:51 +0200
Message-ID: <38145357.1E8BBD14@beusen.de>


> Use Database links (if your databases are accessible from your network or
> remote access)
>
> CREATE DATABASE LINK EXAMPLE
> CONNECT TO '(the TNSNames.ora connect string)'
> USING USERNAME
> IDENTIFIED BY PASSWORD;
>
> SELECT *
> FROM TABLE_at_EXAMPLE;
>

You have to name your DB-Link object like the global-name of the db you want to connect to.

You get the global name with

select * from global_name

Regards, Stephan
--


Dipl.-Inf. (FH) Stephan Born   | beusen Consulting GmbH
fon: +49 30 549932-17          | Landsberger Allee 392
fax: +49 30 549932-29          | 12681 Berlin
mailto:stephan.born_at_beusen.de  | Germany
---------------------------------------------------------------


Received on Mon Oct 25 1999 - 07:55:51 CDT

Original text of this message

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