Ask the Expert

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.

==================================
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.


This was first published in February 2003

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: