Beruflich Dokumente
Kultur Dokumente
Guest Blogger Bella Kogan works on the DB2 LUW Technical support team and has over 10 years experience with
Databases.
The following example shows how to setup federation between two DB2 LUW databases.
Server 1 - Remote Data Source (server where the actual table resides)
--------
hostname: warehouse
db2level: v9.5
svcename: 21267
instance: db2inst1
password: ibmlab
db name : sample
tab name: test1
db2inst1@warehouse /home/db2inst1 > hostname
warehouse
db2inst1@warehouse /home/db2inst1 > db2level
DB21085I Instance "db2inst1" uses "64" bits and DB2 code release "SQL09052" with
level identifier "03030107".
Informational tokens are "DB2 v9.5.0.2", "s080911", "U820796", and Fix Pack
"2a".
Product is installed at "/home/db2inst1/sqllib".
To verify setup:
list db directory
System Database Directory
Number of entries in the directory = 2
Database 1 entry:
Database alias = STSAMP
Database name = SAMPLE
Node name = TCPFED
Database release level = b.00
Comment =
Directory entry type = Remote
Catalog database partition number = -1
Alternate server hostname =
Alternate server port number =
Database 2 entry:
Database alias = SAMPLE
Database name = SAMPLE
Local database directory = /home/db2inst1
Database release level = b.00
Comment =
Directory entry type = Indirect
Catalog database partition number = 0
Alternate server hostname =
Alternate server port number =
list tables
Table/View Schema Type Creation time
------------------------------- --------------- ----- --------------------------
NTEST1 DB2INST1 N 2009-08-07-21.16.01.592070
1 record(s) selected.