473,480 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with Cross database join

I hope someone can offer me some advice or additional areas to search
for the answer.
I'm trying to do a cross database join on a single server. My searches
indicate that the way to do this is a database link.
Seemed simple enough, however, no matter what I try I get "database
link is not active". My understanding of this error indicates that I
either have the wrong username and password or I have specified a
database that doesn't exist. I finally ended up expanding the query to
create the link to the maximum number of parameters. The statement I
execute is as follows:

CREATE SHARED PUBLIC DATABASE LINK RLINK
CONNECT TO system IDENTIFIED BY manager
AUTHENTICATED BY system IDENTIFIED BY manager
USING '(description=(address=(protocol=tcp)(host=<RETIRE .PROVIDERTECHNOLOGIES.COM>)
(Port = 1521) ) (connect_data= (sid=<retire>)))';

Depending on how I change the variables above I get different errors
when I try to execute against the link.

select * from employer@RLINK;

returns any number of errors ranging from "Authentication" errors to
"TNSListener" errors. I have verified the service names as well as the
listener parameters and I can use these parameters via ODBC. In DBA
studio however the error is consistently "database link is not
active".

What am I missing? Where else should I look for the solution? Is there
some sort of permission that needs to be turned on in order to create
and use database links?
DBA studio makes this seem simple. The dialogs only ask for a few
number of parameters and I have double-checked and triple-checked to
make sure I am entering the right information and I believe I am but
it still won't work.

Thanks,

Eric
Jul 19 '05 #1
0 3773

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2052
by: Dave | last post by:
Hi all, I've been trying to figure this out for the last day and a half and it has me stumped. I've got a web application that I wrote that keeps track of trading cards I own, and I'm moving it...
3
3529
by: Ian T | last post by:
Hi, I've got what I think (probably incorrectly) should be a simple SELECT : Two colums with data like col1 col2 1 50 1 51 2 50
8
4956
by: Matt | last post by:
Hello I have to tables ar and arb, ar holds articles and a swedish description, arb holds descriptions in other languages. I want to retreive all articles that match a criteria from ar and...
14
611
by: signaturefactory | last post by:
I am trying the following query in and oleDbCommand: SELECT PartLocations.LocationName, Sum(PartsJournal.Quantity) AS SumOfQuantity, PartsJournal.PartsLotNumber FROM PartLocations INNER JOIN...
3
2146
by: Klint Gore | last post by:
I've hit a situation where I'm getting an unexpected set of results from a cross join that I've narrowed down to a table alias. If I do (a has 4 rows, b has 1 row) select a.field1, b.* from a...
1
1920
by: Nathan Bloomfield | last post by:
Hi, I am a new database developer and would appreciate some advice on improving the efficiency of my database. The code below is an example of one of the more complex queries in the database...
0
3492
by: Craig J via DotNetMonster.com | last post by:
I'm trying to create a report and am getting "Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope." I have...
9
5738
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just...
3
2080
by: jwwarrenva | last post by:
All, I am far from expert with SQL and have been unable to solve the following problem (stated in generic terms): I have three tables: 1. Employees - contains EmployeeName 2. Years -...
0
7044
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,...
0
6908
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...
0
7045
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,...
0
5341
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,...
1
4782
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2995
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...
0
1300
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 ...
1
563
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
182
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...

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.