?
Solved

DB Link ... weird

Posted on 2013-05-30
3
Medium Priority
?
367 Views
Last Modified: 2013-06-19
Have a weird situation; 2 db links pointing to same user/pwd & same db, one is working and one is not, only the db link name is changed, getting this error ... any clue, how to identify, what's the problem?

ORA-02085: database link orcl2.WORLD connects to orcl.WORLD

Thanks
0
Comment
Question by:mkhandba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
johnsone earned 1500 total points
ID: 39208655
The error text gives you the solution:

ORA-02085: database link string connects to string
Cause: a database link connected to a database with a different name. The connection is rejected.
Action: create a database link with the same name as the database it connects to, or set global_names=false.

Changing the setting of GLOBAL_NAMES should get it working.  Here is the documentation for that parameter:

http://docs.oracle.com/cd/E11882_01/server.112/e25513/initparams096.htm#CHDGEHBB
0
 
LVL 25

Expert Comment

by:clockwatcher
ID: 39208663
If your global_names parameter is set to TRUE, then  your database link name must be the same as the global_name of your remote database.

SQL> show parameter global_name
 
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
global_names                         boolean     TRUE

Open in new window

0
 
LVL 25

Expert Comment

by:clockwatcher
ID: 39208667
Sorry... didn't see johnsons' post before I hit submit.
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question