If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > creating and accessing federated database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-27-05, 14:29
MahendraSetty MahendraSetty is offline
Registered User
 
Join Date: Apr 2004
Posts: 48
creating and accessing federated database

Hi,

Can anybody give me all the steps needed to create a federated database and how to access data from such a database.

We have UDB 7.1 on Linux. The server name is DEVT.

I have 2 databases DEVPGM and DEVPLD and I want to write a select statement joining the tables from these 2 databases.

I tried :
Creating wrappers : Success
Creating Server : It says the node name is not valid
what are the other steps involved ?

Thanks
Reply With Quote
  #2 (permalink)  
Old 01-28-05, 10:29
RonD RonD is offline
Registered User
 
Join Date: Aug 2004
Posts: 33
We ran into the same situation with DB2 Ver 7 on Windows. Since the default to Instance isn't in the node directory it can't locate the Node. So what we did is catalog another node on the same server and then catalog the databases to that node and referenced them.
Reply With Quote
  #3 (permalink)  
Old 01-28-05, 12:00
fohana fohana is offline
Registered User
 
Join Date: Jan 2005
Location: Rio de Janeiro - Brazil
Posts: 28
More information

Are those 2 databases create on the same machine?

What were the commands you used to create the federation?
Reply With Quote
  #4 (permalink)  
Old 01-28-05, 12:04
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
You may as well catalog it as a local node ..

Quote:
Originally Posted by RonD
We ran into the same situation with DB2 Ver 7 on Windows. Since the default to Instance isn't in the node directory it can't locate the Node. So what we did is catalog another node on the same server and then catalog the databases to that node and referenced them.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 02-01-05, 09:32
MahendraSetty MahendraSetty is offline
Registered User
 
Join Date: Apr 2004
Posts: 48
Thank you all for the replies...

The 2 database are on same machine created with commands like :

Create database devpgm on '/database/...../.../devpgm' catalog...

and the commands used for creating federation are :
Creating wrappers 'CREATE WRAPPER DRDA' : Success
Creating Server 'CREATE SERVER "DEVMF4" TYPE DB2/390 VERSION 7.1 WRAPPER "DRDA" AUTHID valid_id PASSWORD valid_passwd OPTIONS ( NODE 'MSNODE', DBNAME 'DEVPLD' ) : It says the node name is not valid
Are there any other steps involved ?


Sathya : How do I catalog it as a local node ? And after that how do I access data ?

Thanks
Reply With Quote
  #6 (permalink)  
Old 02-01-05, 10:49
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Just as you catalog a remote node as tcpip, you may catalog a local node

db2 catalog local node <nodename>

Then you should be able to use the node just as you would any remote node ..

If I understand right, cataloging as local node will continue using inter process communications which will not be the case for a tcpip node


HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On