Hi saurabh,
There are two types of database links.
Explict database link the syntax is :-
CREATE DATABASE LINK <db link name>
CONNECT USING user_name identified by passwd
USING connect_string;

Default database link the syntax is :-
CREATE DATABASE LINK <db link name>
CONNECT USING current_user
USING connect_string;
In this case, it will try to connect to the remote
database with the user_name / passwd of the local
database currently logged in.

to access table /view/synonym from a remote db
use
select * from <table_name/view_name>@<dblink_name>;

But to make this db link and then to access first 
make the connect string of the remote database in the
local machine in the tnsnames.ora using net 8 easy
configuration tool.







 --- Saurabh Sharma <[EMAIL PROTECTED]> wrote: > hi
all,
> 
> can any body has idea of how to create db links. we
> have 4-5 servers some are test and some producn. 
> while requiring some info from other DBs how do i
> refer them ythrough DBlinks.
> 
> Saurabh Sharma
> 
> [EMAIL PROTECTED]
> http://www.geocities.com/saurabh00pc/stride.html
> 
>  

____________________________________________________________
Do You Yahoo!?
For regular News updates go to http://in.news.yahoo.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: =?iso-8859-1?q?milind=20ambegaoker?=
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).

Reply via email to