19.06.2013 Views

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

DB2 UDB for z/OS Version 8 Performance Topics - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

or net driver, but if you are not using it already, you are strongly encouraged to use the<br />

Type 4 Driver instead.<br />

► Type 4<br />

A Type 4 Driver is fully written in Java, and provides remote connectivity using DRDA<br />

within <strong>IBM</strong> products. As the driver is fully written in Java, it can be ported to any plat<strong>for</strong>m<br />

that supports that DBMS protocol without change, thus allowing applications to also use it<br />

across plat<strong>for</strong>ms without change.<br />

This driver type has been implemented through the <strong>IBM</strong> <strong>DB2</strong> Universal Driver <strong>for</strong> SQLJ<br />

and JDBC. This driver is also known as the <strong>DB2</strong> Universal Driver <strong>for</strong> Java Common<br />

Connectivity or JCC. In addition, the Universal Driver also provides Type 2 connectivity.<br />

For more in<strong>for</strong>mation on these Drivers, see the book <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong> and <strong>OS</strong>/390: Ready <strong>for</strong><br />

Java, SG24-6435.<br />

The <strong>DB2</strong> Universal Driver <strong>for</strong> SQLJ and JDBC is an entirely new driver, rather than a<br />

follow-on to any other <strong>DB2</strong> JDBC drivers. The <strong>DB2</strong> Universal Driver has the following<br />

advantages over the previous solutions:<br />

► One single driver <strong>for</strong> the Unix, Windows, and z/<strong>OS</strong> plat<strong>for</strong>ms, improving portability and<br />

consistent behavior of applications.<br />

► Improved integration with <strong>DB2</strong>.<br />

► Type 4 Driver functionality <strong>for</strong> thin clients, as well as Type 2 functionality.<br />

► Easier installation and deployment. As a Type 4 Driver is completely written in Java, it is<br />

easy to deploy; you only have to ship the jar files containing the Driver code to the required<br />

machine, change the classpath, and you are done. In addition, the use of a Type 4 Driver<br />

does not require any setup in <strong>DB2</strong>, such as cataloging entries in the Database, Node, and<br />

DCS directories. For <strong>DB2</strong> on z/<strong>OS</strong> you only have to use the following URL syntax:<br />

jdbc:db2://:/<br />

► 100 percent Java application development process <strong>for</strong> SQLJ<br />

► 100 percent JDBC 3.0 compliance. Since <strong>DB2</strong> <strong>UDB</strong> V8.1.3 (FixPak 3), the Universal<br />

Driver is JDBC 3.0 compliant. The version that is made available with z/<strong>OS</strong> is also JDBC<br />

3.0 compliant.<br />

► Significant per<strong>for</strong>mance improvements <strong>for</strong> both JDBC and SQLJ applications on the Linux,<br />

Unix, and Windows plat<strong>for</strong>ms.<br />

► Trace improvements.<br />

In general, you should use Universal Driver type 2 connectivity <strong>for</strong> Java programs that run on<br />

the same z/<strong>OS</strong> system as the target <strong>DB2</strong> subsystem. Use Universal Driver type 4 connectivity<br />

<strong>for</strong> Java programs that run on a different system from the target <strong>DB2</strong> subsystem.<br />

For Java applications, application connectivity from a z/<strong>OS</strong> LPAR to a remote <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong><br />

system does not need a <strong>DB2</strong> instance anymore. The z/<strong>OS</strong> Application Connectivity to <strong>DB2</strong> <strong>for</strong><br />

z/<strong>OS</strong> optional feature can be installed to provide Universal Driver type 4 connectivity.<br />

7.3.1 Per<strong>for</strong>mance measurement<br />

The per<strong>for</strong>mance objectives were to verify that:<br />

► The <strong>DB2</strong> Universal JDBC type 2 Driver provides better or equivalent per<strong>for</strong>mance <strong>for</strong><br />

workloads using container managed persistence (CMP) and better per<strong>for</strong>mance <strong>for</strong><br />

traditional workloads that use the type 2 <strong>IBM</strong> <strong>DB2</strong> App Driver.<br />

Chapter 7. Networking and e-business 293

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!