473,715 Members | 5,945 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Oracle Database Links (DB Link)

debasisdas
8,127 Recognized Expert Expert
DATABASE LINK
===============
A database link is a path through which a remote user in another database can connect to any other database. Once created database link exists as an object in the user schema.

DATABASE LINK -3 TYPES
=============== ========
PRIVATE--DEFAULT--A PRIVATE DBLINK IS ONLY AVAILABLE TO THE USER WHO HAS CREATED IT.IT IS NOT POSSIBLE FOR A USER TO GRANT ACCESS ON A PRIVATE DBLINK TO OTHER USERS.
-------
PUBLIC--IT IS AVAILABLE TO ALL THE USERS.
-------
SHARED--SHARED DATABASE LINK USES SHARED SERVER CONNECTION TO SUPPORT DATABASE LINK CONNECTION. IF THERE ARE MULTIPLE CONCURRENT DATABASE LINK ACCESS INTO A REMOTE DATABASE, SHARED DATABASE LINK CAN BE USED TO REDUCE THE NO OF SERVER CONNECTIONS REQUIRED. WITHOUT THE SHARED CLAUSE EACH DATABASE LINK CONNECTION REQUIRES A SEPARATE CONNECTION TO THE REMOTE DATABASE.

In dblink we can use 2 types of login.
-------------------------------------------------------
1.DEFAULT LOGIN----USER NAME AND PASWORD IS SAME IN BOTH THE DATABASES.

Syntax
-------------
CREATE [PUBLIC] DATABASE LINK <DB.N.> CONNECT TO CURRENT_USER USING<'CONNECTI ON STRING'>

Expand|Select|Wrap|Line Numbers
  1. create public database link daslink connect to current_user  using 'ORCL' 
2.EXPLICIT LOGIN-----USER NAME AND PASWORD IS DIFFERENT IN BOTH THE DATABASES.

Syntax
-------------
CREATE [PUBLIC|SHARED] DATABASE LINK <DBLINK NAME> CONNECT TO<USERNAME>IDE NTIFIED BY<PASSWORD> USING<'CONNECTI ON STRING'>

Expand|Select|Wrap|Line Numbers
  1. CREATE PUBLIC DATABASE LINK DDLNK CONNECT TO SCOTT IDENTIFIED BY TIGER USING 'ORCL'
  2.  

Note:---TO CREATE PUBLIC DBLINK THE USER MUST HAVE CREATE PUBLIC DATABASE LINK SYSTEM PREVILEDGE.
May 8 '07 #1
0 16376

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1791
by: A.M. de Jong | last post by:
Hi, In our environment a database view is based on columns in a table from an oracle database. This is a linked server I believe. I am told that since we use this construction no where clause is possible. So we get to many rows in our database which we have to filter later on. How can we do this differently ?? Since it takes a lot of time to go through this process.
0
2142
by: Daisy | last post by:
To empower your .NET web services with the Oracle Database, download Oracle Data Provider for .NET (ODP.NET) from : http://otn.oracle.com/tech/windows/odpnet/index.html Try out the new features for XML support like: - Store XML data natively in the database server as the Oracle database native type, XMLType. - Access relational and object -relational data as XML data from an Oracle database instance into Microsoft .NET
2
1402
by: Ike | last post by:
Can someone show me how I might be able to connect to two separate databases, and create a query from the two? I understand in Oracle this is referred to as "database links" but is there a more general way to do this (i.e. will work with, say, mysql and other DBs?) I want to comapre a field that is present in two separate files on two seperat databases. Thanks, Ike
1
1397
by: Steve Kershaw | last post by:
Can somebody help me please?! I'm using MS Visual Studios 2005 and in the Server Explorer I can see the Oracle database but when I click on the tables link I don't see any tables and the "+" sign next to the tables link disappears. What is the reason for this? Is there some kind of magic that allows me to see the tables? Thanks for your help.
1
1240
by: ananth | last post by:
Hi All, I have a java code that retrievies values from a table in a oracle database. There are more than 100 columns and 100000 records for the table in the database and i am able to retrieve 88 records for 5 mins which doesnt suit the requirement. I need to retrieve 300 records per minute is there any alternative available so that i can optimize the query or use any java methods to retrieve the values in the specified time ...
2
3870
by: Aguyngueran | last post by:
Hello there I've got two Oracle database instances on different machines, creating database link with name TEST causes to create database link with name: 1) on the first machine TEST.US.ORACLE.COM 2) on the second machine only TEST Why ? Both instances have GLOBAL_NAMES set to false.
0
3320
by: Jack | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available. http://a.uuload.com/Oracle-Database.htm Unlock the Value of Your IT System Confio Software's Ignite for Oracle uses wait-event analysis to improve database performance by 65% or more. Gain visibility of every Oracle wait event. Download free...
0
3292
by: Winder | last post by:
Training Classes for Oracle10g, 9i, 8i Certification training in Oracle10g and 9i: DBA, Developer, Discoverer. training conducted at your location worldwide. Courseware licensing also available. http://a.uuload.com/Oracle-Database.htm Unlock the Value of Your IT System Confio Software's Ignite for Oracle uses wait-event analysis to improve database performance by 65% or more. Gain visibility of every Oracle wait event. Download free...
0
2731
by: akshalika | last post by:
I am new to Biztalk. In my project we need to connect oracle database and insert data into oracle table using BizTalk project. I use WCF Adapter pack(SP2). I create biztalk project then using Consume Adapter Service Add-in create schemas to insert data into oracle database and tow-way send port binding file Then create orchestration and logical receive port send port, Request-response port then after correctly connect those port with message...
0
8821
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8718
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9340
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9196
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9047
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5967
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3175
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2539
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.