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 > Instances of server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-03, 12:29
mark_tim1999 mark_tim1999 is offline
Registered User
 
Join Date: Dec 2003
Posts: 14
Instances of server

Hai Guys,
if we have 2 tables residing on 2 diff servers.....to query this we use federated databases.Fine with that.
Imagine if these two diff servers are INSTANCES of the same server....then will a single query work querying these tables on two diff servers which are the instances of the same server?
Thanks,
Mark.
Reply With Quote
  #2 (permalink)  
Old 12-29-03, 12:39
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Instances of server

The federated databases can use any two db2 databases, the databases can be on the same instance, they can be on two instances on the same machine, they can be two instances on different machines

HTH
Sathyaram

Quote:
Originally posted by mark_tim1999
Hai Guys,
if we have 2 tables residing on 2 diff servers.....to query this we use federated databases.Fine with that.
Imagine if these two diff servers are INSTANCES of the same server....then will a single query work querying these tables on two diff servers which are the instances of the same server?
Thanks,
Mark.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 12-29-03, 12:53
mark_tim1999 mark_tim1999 is offline
Registered User
 
Join Date: Dec 2003
Posts: 14
Instances of server

Hello SatyaRam,
Forget about the federated databases.My question is if I am not using the federated databases,then Can i use a query whihc queries these two tables on two diff servers which are instances of the same server?
Thanks,
Mark.
Reply With Quote
  #4 (permalink)  
Old 12-29-03, 13:04
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: Instances of server

You can use, but not in the same query ... But, you application can connect to multiple databases ...

You can start with 'SET CLIENT' command ... Refer to the command reference for details

Cheers
Sathyaram
Quote:
Originally posted by mark_tim1999
Hello SatyaRam,
Forget about the federated databases.My question is if I am not using the federated databases,then Can i use a query whihc queries these two tables on two diff servers which are instances of the same server?
Thanks,
Mark.
__________________
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