what’s new for db2 clients and drivers? lots! · pdf filewhat’s new for db2...

65
© 2008 IBM Corporation ® What’s new for DB2 Clients and Drivers? LOTS! Paul Wirth [email protected] V3

Upload: buidung

Post on 05-Feb-2018

223 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

© 2008 IBM Corporation

®

What’s new for DB2 Clients and Drivers?LOTS!

Paul [email protected]

V3

Page 2: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

2

Information contained in this material has not been submitted to any formal IBM review and is distributed on "as is" basis without any warranty either expressed or implied. Measurements data have been obtained in laboratory environment. Information in this presentation about IBM's future plans reflect current thinking and is subject to change at IBM's business discretion. You should not rely on such information to make business plans. The use of this information is a customer responsibility.

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, DATABASE 2, DB2, e-business logo, Enterprise Storage Server, ESCON, FICON, OS/390, OS/400, ES/9000, MVS/ESA, Netfinity, RISC, RISC SYSTEM/6000, System i, System p, System x, System z, IBM, Lotus, NOTES, WebSphere, z/Architecture, z/OS, zSeries

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

For additional information see ibm.com/legal/copytrade.phtml

Disclaimer and Trademarks

Page 3: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

3

What’s new for DB2 Clients and Drivers?Agenda Highlights

– My List of Key Client and Driver Fixpacks

IBM’s Strategy Is To Remove The Reliance On The DB2 Connect Modules

IBM Data Server Clients and Drivers

IBM Data Server Driver Package

IBM Data Server Driver for ODBC/CLI

Documentation and References

It’s so

z/Easy…

Page 4: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

4

DB2 Client and Driver – Some Highlights DB2 9.1

– FP1 DB2 9 for z/OS LOB Progressive Streaming for locator Values• IBM Data Server Provider for .NET support of trusted context

– FP2 DB2 .NET Data Provider is enhanced and support is added for the .NET Framework 2.0.

– FP5 Secure Sockets Layer (SSL) protocol is supported by database clients.

DB2 9.5 Informix client and driver support, new name IBM Clients/Drivers

– Java driver DB2 9 for z/OS Trusted Context support– FP1 IBM® Data Server Driver for JDBC and SQLJ Version 4.0 includes a number of

JDBC 4.0 capabilities. To use these capabilities, you need an SDK for Java, Version 6. – FP2 Secure Sockets Layer (SSL) protocol is supported by database clients. – FP3 Client-side support for DB2 for z/OS® Sysplex capabilities in IBM data server

clients and non-Java data server drivers that have a DB2 Connect license. Dec. 2008 • The IBM Data Server Drivers now include application header files for open source

drivers, support OLE DB, and can use a new configuration file. – FP4 db2drdat is shipped with Data Server driver Package from 9.5 FixPack 4 and

higher.

Page 5: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

5

DB2 Client and Driver – Some Highlights…

DB2 9.7 – Deprecation Control Center and DB2 Admin Server Tools– FP2 Includes DB2 Command Line Processor Plus (CLPPlus) for dynamically creating,

editing, and running SQL statements and scripts. Supports aliases in db2dsdriver.cfg file.

– FP2 IBM Data Server Driver provides registerdsn, a command line utility to register ODBC DSN on Windows ODBC Driver Manager. (This is key for IBM Data Server Driver adoption for Microsoft web servers that have ADO.Net, OLE-DB and ODBC applications installed.)

– FP2 32–bit drivers included in 64–bit package• Starting in Version 9.7 Fix Pack 2, the 32-bit versions of IBM Data Server Provider for

.NET are included in the 64-bit driver package. When you install the 64-bit drivers, the 32-bit drivers are also installed, in a separate directory named, sqllib\bin\netf20_32.

Page 6: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

6

DB2 Client and Driver – Some Highlights…

DB2 9.7 continued…– FP3 Full support for db2dsdriver configuration file extended to IBM data server

clients for CLI and open source applications• Starting in Version 9.7 Fix Pack 3, the db2dsdriver.cfg configuration file can be used to retrieve

all database connection information and properties for CLI and open source applications that use IBM® Data Server Client and IBM Data Server Runtime Client.

• In previous releases, IBM Data Server Client and IBM Data Server Runtime Client used the db2dsdriver.cfg configuration file to retrieve only Sysplex-related settings. In Version 9.7 Fix Pack 3 and later, CLI and open source applications that use IBM Data Server Client and IBM Data Server Runtime Client can use information from the db2dsdriver.cfg configuration file to connect to a supported database. Other applications that use IBM Data Server Client and IBM Data Server Runtime Client, such as .NET applications or applications that use embedded SQL, can retrieve only Sysplex-related settings from this configuration file.

• Starting in Version 9.7 Fix Pack 3, IBM Data Server Provider for .NET supports DB2 Universal Database™ Version 10 for z/OS® which includes support for client disable dynamic statement cache, extended indicators, Timestamp with timezone, and New explain features.

– FP3a Current Fix Pack recommended for DB2 10 for z/OS support• I also recommend this Fix Pack as the minimum level for IBM Data Server Driver

Package adoption

Page 7: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

7

What’s new for DB2 Clients and Drivers?Agenda Highlights

IBM’s Strategy Is To Remove The Reliance On The DB2 Connect Modules– Review of Simplified Database Connections– Avoidance of Binding Driver Packages

IBM Data Server Clients and Drivers

IBM Data Server Driver Package

IBM Data Server Driver for ODBC/CLI

Documentation and References

It’s so

z/Easy…

Page 8: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

8

DB2 z/OS Lab Strategic Goal:Avoid the use of DB2 Connect Gateways

IBM Data Server Drivers and Clients as requesters: The IBM strategy is to remove the reliance on the DB2 Connect modules and

replace DB2 Connect with the IBM Data Server Drivers or Clients. While DB2 Connect licenses (in the form of DB2 Connect license files) are still required, you can replace DB2 Connect modules with the IBM Data Server Drivers or Clients and receive equivalent or superior function. In addition, you can reduce complexity, improve performance, and deploy application solutions with smaller footprints for your business users.

With DB2 for LUW Version 9.5 FixPack 3 or FixPack 4 you can implement the DRDA AR functions for your distributed applications with varied degrees of granularity. Instead of the current function and large footprint of DB2 Connect, you can choose from the IBM Data Server Drivers, the IBM Data Server Runtime Client, and the IBM Data Server Client. The IBM Data Server Drivers include:

IBM Data Server Driver for JDBC and SQLJ IBM Data Server Driver for ODBC and CLI IBM Data Server Driver Package

Source: IBM Redbook - DB2 9 for z/OS: Distributed Functions SG24-6952 Section 2.3

Page 9: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

9

DB2 z/OS Lab Strategic Goal:Elimination of DB2 Connect Gateways…

Elimination of DB2 Connect Gateways Provides:– Simplifies Network Topology

• Application server direct connection to DB2 z/OS– Improves Performance

• Elimination of network hop and DB2 Connect Gateway routing – Improves Availability

• DB2 Connect Gateway clustering eliminated– Simplifies Code Maintenance

• Update code of clients/drivers only and no coordination of gateway code changes Just Add DB2 Connect License File to Client or Driver

Be careful when considering the elimination of DB2 Connect Gateways that you don’t violate current DB2 Connect licensing agreement. If you company has any other version than DB2 Connect Unlimited Edition, I would suggest contacting your IBM Sales Specialist to verify compliance

Multi-transport models such as Tuxedo, WebLogic, and Encina still require a middle-tier DB2 Connect Server.

Page 10: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

SQL Packages Adoption of IBM Data Server Drivers reduces the needs for client package binds Dynamic SQL packages standardized between CLI, .NET and JCC in V8 Only changed once since then (driven by z/OS unique change) Changes documented:

http://www.ibm.com/developerworks/wikis/display/DB2/DB2+and+.NET+FAQs#DB2and.NETFAQs-ChangesinCLI%2F.NETandJDBCpackages

Changes in CLI / .NET and JDBC packages– The packages were standardized in V8 of the DB2 LUW and DB2 Connect

clients. The following is the change history of these packages: Dynamic packages SYSSHxyy, SYSSNxyy, SYSLHxyy, SYSLNxyy:

– V8 GA - created SYSSTAT misc static statements:

– V8 GA - created – V9.1 FP2, V9.5 GA - added additional sections for Jcc z/OS type 2

Rebinds only need to happen when upgrading across one of the change points listed above. For example, upgrading fro V8 GA to V9.1 GA would not require a rebind. However, any upgrade from V9.1 FP1 would technically require a rebind because the SYSSTAT package changed. However, the change affected the Jcc z/OS type 2 driver only, thus CLI and .NET, and other servers, need not rebind as they will be unaffected by the change.

Page 11: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

11

What’s new for DB2 Clients and Drivers?Agenda Highlights

IBM’s Strategy Is To Remove The Reliance On The DB2 Connect Modules

IBM Data Server Clients and Drivers– Review of Clients and Drivers Available– Deployment Strategies– Review of Client Setup

IBM Data Server Driver Package

IBM Data Server Driver for ODBC/CLI

Documentation and References It’s so

z/Easy…

Page 12: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

IBM Clients and Drivers 9.7 The IBM Data Server Runtime Client: is approximately 360MB in size and provides a means for

applications to be executed against remote DB2 databases. GUI tools are not shipped with the IBM Data Server Runtime Client. Support for common database access interfaces: JDBC, ADO.NET, OLE DB, ODBC, DB2 Command Line Interface (CLI), PHP, and Ruby. This includes drivers and capabilities to define data sources. IBM Informix Dynamic Server support for PHP, Ruby, .NET and JDBC

The IBM Data Server Client: is a 184MB collection of client application drivers and tools for DB2 and Informix IDS data servers. The set of application drivers for DB2 include: embedded SQL, ODBC/CLI, JDBC/SQLJ, OLEDB, .NET, PHP, Perl, and Ruby. Data access and administration tools are providing including: DB2 Control Center (Windows and Linux) and DB2 Command Line Processor (CLP). The set of application drivers for Informix IDS v11.10, or later, include: JDBC, .NET, PHP, and Ruby. The IBM Database add-ins for Visual Studio 2005 are provided to simplify data access for .NET applications for both DB2 and IDS data servers.

IBM Data Server Driver for ODBC, CLI: is a 54MB lightweight deployment solution for Windows applications. It provides runtime support for applications using DB2 CLI API, ODBC API, or .NET API without the need of installing the Data Server Client or the Data Server Runtime Client. IBM Informix Dynamic Server support for .NET, PHP, and Ruby.

IBM DB2 Driver for JDBC and SQLJ (Aka the Java Common Client (JCC)/Universal Driver/Type-4 driver) is a 9 MB fully redistributable client provides JDBC and SQLJ applications access to DB2 data servers This 2 MB fully redistributable client provides JDBC and SQLJ applications access to DB2 data servers without installing and maintaining DB2 client code. If you are connecting to a DB2 for System i or DB2 for System z data server, you are still required to purchase the DB2 Connect product.

IBM Data Server Driver Package: is a 70MB lightweight deployment solution for Windows applications. For applications using ODBC, CLI, .NET, OLE DB, PHP, Ruby, JDBC, or SQLJ, use . IBM Informix Dynamic Server support for .NET, PHP, and Ruby. Combines IBM Data Server Driver for ODBC, CLI and IBM DB2 Driver for JDBC plus .Net DB2® Command Line Processor Plus (CLPPlus) for dynamically creating, editing, and running SQL statements and scripts.

Page 13: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

Choosing the right Client/Driver

There is a functional overlap Should balance functionality with footprint

13

Page 14: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

Client Deployment Strategies Majority of client workstations are runtime oriented

– End user workstations– App servers

Runtime deployment IBM Data Server Driver– IBM Data Server Driver highly recommended - Lightest runtime focused client package– Common client configuration across multiple levels– No migration to move to newer levels - No database directory

Developer deployment– Essentially runtime plus tooling– Start with IBM Data Server Driver– Add Tooling package:

• Data Studio for Java• Microsoft Visual Studio Add-Ins for .NET

(IBM Data Sever Package includes ADO.Net provider) Administrator deployment

– Using CLP for administration - Investigate use of CLP Plus– Use Data Server Runtime Client

DBA and All others– Use Data Server Client

Reminder: The larger the client package, the more that is included, the more that needs to be rebound

LargeMB

SmallMB

Page 15: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

DB2 V8, V9, V9.5 and V9.7 Clients and fix packs:http://www.ibm.com/support/docview.wss?rs=56&uid=swg27007053Documentation can be downloaded from: http://www.ibm.com/support/docview.wss?rs=71&uid=swg27009474

Page 16: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

So… What would I see at the download site?DB2 9.7 Fixpack 2current client and driver names

Notice the Runtime Client and Client are still available

Page 17: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

1.

DB2 Client and DB2 Connect connection Setup

ExcelIBM Client

WebApplication server

IBM Data Server Client

DB2 Connect Gateway servers

IBM Client

**Web Application server With DB2 Connect orType-4 Java Driver or IBM Data Server Driver

IBM Client Internet Explorer

DB2 Connect PE

3.

2.

DB2 z/OSSubsystem Name: DB2TDNS: my.sysz.comPort: 446Location Name: SYSZDB2T

DB2 Client:DNS: my.db2conn.comPort: 50000Location Name: SYSZDB2T

DB2 Connect/PE:DNS: my.sysz.comPort: 446Location Name: SYSZDB2T

DB2 Connect/PE:DNS: my.sysz.comPort: 446Location Name: SYSZDB2T

Page 18: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

Examples of manually cataloging client and gateway connections – Using DB2 Client Catalog commands

DB2 client catalog statements:– catalog tcpip node ndcdb205 remote my.db2conn.com server 50000

ostype os390

– catalog db ndcdb205 at node ndcdb205

DB2 gateway catalog statements:– catalog tcpip node ndcdb205 remote my.sysz.com server 446 ostype

os390

– catalog db ndcdb205 at node ndcdb205

– catalog dcs database ndcdb205 as ndcdb205

(Note: the dcs connection identifies this as a “host” connection)

Page 19: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

Catalog commands: Node entry:

– Nick name for: communication protocol, and network location

DB entry:

– Database name and alias database name if two database have the same name

– Authentication - SERVER, SERVER_ENCRYPT, CLIENT, KERBEROS, and DATA_ENCRYPT

DCS (aka host) entry:

– Identify remote database as z/OS, OS/400, VSE or VM

– Additional parameters:• SQLCODE map-file, disconnect processing,

INTERRUPT_ENABLED, SYSPLEX, LOCALDATE format, Bidirectional CCSID

Page 20: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

Configuration Assistant - GUI to setup connectionsIn addition to configuring database and testing connections, connection profiles can be created too. Connection profiles are useful for replication of client setup.

Test connections with any of the drivers…

Page 21: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

21

What’s new for DB2 Clients and Drivers?Agenda Highlights

IBM’s Strategy Is To Remove The Reliance On The DB2 Connect Modules

IBM Data Server Clients and Drivers

IBM Data Server Driver Package– Background and Installation– New tools:

• db2cli.in, db2dsdriver.cfg • db2dsdcfgfill, db2cli registerdsn, db2cli validate and CLPPlus • SysPlex Setup

IBM Data Server Driver for ODBC/CLI

Documentation and References

It’s so

z/Easy…

Page 22: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

22

IBM Data Server Driver Package IBM Data Server Driver Package is a lightweight deployment solution that provides runtime support for

applications using ODBC, CLI, .NET, OLE DB, PHP, Ruby, JDBC, or SQLJ without the need of installing Data Server Runtime Client or Data Server Client. This driver has a small footprint and is designed to be redistributed by independent software vendors (ISVs), and to be used for application distribution in mass deployment scenarios typical of large enterprises.

The IBM Data Server Driver Package capabilities include: – The DB2 Command Line Processor Plus (CLPPlus) for dynamically creating, editing, and running

SQL statements and scripts. – Support for applications that use ODBC, CLI, PHP, or Ruby to access databases. – Support for client applications and applets that are written in Java using JDBC, and for embedded

SQL for Java (SQLJ). – IBM Informix® Dynamic Server support for .NET, PHP, and Ruby. – Support for running embedded SQL applications. No precompiler or bind capabilities are provided. – Application header files to rebuild the PHP, Ruby, Python, and Perl drivers. The Python and Perl

drivers are not available in IBM Data Server Driver Package; however, you can download and build these drivers using the header files.

– Support for DB2 Interactive Call Level Interface (db2cli). – Support for the for DRDA® traces (db2drdat).

On Windows® operating systems, IBM Data Server Driver Package also provides support for applications that use .NET or OLE DB to access databases. In addition, this is available as an installable image, and merge modules are available to allow you to easily embed the driver in a Windows Installer-based installation.

Page 23: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

IBM Data Server Driver Package

Installation/Configuration ODBC, CLI, OLE-DB and.NET or open source (Perl, PHP)

No database directory

The db2dsdriver.cfg file is XML based,

A schema file – dsdriver.xsd, is shipped to allow client side validation of the file

The db2dsdcfgfill command copies the existing database directory information from either the existing IBM Data Server Client or IBM Data Server Runtime Client into the db2dsdriver.cfg configuration file

No migration of the database directory to move to newer levels Add valid DB2 Connect license key(s) to the directory:

C:\Program Files\IBM\IBM DATA SERVER DRIVER\license

Page 24: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

IBM Data Server Driver Package Installation/Configuration (continued): Connection information is recorded in either:

– Text file: db2cli.ini – XML file: db2dsdriver.cfg– Db2cli.ini has priority over db2dsdriver.cfg

• Use db2cli registerdsn utility to register all the Data Sources available in the db2cli.ini file or the db2dsdriver.cfg file. The data sources can be registered either as a System Data Source or as a User Data Source (See IBM DB2 Dirver Package section for more details on this utility).• db2cli registerdsn -add -alldsn –system

• New db2cli validate utility to validate and tests the configuration files of: db2cli.ini and db2dsdriver.cfg

• Command Line Processor Plus (CLPPlus) provides a command line user interface that you can use to connect databases and to define, edit, and run statements, scripts, and commands

Page 25: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

IBM Data Server Driver Package Installation/Configuration (continued):• To migrate from the Runtime Client or Client to the IBM Data Server Driver

Package• Uninstall Runtime Client or Client• Install the IBM Data Server Driver Package (Response file available)

• Microsoft Global Assembly Cache (GAC) Automatically Updated During Installation

• Include the database connections in the db2dsdriver.cfg (db2cli.ini optional)

• Include the DB2 Connect license for direct connections to DB2 z/OS• Optional: Run “db2cli registerdsn” to update ODBC Data Source

Administrator for ODBC applications• For DB2 CLI applications see Information Center:

http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.swg.im.dbclient.install.doc/doc/t0007315.html

Page 26: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

26

Data Server Driver Package Installation

New Directory

SQLLIB Not used anymore

Page 27: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

27

Data Server Driver Package – DB2 Connect License Place the desired DB2 keys in the license directory

– db2consv_zs.lic – Example: DB2 Connect Unlimited Ed. License– Db2jcc_license_cisuz.jar – Example Java Driver License

(Don’t forget to add to classpath for Java)

No db2licm utility!

Page 28: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

28

Data Server Driver Package New location for driver information

C:\Documents and Settings\All Users\Application Data\IBM\DB2\IBMDBCL1\cfg

No DB2 Client Directory

Connection information stored in files:• db2cli.ins or db2dsdriver.cfg

Page 29: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

29

Sample db2cli.ini file Information on db2cli.ini file setup:

http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.apdv.cli.doc/doc/c0007882.html

Information on db2cli.ini parameters see: http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.apdv.cli.doc/doc/r0007964.html

Page 30: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

30

Sample db2dsdriver.cfg provided – XML FileAlias Section – Allows more thanone reference toa database

Database Section – Allows only one reference to a databaseprovides additional parameters

Global Parameter Section – Default parameters for all defined databases

Page 31: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

31

Sample db2dsdriver.cfg provided – Data Studio XML Designer

Page 32: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

32

My db2dsdriver.cfg

Alias

Database/Location

Name DSName IP/Port

AdditionalDB ParametersFor NDC05

Two namesfor NDC05

Page 33: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

33

db2dsdriver.xsd XML Schema Provided

Page 34: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

34

IBM Data Server Driver Configuration Parameters Available

For Additional Information on db2dsdriver.cfg See: http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.swg.im.dbclient.config.doc/doc/c0054555.html

Page 35: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

35

db2dsdcfgfill

Tool to create db2dsdriver.cfg file from your existing DB2 Client or DB2 Runtime setup

Tool is not included with the drivers Good starting point to create your XML configuration point

Page 36: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

36

db2dsdcfgfill continueddb2dsdcfgfill -i db2 -o c:\

db2dsdriver.cfg

Page 37: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

37

db2cli registerdsn feature –

registerdsn – Specifies the db2cli register DSN mode. Use this command parameter to register an ODBC

data source name.– -add dsn_name

• Adds a system or user ODBC data source to the Microsoft ODBC Data Source Administrator. The dsn_name variable specifies a single data source to be added or all data sources present in the db2cli.ini and db2dsdriver.cfg file may be added using the -alldsn parameter. The value of dsn_name must be the data source name and not the DBALIAS name. The data source name must be present in the db2cli.ini or db2dsdriver.cfg file.

• -alldsn – Specify this parameter to register all the data sources available in the db2cli.ini and db2dsdriver.cfg file. This

parameter must be used with the -add parameter. • -user

– Specifies to register a user ODBC data source. This is the default if no parameter is specified. • -system

– Specifies to register a system ODBC Data Source – -remove dsn_name

• Removes a system or user ODBC Data Source from the Microsoft ODBC Data Source Administrator.

– -list • List all the system or user IBM Data Server ODBC Data Sources registered in the Microsoft ODBC

Data Source Administrator. – -help

• Displays help information related to the db2cli register DSN mode.

Page 38: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

38

db2cli registerdsn… db2cli registerdsn -add -alldsn -system

The –system parameter approximates the DB2 cli catalog command that registers ODBC data sources

Page 39: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

39

db2cli registerdsn feature (Continued)

Note: 64-Bit Windows 7 and 32-Bit ODBC driver support

That the registerdsn tool only updates Window 7 64-Bit O/S 64-Bit ODBC Data Source Administrator. T

There is a special build available in V9.7 FP3 for 64-Bit Windows 7, that will provide a tool to register 32-Bit ODBC data sources in addition to 64-bit ODBC data sources.

Page 40: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

40

db2cli validate featureValidates and tests the db2cli.ini or db2dsdriver.cfg files environment configuration.

– -dsn dsn_name • Specify the data source name to validate.

– -database database:server:port • Specify the database name, server and port number to validate. The information must be

specified using a colon to separate the database name, server and port number. For example, TESTDB:dbserver.example.com:19677

– -connect• db2cli validate will connect to a specified data source name or database and output

information about the connection attempt.• -user username - Specifies the username to use for the connection.• -passwd password - Specifies the password to use for the connection.

– -f OUTPUT_FILE • Specify an optional output file for the results of the db2cli command.

– -help• Displays help information related to the db2cli validate mode.

Page 41: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

41

db2cli validateCommand: db2cli validate

Can be used to:– Check the syntax of your db2dsdriver.cfg– Check the driver version

Page 42: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

42

db2cli validate

Can be used to:– Check the parameters

being used by a connection entry

– Check the ODBC Data Source Administrator parameters being used too

Command: db2cli validate – dsn data_source_name

Page 43: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

43

CLPPlus

DB2 Command Line Processor Plus (CLPPlus) for dynamically creating, editing, and running SQL statements and scripts. Supports aliases in db2dsdriver.cfg file.

Note: CLPPLUS is not installed automatically

Page 44: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

44

Sample of a CLPPlus connection – - IBM Data Server Driver Package – Java Direct Connection - Replacement for Command Window and Command Line Processor

Page 45: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

CLI/.NET Driver

LogicalConnection

3

LogicalConnection

1

LogicalConnection

2

disconnectat commit/rollback

pooled connectionsto DB2 server

Transport1

Transport2

Thread 3

Thread 1

Thread 2

C Process

Sysplex Workload Balancing using the IBM Data Server Driver

DB2 Group

DB2 forz/OS

Note: CLP does not support Sysplex WLB

CF

DB2 forz/OS

Page 46: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

46

IBM Data Server Driver Package Properties

Properties for fine-tuning Sysplex workload balancing for direct connections from non-Java applications to DB2 for z/OS

Page 47: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

47

IBM Data Server Driver Package Properties…Properties for enabling only Sysplex workload balancing for connections from non-Java applications to DB2 for z/OS

Page 48: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

IBM and Continues Improvement for Microsoft .Net… If the failure occurs on the first SQL operation in a transaction, and seamless failover is enabled

(and applicable), the client can replay the failed SQL operation as part of Automatic Client Reroute (ACR) processing. If the connection is successful, no error is reported to the application.

If ACR is enabled, an application that encounters a connectivity failure is routed to another member of the Sysplex. If seamless failover is disabled or not applicable, the error SQL30108N is returned to the application.

To perform ACR, the client must use a TCP/IP connection and have a DB2® Connect™ license. The following Version 9.5 Fix Pack 3 or later clients provide support for ACR:

IBM® Data Server Client, IBM Data Server Runtime Client, IBM Data Server Driver Package

Automatic client reroute settings in the db2dsdriver.cfg configuration file

enableAcr: Specifies whether the ACR feature is on (true) or off (false). This setting defaults to true when transaction-level load balancing is enabled (the enableWLB setting is true). If ACR is disabled, any other settings for ACR are ignored.

enableSeamlessAcr: Specifies whether the ACR with seamless failover feature is on (true) or off (false). If ACR is enabled and the target server is DB2 for z/OS, seamless ACR is enabled by default. If the target server is not DB2 for z/OS, this setting is ignored, and seamless ACR is not supported.

Page 49: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

Sample WLB Configuration (part of db2dsdriver.cfg)

<databases> <database name="STLEC1" host="9.30.30.5" port="446"> <WLB> <parameter name="enableWLB" value="true"/> <parameter name="maxTransports" value="100"/> <parameter name="maxTransportIdleTime" value="600"/> <parameter name="maxTransportWaitTime" value="30"/> <parameter name="maxRefreshInterval" value="30"/> </WLB> <ACR> <parameter name="enableACR" value="true"/> <parameter name="enableSeamlessACR" value="true"/> </ACR> </database></databases>

49

Page 50: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

50

What’s new for DB2 Clients and Drivers?Agenda Highlights

IBM’s Strategy Is To Remove The Reliance On The DB2 Connect Modules

IBM Data Server Clients and Drivers

IBM Data Server Driver Package

IBM Data Server Driver for ODBC/CLI– Background and Installation

Documentation and References

It’s so

z/Easy…

Page 51: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

51

Data Server Driver for ODBC and CLI

Data Server Driver for ODBC and CLI is a lightweight deployment solution designed for independent software vendors (ISV) deployments. This driver, also referred to as cli driver, provides runtime support for applications using ODBC API, or CLI API without need of installing the Data Server Client or the Data Server Runtime Client. This driver is available only as a tar file, not as an installable image. Messages are reported only in English.

Subset of IBM Data Server Driver Package The IBM Data Server Driver for ODBC and CLI provides:

– runtime support for the CLI API; – runtime support for the ODBC API; – runtime support for the XA API; – database connectivity; – support for DB2 Interactive Call Level Interface (db2cli); – LDAP Database Directory support; and – tracing, logging, and diagnostic support.

Register Data Server Driver for ODBC and CLI with the Microsoft® ODBC driver manager using the db2oreg1.exe utility.

Use db2cli registerdsn utility to register all the Data Sources available in the db2cli.ini file

Page 52: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

IBM Data Server Driver for ODBC/CLIInstallation/Configuration: No database directory, you pick and installation directory and any name

you like There is no installation program for the IBM Data Server Driver for ODBC

and CLI. You must install the driver manually:– Copy the compressed file that contains the driver onto the target

machine from the internet or a DB2 Version 9 installation CD. – Uncompress that file into your chosen install directory on the target

machine. (Optional: remove the compressed file.) Add valid DB2 Connect license key to the directory:

C:\...\clidriver\license Connection information is recorded in either:

– Text file: db2cli.ini – XML file: db2dsdriver.cfg– Db2cli.ini has priority over db2dsdriver.cfg

Page 53: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

IBM Data Server Driver for ODBC/CLIInstallation/Configuration (continued):• Use the utility “db2oreg1.exe –i” to register IBM Data Server Driver for ODBC

• Use db2cli registerdsn utility to register all the Data Sources available in the db2cli.ini file or the db2dsdriver.cfg file at the same time. The data sources can be registered either as a System Data Source or as a User Data Source (See IBM DB2 Driver Package section for more details on this utility).• db2cli registerdsn -add -alldsn –system• Note you can use the utility “db2oreg1.exe –setup” to create sample

db2cli.ini and db2dsdriver.cfg files

• Use the new db2cli validate utility to validates and tests the CLI environment configuration files of db2cli.ini and db2dsdriver.cfg

• Command Line Processor Plus (CLPPlus) is not included with this driver

Page 54: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

IBM Data Server Driver for ODBC/CLIInstallation/Configuration (continued):• To migrate from the Runtime Client or Client to the IBM Data Server Driver

Package• Uninstall Runtime Client or Client• Install the IBM Data Server Driver for ODBC/CLI• Include the database connections in the db2dsdriver.cfg (db2cli.ini

optional) • Include the DB2 Connect license for direct connections to DB2 z/OS• Execution the utility “db2oreg1.exe –i” to register IBM Data Server Driver

for ODBC with ODBC Data Source Administrator • Execution the utility “db2cli registerdsn –add –dsnall -system” to

update ODBC Data Source Administrator for ODBC applications• For DB2 CLI applications environment setup see Information Center:

http://publib.boulder.ibm.com/infocenter/db2luw/v9r7/topic/com.ibm.db2.luw.apdv.cli.doc/doc/t0023864.html

Page 55: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

55

IBM Data Server Driver for ODBC/CLI• User named installation directory• I installed the ODBC and CLI driver in C:\Program Files\IBM

and used the default uncompressed directory name of “clidriver”• Just copy the uncompressed directory to your selected location

Page 56: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

56

IBM DB2 Driver for ODBC and CLIdb2oreg1.exe –setup Use the utility “db2oreg1.exe –setup” to create sample db2cli.ini and

db2dsdriver.cfg files

The directory will also be created too

You just need to supply the db2dsdriver.cfg and db2cli.ini files with the needed connection information

Page 57: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

57

IBM DB2 Driver for ODBC and CLI

For details on the setup of db2cli.ini and db2dsdriver.cfg files please see IBM DB2 Driver Package section

Page 58: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

58

What’s new for DB2 Clients and Drivers?Agenda Highlights

IBM’s Strategy Is To Remove The Reliance On The DB2 Connect Modules

IBM Data Server Clients and Drivers– Review of Clients and Drivers Available– Client Deployment Strategies

IBM Data Server Driver Package

IBM Data Server Driver for ODBC/CLI

Documentation and References

It’s so

z/Easy…

Page 59: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

DB2 Client Monitoring and Tuning

DB2 Connect User’s Guide– Chapter 21 - CLI/ODBC application performance tuning – Chapter 22 - Trouble Shooting DB2 Connect– Chapter 23 – DB2 Traces with DB2 Connect– Chapter 24 – DRDA Trace Files

DB2 9 for z/OS: Distributed Functions (Redbook SG24-6952)– Chapter 7 Performance analysis– Chapter 8 Problem determination

Page 60: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

60

DB2 9 for z/OS: Distributed FunctionsMy favorite and a MUST have!

DB2® for z/OS® Distributed Data Facility (DDF) is a built-in component that provides the connectivity to and from other servers or clients over the network. DDF is a full-function DRDA-compliant transaction monitor which, equipped with thread pooling and connection management, can support very large networks. Different z/OS workload management priorities can be assigned to different, user-specified classes of DDF-routed application work.

In this IBM® Redbooks® publication, we describe how to set up your DDF environment and how to deploy the DDF capabilities in different configurations, including how to develop applications that access distributed databases.

www.redbooks.ibm.com/abstracts/sg246952.html

Page 61: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

61

Suggested IBM Manuals to learn more..

Page 62: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

62

http://publib.boulder.ibm.com/infocenter/imzic/

The main place for all documentation is InfoCenter

Page 63: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

63

DB2 LUW Information Centershttps://publib.boulder.ibm.com/infocenter/db2luw/v9r5/index.jsp?topic=/com.ibm.db2.luw.common.doc/doc/t0021844.html

Page 64: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

64

Data Studio’s Information Center

http://publib.boulder.ibm.com/infocenter/idm/v2r2/index.jsp

Page 65: What’s new for DB2 Clients and Drivers? LOTS! · PDF fileWhat’s new for DB2 Clients and Drivers? LOTS! ... such as .NET applications or applications that use embedded SQL,

IBM Software Group | Information Management software

65

The End!