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 > SQL that accesses tables in different DB2 subsystems

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-03-04, 16:04
Grumpy Grumpy is offline
Registered User
 
Join Date: Jan 2004
Posts: 9
SQL that accesses tables in different DB2 subsystems

...is there a way to do it?

Running DB2 V7 on OS/390 - want to be able to access tables that reside in different subsystems with the same SQL. Is there some sort of DB2 technology that provides for this sort of functionality?

Thanks.

Last edited by Grumpy; 03-03-04 at 16:54.
Reply With Quote
  #2 (permalink)  
Old 03-03-04, 16:58
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: SQL that accesses tables in different DB2 subsystems

Quote:
Originally posted by Grumpy
...is there a way to do it?

Running DB2 V7 on OS/390 - want to be able to access tables that reside in different subsystems with the same SQL. Is there some sort of DB2 technology that provides for this sort of functionality?

Thanks.
This has been discussed before, e.g. here:

Transfer Data from Table A to Table B in Different Database in Different Systems
Reply With Quote
  #3 (permalink)  
Old 03-03-04, 19:33
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Ask your DB2 DBA or DB2 systems programmer about DDF (distributed data facility).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 03-04-04, 03:13
Heinz Buehler Heinz Buehler is offline
Registered User
 
Join Date: Jan 2004
Location: Zuerich, Switzerland
Posts: 13
No need to ask - this is simply not implemented.
you can access different DB2 systems in the same unit of work, but not in the same SQL statement
Reply With Quote
  #5 (permalink)  
Old 03-04-04, 19:05
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Maybe Grumpy does't really need both tables to be in the same single SQL statement. One can almost always make it work with some program logic.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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