We support DB2 on both AIX and the iSeries. I believe on AIX (DB2) there is a way to set the optimizer sensitivity. 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 solve the SQL error -321 on IBM i6.1, use the new values statement to overcome the error. If you are using an older release, declare a cursor ...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
When developing tables in a parent-child relationship, use a primary key and a foreign key along with a unique ID to make your database easier to ...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.