Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: db links...
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.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: =?iso-8859-1?q?milind=20ambegaoker?= INET: milindora_at_yahoo.co.in 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: 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 Thu Jul 05 2001 - 02:22:38 CDT
![]() |
![]() |