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.

alanced across all members. With the new SYS<strong>IBM</strong>.IPLIST table, a <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong> application<br />

requester can define a specific member or a subset of members in a group to route requests.<br />

At the server, location alias names do not need to be defined to allow these applications to<br />

access the <strong>DB2</strong> server with the alternate location names. Aliases are only needed <strong>for</strong><br />

member subsetting when the application requester is non-<strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong> (like <strong>DB2</strong> Connect).<br />

The location <strong>DB2</strong>PLEX might represent three <strong>DB2</strong> subsystems in a group: <strong>DB2</strong>A, <strong>DB2</strong>B, and<br />

<strong>DB2</strong>C. As in previous versions, the location <strong>DB2</strong>PLEX is set up to use the group domain<br />

name to route requests to all available members. If a DBA wants to provide member routing to<br />

<strong>DB2</strong>A and <strong>DB2</strong>B but not to <strong>DB2</strong>C, a location name <strong>DB2</strong>PLEXA is defined in<br />

SYS<strong>IBM</strong>.LOCATIONS and a row is inserted <strong>for</strong> <strong>DB2</strong>A and <strong>DB2</strong>B in the SYS<strong>IBM</strong>.IPLIST table<br />

with their member domain name. If an application wants to route requests to either <strong>DB2</strong>A or<br />

<strong>DB2</strong>B, it connects using location <strong>DB2</strong>PLEXA. When an application wants to route requests to<br />

the least loaded member, it connects using location <strong>DB2</strong>PLEX.<br />

With this new service, applications can now route requests using a name different than the<br />

group location name. If the application contains SQL statements that qualify object names<br />

with a name other than the group location name, a location alias needs to be defined. In the<br />

above example, <strong>DB2</strong>A and <strong>DB2</strong>B need to define location alias <strong>DB2</strong>PLEXA using the Change<br />

Log Inventory utility. When an application connects to <strong>DB2</strong>PLEXA and issues a<br />

SELECT * FROM <strong>DB2</strong>PLEXA.COLLECTION.TABLE;<br />

the <strong>DB2</strong> member recognizes the fully qualified object as a local object.<br />

7.1.4 DRDA allows larger query blocks<br />

The DRDA architecture has been enhanced to allow query blocks up to 10 MB.<br />

Description<br />

A query block is a group of rows that fits into a (query) block and is sent as a single network<br />

message. The default query block size used by <strong>DB2</strong> in <strong>Version</strong> 7 is 32 KB. The number of<br />

rows that <strong>DB2</strong> puts into a query block depends on the row length, as well as the OPTIMIZE<br />

FOR n ROWS clause. Blocking is used by both <strong>DB2</strong> Private Protocol and DRDA. When<br />

blocking is not used, <strong>DB2</strong> will send a single row across the network.<br />

To support the larger network bandwidths and customer requirements to control the amount<br />

of data returned on each network request, the DRDA architecture has been enhanced to<br />

allow query blocks up to 10 MB. This way, a <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong> V8 requester can ask <strong>for</strong> a query<br />

block size of up to 10 MB from a <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong> V8 server. This allows the requester to better<br />

manage and control the size of blocks returned from <strong>DB2</strong>.<br />

<strong>DB2</strong> Connect V8 and <strong>DB2</strong> V8 clients can specify a query block size of up to 65,535 in size but<br />

only the <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong> V8 DDF server will support this. Thus, one will notice that the number<br />

of network exchanges between the workstation and <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong> V8 server is about half that<br />

when accessing the <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong> V7 server. <strong>DB2</strong> V7 can only support a query block size up<br />

to 32,767.<br />

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

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

In this measurement we used:<br />

► <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong>, V7 and V8<br />

► z/<strong>OS</strong> Release 1.4<br />

► z900<br />

► <strong>DB2</strong> Connect EE, Client V8 on 1.3 GHz P690 with AIX<br />

284 <strong>DB2</strong> <strong>UDB</strong> <strong>for</strong> z/<strong>OS</strong> <strong>Version</strong> 8 Per<strong>for</strong>mance <strong>Topics</strong>

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

Saved successfully!

Ooh no, something went wrong!