+ All Categories
Home > Documents > api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our...

api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our...

Date post: 26-May-2020
Category:
Upload: others
View: 6 times
Download: 0 times
Share this document with a friend
46
© 2012 IBM Corporation March 7, 2013 Latest API Enhancements Brent Gross [email protected]
Transcript
Page 1: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012 IBM CorporationMarch 7, 2013

Latest API Enhancements

Brent [email protected]

Page 2: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation2

Agenda

� ODBC, .NET, JDBC and Related Applications

� API Updates

� Driver Integration with Optim Tooling

� Function Rollout

Page 3: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation3

ODBC – Typical Applications

� ODBC / CLI user interchangeably– Think of CLI as ODBC ++

� ISV applications– Every database has an ODBC driver – Has been a mainstay for nearly two decades– Open source drivers– Current Perl, Python, PHP, Ruby drivers written to vendor ODBC

libraries

� Popular end user apps– Excel, Access

Page 4: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation4

PhP Python/Jython Ruby/JRubynode.js Scala

Zend

framework

adapters

SqlAlchemy/

Django Adapter

DB2

DB2 CLI / ODBC DB2 JCC / JDBC

Rails

AdapterLiftnode-odbc

node.js

JSON

driver

c

Python interpreter

java c

Ruby interpreter

java

Java json

API

DB2 Open Source Drivers

Page 5: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation5

ODBC .NETData Provider

IDS/DB2 ODBC Driver

Application (ASP.NET)

DB2DB

Other .NET Data Provider

DBMSInformix DB

OLE DB .NET Data Provider

ADO.NET

IDS/DB2 OLE Provider

DB2 .NET Data Provider

ADO .NET Providers

Page 6: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation6

.NET Data Provider Comparison

� Bridge providers do not have newer data types and f eatures– XML - integration with XmlReader– Decimal Float– Higher timestamp precision– Temporal

� Difficulty in diagnosing problems– Limitations in MS Bridge providers or ODBC / OLE DB interfaces– Connection pooling often an issue

� IBM Visual Studio Addins for DB2 .NET provider only

Page 7: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation7

DB2 .NET Data Provider

� IBM’s .NET support is designed to operate in the .N ET environment as .NET programmers expect– Our documentation is reference oriented– Documentation also provides best practices / examples for our unique

features

� VS Addins fully leverage rapid application developm ent – VS Addins also exploit IBM unique features

� Current .NET and Visual Studio skills transportable

� Entity Framework is the latest .NET paradigm– Object layer on top of ADO.NET

Page 8: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation8

VS Addins Summary – VS 2008 / 2010 / VS 2012

� Server Explorer– Enumeration – filtering, Entity Framework designer– View Data, Script– Drag n drop – windows app, web app, Entity Framework– Schema evolution - developers

� Stored Procedures– SQL Procedure designer– SQL keyword highlighting and Intellisense– End to end debugging – merged call stack , step into, run to breakpoint

� XML– XML Schema, generate sample– XML index designer

� Web Services– IIS (ASP.NET)

Page 9: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation9

JDBC

� JCC (Java Common Client) is IBM’s JDBC driver– Connectivity to DB2 and Informix Data Servers

� Supports SQLJ in addition to JDBC

� Supports type 2 and type 4 – Type 4 – pure Java implementation, uses DRDA protocol– Type 2

• DB2 for z/OS – highly optimized local connectivity• DB2 for LUW local or remote connectivity

– Uses DRDA in-memory if local

� Available as a JAR file – no install necessary

� Embedded in many applications and tools – eg. Data Studio

9

Page 10: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation10

API Updates

� ODBC– Largely unchanged since ODBC 3.5 came out in 1997– ODBC 3.8 with Windows 7, Windows 8

• V9.7 FP5 delivers:– ODBC 3.8 Version awareness– Connection pooling enhancements– End transaction support

• Functions outstanding– Async support– Driver specific datatypes– Streaming output parameters

10

Page 11: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation11

API Updates

� .NET– .NET Framework 2.0, Visual Studio 2005 – V9.1– Visual Studio 2008 – V9.5– Entity Framework GA – V9.5 FP3– .NET FW 4.0, EF 4.0, VS 2010 – V9.7 FP4– .NET FW 4.5, VS 2012, EF 4.3 – V10.1 FP2– EF 5.0 is currently available from Microsoft– EF 6.0 is in beta from Microsoft

11

Page 12: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation12

API Updates

� JDBC– Java 4, JDBC 3.0 – V8.1– Java 6, JDBC 4.0 – V9.5

• Start shipping JDBC 3.0 and JDBC 4.0 drivers– Java 7, JDBC 4.1 – V9.7 FP5– Java 8 is in beta from JVM vendors

12

Page 13: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation13

API Updates

� DB2 LUW Server Exploitation– V9.5 – V9.5

• Trusted context, SSL, AES

– V9.7 – V9.7• SQL Compatibility• Enhanced timestamp datatype• Currently committed semantics• Binary XML• Temporal

– V9.8 – V9.7 FP1• pureScale

– V10.1 – V9.7 FP6• SQL Compatibility

13

Page 14: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation14

API Updates

� DB2 for z/OS Server Exploitation– V9 – V9.1 to V9.5 FP2

• Trusted context, SSL, AES

– V10 – V9.7 FP3a• Enhanced timestamp datatype• Currently committed semantics• Binary XML

14

Page 15: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation15

Integration with OPM

� OPM Extended Insight Feature– Provides end to end performance information

� Need to communicate driver information to OPM serve r– Client side component to aggregate driver information and handshake with

OPM server• Location of OPM server comes from OPM controller

– Extended Insight Client – Data Tools Runtime Client (DTRC)

� DTRC– Jar file to be in classpath for Java based apps– Shared library for non-Java

• Requires location to be specified in db2dsdriver.cfg file– Default location does exist

– Location of controller needs to be configured at each client• V9.7 FP6 and later drivers can determine monitor location from database

Page 16: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation16

Integration with OPM

� In general, full exploitation of new features requi res driver, EI client and OPM server upgrades– Minimum level for Java is V9.7– Minimum level for ODBC, .NET is V9.7 FP3

� Up and Running focus items– Determine location of OPM server from application database

• Simplifies setup, no controller involved– Auto-load DTRC shared library from fixed location

• Would eliminate any client side setup– Avoid additional client side software install

Page 17: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation17

Integration with pQ

� pureQuery client optimization offers dynamic -> sta tic conversion for JDBC, ODBC and .NET– Common tooling for managing packages produced through capture

� Also a set of high performance programming APIs for JDBC

� In general, ODBC and .NET enhancements will require a driver upgrade– Minimum level for ODBC is V9.7 FP1– Minimum level for .NET is V9.7 FP6

� In general, JDBC enhancements do not require a driv er upgrade– Minimum level for JCC is V9.5 FP5

Page 18: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation18

Integration with OCM

� Optim Configuration Manager assists with managing s erver and client configuration and settings– Ability to push down settings to drivers– Ability to control driver behavior based on client info properties

� Similar to OPM EI, there is a client side agent req uired – Data Tools Runtime Client utilized as for OPM EI

� In general, functional improvements often require d river, DTRC and OCM updates– Minimum level for Java is V9.5 FP10, V9.7 FP6, V10.1 – Minimum level for ODBC, .NET is V9.7 FP7, V10.1 FP1

Page 19: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation19

Why the focus on client packages / drivers

� Latest code levels required for new server feature exploitation– For example, DB2 9.7 FP3a drivers required for new z/OS V10

datatypes– V9.7 FP6 required for LUW V10.1 new datatypes

� Latest code levels required for API specific featur es– For example, .NET 4.0 or Visual Studio 2010 require DB2 V9.7 FP4– Visual Studio 2012 beta was only on V9.7 FP6

• GA in V10.1 FP2, no GA support in V9.7

� Larger client packages require more effort to upgra de– Many customers still at V8.2 DB2 Client– Approx 130 SQL packages to rebind in Client

• A rebind required with each FP upgrade

Page 20: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation20

Client Packages

� What has changed - Customer Feedback– Clients are too big

• From both a size and complexity point of view• Unnecessary configuration and migration steps• Focus now on “collections” of drivers vs clients

– DB2 client instance• Requires migration version to version – binary file• Difficult to deploy to multiple similar workstations• Root privileges required on LU platforms

– Client SQL Packages• Requires rebind, thus potentially a server outage

– Added support for Informix• Rename from DB2 -> IBM Data Server

Page 21: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation21

Client Packages

� IBM Data Server Driver Package (ds driver – V9.5 FP3 )– No client database instance / directory– Includes JCC, ODBC / CLI, Open Source, CLPPlus– On Windows, includes OLE DB and .NET– Introduced db2dsdriver.cfg file for configuration– Best practice for enterprise deployment – all servers

� IBM Data Server Driver for JDBC and SQLJ (JCC – V8)– Standalone download of Java support only– Packaged with many other deliverables

• Data Studio, Websphere, etc.

Page 22: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation22

Client Packages

� IBM Data Server Runtime Client– No additional APIs above ds driver (except load)– Adds the DB2 CLP, plus database directory (client instance)– Includes many DB2 LUW specific utilities– Approx 3x the size of ds driver

� IBM Data Server Client– Runtime client plus all development and admin tooling– Approx 10x the size of ds driver

� DB2 Connect Personal Edition (software)– Client plus DB2 Connect PE license– Not generally recommended

Page 23: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation23

Deployment Best Practices

� Runtime deployment– ds driver highly recommended– Lightest runtime focused client package– Common client config across multiple levels– No migration to move to newer levels

• No database directory• Simple in-place code upgrade

Page 24: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation24

Client Availability

� Strong focus on downward compatibility– Client upgrade independent of server upgrade

� Allows new client levels to be installed to exploit latest API enhancements– Traditionally upgrades driven by server side– Recently seeing more upgrades driven by API and tooling side

Page 25: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation25

Function Rollout Overview

� New function rollout limited to Fixpack stream of c urrent release only– V9.5 FP3 was last set of enhancements for V9.5– V9.7 FP6 was last set of enhancements for V9.7– Latest enhancements are in V10.1 stream

• Last V10.1 enhancements were V10.1 FP2

� All active releases fully supported– APARs backfit based on customer request and severity

� Unless stated, function applies to – DB2 for z/OS V9 and later– DB2 for IBM i V5R4 and later– DB2 for LUW V9.5 and later

Page 26: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation26

Leading up to V9.1

� Cross API– Single client instance install– DB2 Runtime Client (> 100 MB)– DB2 Client (almost 500 MB)

• DB2 Connect Personal Edition

� ODBC / CLI– Terms used interchangeably

� .NET– Framework (FW) 1.0, 1.1– Visual Studio (VS) VS.NET 2002, VS.NET 2003– 32-bit only

Page 27: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation27

V9.1

� Cross API– Multiple copy support (concept of default copy)– XML datatype (DB2 for z/OS V9 only)

� .NET– FW 2.0, VS 2005– Dropped FW 1.0– DB2ResultSet (scrollable, server locking semantics)

Page 28: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation28

V9.1 FP2

� .NET– 64-bit Provider– End to End SQL Procedure debugging for z/OS V9 servers

• Single step from application into SQL stored procedure• Merged call stacks

Page 29: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation29

V9.5

� ODBC / CLI– cli driver package available

• Approx 15 MB, designed for ISVs to embed

� .NET– VS 2008 supported– FW 3.0, 3.5 supported

� JCC– Added JDBC 4.0 driver

Page 30: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation30

V9.5 FP1

� Cross API– 18 character location names (connection string)

• Previously only 8 characters supported

Page 31: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation31

V9.5 FP2

� Cross API– SSL

� ODBC / CLI– Interleaved SQLPutData for dealing with stream data

� .NET– Enterprise Library (via CodePlex)– Entity Framework public beta– VS 2008 WPF and WWF integration– End to end SQL procedure debugging for z/OS V8 servers

Page 32: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation32

V9.5 FP3

� Cross API– IBM Data Server Driver Package (ds driver)

• db2dsdriver.cfg configuration file introduced

� ODBC / CLI– SQLCreatePackage API (similar to bind command)

� .NET– pureQuery static profiling (DB2 Connect Advanced Edition)– Entity Framework at FW 3.5 SP1 level– Schema node in VS Server Explorer

Page 33: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation33

V9.5 FP3

� Cross API– z/OS Sysplex exploitation

• Client reroute and workload balancing– Functions previously only available with DB2 Connect Server

• Seamless failover – Failures in first SQL can be seamlessly rerouted to alternate server without

application awareness• Configurable in all client packages with dsdriver.cfg file• Primary scenario is application servers

– Performance benefit by removing gateway

Page 34: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation34

V9.7

� ODBC / CLI– Interleaved fetch and rollback during streaming

� .NET– Remove any accidental db2cli.ini support– Dropped FW 1.1– Program Name and Program ID client information properties– VS tooling for pureQuery static profiling

Page 35: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation35

V9.7 FP1

� Cross API– Environment variable for config file location– Ability to reload config file for ACR section– Failback to primary support for client affinity

� ODBC / CLI– pureQuery static profiling– Interleaved insert with streaming

� .NET– Full alter support for procedures in VS– VS 2008 LINQ over XML reference (z/OS only)

Page 36: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation36

V9.7 FP2

� ODBC / CLI– Command line to register ODBC data source

� .NET– 32-bit and 64-bit coexistence– Entity Framework Filtering– Override for with hold cursors

Page 37: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation37

V9.7 FP3a

� Cross API– Unlimited Edition server based license key (z/OS only)– DB2 for z/OS V10 exploitation

• Binary XML• Timestamp precision plus timezone• Currently committed semantics• Extended indicators• Explain modes

Page 38: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation38

V9.7 FP3a (continued)

� Cross API– Performance Manager Extended Insight integration

� ODBC / CLI– Network statistics API– Retrieve last member used on connection– Instance based client support with dsdriver.cfg

� .NET– Entity Framework canonical functions– .NET 4.0, VS 2010, Entity Framework 4.0 beta

Page 39: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation39

V9.7 FP4

� Cross API– Sysplex migration support for z/OS V10

� ODBC / CLI– db2cli32 in 64-bit builds– db2cli to report on unrecognized settings– CLI load enabled for async operation

� .NET– .NET 4.0, VS 2010, Entity Framework 4.0 GA– High precision timestamp and decfloat mapping into dataset– Instance based client support with dsdriver.cfg

Page 40: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation40

V9.7 FP5

� Cross API– Schema filter in connection string– Passphrase up to 100 characters– Command line tool to add entry to dsdriver.cfg– Alternate group failover– Password in dsdriver.cfg file

� ODBC / CLI– ODBC 3.8

� .NET– Block for n rows override capability– Ability to disable auto-rebind– CommandBuilder CompareRowVersion support– Array Input (batching extension)– MS Trace Integration

� JDBC– Added JDBC 4.1

Page 41: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation41

V9.7 FP6

� Cross API– z/OS SSL authentication (V10)– Seamless improvements for Sysplex, pureScale– Client Info default values– Extended Insight default location and monitor server lookup

� ODBC / CLI– Validate improvements

� .NET– Additional filtering criteria – dbname– Ability to set fetch buffer size– pureQuery improvements

Page 42: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation42

V10.1 FP2

� Cross API– Allow special characters in password– Sysplex problem determination improvements– dsdriver.cfg to be deployed with install– dsdriver.cfg to allow multiple entries in path override– Ability to bind package with db2cli tool– Generic special register support

� ODBC / CLI– Ability to have statement close free memory

� .NET– Visual Studio 2012 support

Page 43: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation43

High Priority Requirements

� Cross API– Continuous improvement in high availability for pureScale and Sysplex

� .NET– Entity Framework 5.0

Page 44: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation44

Online references

� Developer Works Visual Studio Zone– http://www.ibm.com/developerworks/db2/zones/vstudio/

� DB2 .NET FAQ– http://www.ibm.com/developerworks/wikis/display/DB2/DB2+and+.NET

+FAQ

� IBM .NET Forum– http://www.ibm.com/developerworks/forums/dw_forum.jsp?forum=467&

cat=19

Page 45: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation45

More samples and tutorials

� VS Addins Tutorials– VS Addins with IDS

• http://www.ibm.com/developerworks/db2/library/techarticle/dm-0703jayakumar/?S_TACT=105AGX11&S_CMP=LP

– Good overview of .NET with VS Addins• http://www.ibm.com/developerworks/db2/library/techarticle/dm-

0710jayakumar/?S_TACT=105AGX11&S_CMP=LP• http://www.ibm.com/developerworks/db2/library/techarticle/dm-

0711kumar/?S_TACT=105AGX11&S_CMP=LP

Page 46: api enhancements ppt - MWDUG · 2017-11-16 · environment as .NET programmers expect – Our documentation is reference oriented – Documentation also provides best practices

© 2012IBM Corporation46

Summary

� ODBC, .NET, JDBC Applications

� API Updates– ODBC, .NET, JDBC all evolving– Data Servers continue to offer new function

� Driver Integration with Optim Tooling– Another ongoing set of enhancements

� Function Rollout


Recommended