Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

16
Warren Heising and Joe Kennedy, IBM Corp. IBM Information Integration: Federated Queries IBM C orporation 2002 [email protected] and [email protected]

Transcript of Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

Page 1: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

Warren Heising and Joe Kennedy, IBM Corp.

IBM Information Integration:

Federated Queries

IBM Corporation 2002

[email protected] and [email protected]

Page 2: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

Disclaimer

The information in this presentation concerns new products that IBM may or may not announce. Any discussion of OEM products is based upon information which has been publicly available and is subject to change. The specification of some of the features described in this presentation may change before the General Availability date of these products.

REFERENCES IN THIS PUBLICATION TO IBM PRODUCTS, PROGRAMS, OR SERVICES DO NOT IMPLY THAT IBM INTENDS TO MAKE THESE AVAILABLE IN ALL COUNTRIES IN WHICH IBM OPERATES.

IBM MAY HAVE PATENTS OR PENDING PATENT APPLICATIONS COVERING SUBJECT MATTER IN THIS DOCUMENT. THE FURNISHING OF THIS DOCUMENT DOES NOT IMPLY GIVING LICENSE TO THESE PATENTS.

TRADEMARKS

THE FOLLOWING TERMS ARE TRADEMARKS OR REGISTERED TRADEMARKS OF THE IBM CORPORATION IN THE UNITED STATES AND/OR OTHER COUNTRIES:

AIX, AS/400, DB2, OPERATING SYSTEM/2, OS/400, ES/9000, OS/390, OS/2, RISC, RISC SYSTEM/6000, SQL, SQL/DS, VM/ESA, IBM, APPROACH, NOTES

THE FOLLOWING TERMS ARE TRADEMARKS OR REGISTERED TRADEMARKS OF THE

MICROSOFT CORPORATION IN THE UNITED STATES AND/OR OTHER COUNTRIES:MICROSOFT, WINDOWS, WINDOWS NT, ODBC, WINDOWS 95, WINDOWS 98, WINDOWS 2000, WINDOWS ME

All other trademarks are trademarks of their respective companies

Page 3: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

Agenda

You are here …

Page 4: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

IBM Information Integration Infrastructure II Infrastructure enables integration of diverse, distributed and real

time data as if it were a single source, no matter where it all resides. Key features of the infrastructure include ability to; Federate, Search, Cache, Transform, And replicate desperate data

Page 5: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

DB2 FamilyMVS AIXVM OS2VSE HP-UXOS/400 SUNSINIX NTSCO Others

Non-RelationalIMS

VSAM

Other ServersOther Servers

InformixInformixOracleOracleSybaseSybase

MicrosoftMicrosoftTeradataTeradata

External Files

Cross AccessEDA/SQL

Supported Data Sources

DB2

WEB Data Sources

OLE/OLE DB data sourcesLotus Notes

MS ExchangeMS Excel

MS Access, ...

DB2 ClientDB2 Connect

NativeInterface

Data Links

Third-partyGatewayTABLE

UDFs

Personal Edition

to Universal Data

AST cache of external data(reliability/perf)

DB2 Federation

Extenders

Page 6: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

Federation Single image of disparate data For Federated Queries between DB2 and Informix;

Only DB2 UDB ( includes Relational Connect) with wrappers

For Federated Queries between DB2 and non IBM databases and access to non-relational sources (XML) and unstructured data; DB2 UDB (includes Relational Connect) DB2 UDB Information Integrator DB2 UDB Integrator for Content

Page 7: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

From A to B

db2 => IDS, IIF, XPS Relational Connect*

db2 => Oracle, Sybase, SQL Server (more to come)

Information Integrator*

db2 => zSeries DB2 DB2 Connect

db2 => somewhere else Information Integrator for Content

* Was D.J., now Info Integrator

Page 8: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

How does “Federation” Work?

You are here … Target 1

Target N

•Federated server

•Client SW for targets 1…N

Don’t move data, “play it as it lays”

•Network client configured and operational

•Authentication

Page 9: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

From db2 => to Informix with DB2 Relational Connect

You are here …XPS

IDS

•DB2 v8.1( includes Relational Connect)

•DB2 Informix Client SDK

•TCP Network listener configured and operational

•Authentication

Page 10: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

DB2 V8 Relational Connect Configuration GUI

Page 11: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

DB2 V8 Relational Connect Configuration GUI

Page 12: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

Relational Connect – hints and tipshttp://www-3.ibm.com/software/data/db2/udb/ad/db2irfp7/db2ir101.htm

• Run install: The order has to be V8.1, Relational Connect, then latest fixpack

• IFMX client software• Add Federated Data Sources1. Set the environment variables and update the profile registry. 2. Link DB2 to the Informix client software – djxlinkInformix (pre 8.1)3. Recycle the DB2 instance. 4. Create the Informix sqlhosts file. 5. Set up db2dj.ini6. Create the wrapper. 7. Optional: Set the DB2_DJ_COMM environment variable (double check)8. Create a server. 9. Create a user mapping. 10. Create nicknames for tables, views and Informix synonyms

Page 13: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

Relational Connect Syntax

connect to sample;

create wrapper informix;

create server rcxps type informix version 8 wrapper informix

options ( node 'mkxps' , dbname 'stores_demo', cpu_ratio '.1' io_ratio '.1' );

create user mapping for db2inst1 server rcxps

options ( remote_authid 'informix', remote_password ‘techconf' );

create nickname rcx_customer for rcxps."informix"."customer";

select * from rcx_customer;

Page 14: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

More Capabilities

Target 1

Target N

•Read/Write

•XML Extender

•WebSphere MQSeries

Page 15: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

WorldWide XML Queues: WXQ

MQ Series

Informix

DB2

Page 16: Federated queries (DB2 to Informix) - Joe Kennedy and Warren ...

Future Directions

•Information Integrator

•Informix Relational Connect bundled with DB2 V8

•New functionality – Read/Write

•New product packaging

•Please try this at home

•Start now with DB2 V8 and Informix. Oracle, Sybase, etc coming soon.