473,544 Members | 1,951 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 16348

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

Similar topics

2
1786
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...
0
2127
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...
2
1395
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...
1
1393
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...
1
1235
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...
2
3860
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
3290
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...
0
3270
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...
0
2719
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...
0
7449
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...
0
7385
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...
0
7642
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. ...
0
7737
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...
0
5950
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...
0
3440
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1861
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
1
1003
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
688
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.