473,473 Members | 2,044 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Federated databases on different instances on the same machine

When setting up federation between two databases on the same instance
everything works fine.

When trying to do the same between two databases on different instances
on the same machine I get into trouble.
[IBM][CLI Driver][DB2/NT] SQL1013N The database alias name or
database name "UDB" could not be found. SQLSTATE=42705

"db2 list db directory" gives me

System Database Directory

Number of entries in the directory = 8

....
Database 3 entry:
Database alias = TMASTER
Database name = TMASTER
Database drive = D:\DB2
Database release level = a.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =

Database 4 entry:
Database alias = TEMPPROD
Database name = TEMPPROD
Node name = TEST
Database release level = a.00
Comment =
Directory entry type = Remote
Authentication = SERVER
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =

.....

Database 7 entry:
Database alias = UDB
Database name = UDB
Database drive = D:\DB2
Database release level = a.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
"db2 list db directory on d:\db2" gives me
Local Database Directory on d:\db2

Number of entries in the directory = 5

Database 3 entry:
Database alias = TMASTER
Database name = TMASTER
Database directory = SQL00003
Database release level = a.00
Comment =
Directory entry type = Home
Catalog database partition number = 0
Database partition number = 0

Database 4 entry:
Database alias = UDB
Database name = UDB
Database directory = SQL00023
Database release level = a.00
Comment =
Directory entry type = Home
Catalog database partition number = 0
Database partition number = 0
I'm trying to create a Server definition in TEMPPROD to access tables
in UDB.

Windows 2003, UDB 8.2 ESE

I have earlier (succesfully) set up federation between UDB and DB2 on
z/OS on the same machine.

I guess the problem is related to "Indirect" and "Remote" but I can't
figure out in what way!

Can anyone of you experts out there tell me?

Nov 12 '05 #1
1 2142
Tim
Hi

You will need to ensure that you catalog the other instance despite the
fact its on the same machine and then catalog the other database under
that instance. So if you have two instances A and B with databases a
and b under each respective instance to create a nickname on a for a
table in b you would have to catalog instance B on A, catalog database
b on A and then at that point you should be able to create a server for
b on a. At least that's what I do on Linux and it works without any
problems for both databases under the same instance, another instance
on the same machine or an instance on a remote machine.

regards
tim

Nov 12 '05 #2

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

Similar topics

1
by: Terry | last post by:
Hi All, Im using DBI/DBD to connect to a db2 federated database. Id like to detect if the different databases in the federated groups are active. DBI provides the $dbh->ping command, but this...
1
by: Terry | last post by:
Problem: ========= Unknown column appearing in federated tables. Description: ============ Local database (L) is an established 'federated' database, extracting values from multiple remote...
4
by: uthuras | last post by:
Greetings all, Is it possible to have federated db feature implemented among DB2 family? I intend to create federated within DB2 databases. I have 2 databases TestA and TestB. I have some base...
0
by: Yaro | last post by:
Hello (DB2 8.2.2 Win) Sometimes, we need select data from 2 databeses. Databases were on one instance, I used federated databases mechanism. Worked fine. Now, databases are on 2 instances and...
5
by: Alias | last post by:
Hi Guys , I am trying to create a federated database link between 2 UDB 8.1 databases running on AIX on the same box but under different instances. When i tried this thru the control centre , I...
5
by: Klemens | last post by:
I get SQL30090 reason 18 by trying to do an insert in a federated table and an update in a local table in one transaction Do I have to change some settings to get done or ist this not possible by...
2
by: Tim V. | last post by:
Here's the layout: AIX v5.2, DB2 v8 fp8 running in 64bit I've got a Multi-partitioned db running on lpar4 and I want to connect it to 2 instances running on lpar13. We'll deal with just 1...
4
by: Praveen_db2 | last post by:
Hi All DB2 8.1.3,Windows I have 2 databases in a single instance, say DB_1 and DB_2.I need to query a table from DB_1 in DB_2.I am try to use a nickname for it.But nickname creation is not...
2
by: Damir | last post by:
Hello, I have a strange problem with federated access between two DB2 databases, both on AIX 5, both instances V9.1 (FP02). For the sake of this post, the two DB2 databases are named: 1. "live"...
0
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
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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
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
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...
1
muto222
php
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.