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 > View on remote DB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-05-04, 04:19
javri28 javri28 is offline
Registered User
 
Join Date: Oct 2003
Posts: 5
View on remote DB

Hi guys!

Is it possible to create a View in DB2 on the table located on different Database? My colleague swears that it's possible. If yes - it could be exactly what we need.

Sorry if the terminology is wrong - I'm not a DB specialist - that's why I'm asking profies.

Thanks in advance
Reply With Quote
  #2 (permalink)  
Old 05-05-04, 04:33
platho platho is offline
Registered User
 
Join Date: Dec 2002
Posts: 58
Hi,

Yes, you can create a (federated) view to another DB.

In the DB you want to create this view, you have to create a wrapper, a server that points to the remote machine, under that server a nickname to the remote table and then you can create a federated view on top of the nickname(s).

A good redbook about this :
<http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/sg247052.html?Open>

Regards

Peter
Reply With Quote
  #3 (permalink)  
Old 05-05-04, 04:51
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I'm assuming you are using DB2 on Unix/Windows ..
You will have to use Federated Database ...

1) Create DRDA Wrapper
2) Create Server
3) Create Nickname and Usermapping

Please refer to the documentation on Federated Databases

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #4 (permalink)  
Old 05-05-04, 06:28
javri28 javri28 is offline
Registered User
 
Join Date: Oct 2003
Posts: 5
OK.
I'll try to read that huge book.
Thank you, people.
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