We support DB2 on both AIX and the iSeries. I believe on AIX (DB2) there is a way to set the optimizer sensitivity....
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
Is there a way on the iSeries to set DB2 optimizer parameters? Also, is there a way to give the optimizer hints? There are times where the optimizer chooses not to use an index (that already exists) but builds a temporary one instead. There is not an optimization level setting on DB2 UDB for iSeries. The best way to find out which settings influence the optimizer is to attend the DB2 UDB for iSeries SQL Performance Workshop.
Portions of this workshop are online, just follow the links for Online DB2 Education here.
Optimizer hints are also not supported. Attending the workshop as well as reviewing the DB2 UDB for iSeries Index Strategy White Paper should give you a better understanding of how the iSeries optimizer processes indexes. If the optimizer is creating a temporary index that's an exact copy of the permanent index, then you may have an issue that should be reported to IBM Support.
MORE INFORMATION ON THIS TOPIC
Search400.com's targeted search engine: Get relevant information on DB2/400.
The Best Web Links: tips, tutorials and more.
Check out this online event, Getting the Most out of SQL & DB2 UDB for the iSeries.
Dig Deeper on Oracle on iSeries
Related Q&A from Kent Milligan
To monitor members stuck within a physical file on AS/400, you can periodically use the display file description (DSPFD) command to create an output ...continue reading
Create a host variable of the where in statement on the fly with dynamic SQL.continue reading
When working with DB2 files with columns that have both short and long names, there is no option choose which column names are returned via ODBC ...continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.