Never used it, have been playing with it though.
Suppose you have server A and server B. Whenever you select data in server A, the database in server B is also accessed.
On the instance on A, set the DBM CFG FEDERATED to "YES" and re-start the instance.
On server B I created an userid "dbtest"
Then go to the control centre/federated database objects and let the widgets guide you thought the steps. I did it on windows and saved the SQL:
step 1: create the wrapper
Code:
CREATE WRAPPER DRDA LIBRARY 'db2drda.dll';
step 2: the server
Code:
CREATE SERVER C90BANK TYPE DB2/UDB VERSION '9.5' WRAPPER DRDA AUTHID "dbtest" PASSWORD "*****" OPTIONS( ADD DBNAME 'C90BANK');
step 3: the user mapping
Code:
CREATE USER MAPPING FOR myUserId SERVER C90BANK OPTIONS ( ADD REMOTE_AUTHID 'dbtest', ADD REMOTE_PASSWORD '*****') ;
step 4: the nickname
Code:
CREATE NICKNAME NICKschema.tablename FOR C90BANK.schema.tablename ;
This worked for me and a nice side-effect:
doyouDB2.com - What just happened to me - doyouDB2
This works for "free" when you connect 2 DB2 servers. When you want to connect to collegue-databases you must buy additional licenses.