Problem solve Get help with specific problems with your technologies, process and projects.

Optimization level setting

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.


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

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.