Appendix B. DB2 EXPLAIN facility with DB2 Information Integrator 469
to run the nickname parts of a join query in parallel. This can possibly make
the query run faster if the amount of nickname data that participates in the
join is large.
The following applies to the server options identified in Table B-5 on page 464:
COMM_RATE
The default is 2, and the value is in mega-bytes/second.
CPU_RATIO
A value less than one (that is, 0.00001) means that the data source has more
CPU capacity than the federated server.
IO_RATIO
A value less than one (that is, 0.00001) means that the data source has a
faster disk I/O rate than the federated server.
VARCHAR_NO_TRAILING_BLANKS
This option affects performance with Oracle data sources. With
VARCHAR_NO_TRAILING_BLANKS = 'N' (default), for VARCHAR and
VARCHAR2 columns in joins and filters, DB2 II sends RPAD(colname)= to
Oracle, and Oracle cannot use an index to process this join or filter, possibly
causing poor performance. The option can be set either for an entire server
definition, or as a column on option on an individual column of a nickname.
Join of nicknames referencing Oracle and SQL server
We used the 32-bit instance for this example. Our objective was to review the
access plan in a db2exfmt output for a federated query that joined nicknames at
two different data sources and no local data access.
Our SQL query ranks customers based on the their placement of large quantity
orders. Large quantity orders are defined as those orders whose total quantity is
above 300 in our case. The customer table resides on the SQL server, while the
orders and line item table reside on Oracle.
Example B-8 shows the complete db2exfmt output for our SQL query. The SQL
statement we issued has been highlighted under “Original statement” in this
output.
Example: B-8 db2exfmt output - Join of nicknames
DB2 Universal Database Version 8.1, 5622-044 (c) Copyright IBM Corp. 1991, 2002
Licensed Material - Program Property of IBM
IBM DATABASE 2 Explain Table Format Tool