---
title: "3 Types of HINT in DB2 to Read now"
description: "PLAN_TABLE hints. This type of hint tries to enforce a particular access path for an SQL statement issued by a specific single authorization ID. It uses rows in a PLAN_TABLE instance owned by the same..."
url: https://srinimf.com/2014/08/18/3-different-types-of-hint-in-db2/
date: 2014-08-18
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2014/08/pexels-photo-9588213.jpeg?fit=1880%2C1058&ssl=1
categories: ["DB2 V11"]
tags: ["Db2 Tips"]
type: post
lang: en
---

# 3 Types of HINT in DB2 to Read now

## **PLAN_TABLE hints**

This type of hint tries to enforce a particular [access path](https://srinimf.com/2016/03/30/how-hash-access-is-faster-than-index-access-in-db2/) for an SQL statement issued by a specific single authorization ID. It uses rows in a PLAN_TABLE instance owned by the same authorization ID to apply hints based on the values specified for the OPTHINT [bind option](https://srinimf.com/2015/09/02/3-key-points-of-acquire-bind-option-in-db2/) or the CURRENT OPTIMIZATION HINT special register.

Related[Bind Parameter: How to Access Data Concurrently](https://srinimf.com/2016/11/20/the-3-new-ways-how-db2-give-access-to-currently-committed-data-ideas/)

## **Statement-level access path hints (DB2 10 for z/OS NFM or later)**

This type of hint specifies that; DB2 tries to use specified PLAN_TABLE rows to determine the access path for matching SQL statements. You can also create access path hints that apply only to matching statements from a specified scope.

## **Optimization parameter hints (DB2 10 for z/OS NFM or later)**

This type of hint specifies that DB2 uses certain optimization parameters, such as the following subsystem parameters and options, to process all statements that match the hint:

- REOPT bind option
- STARJOIN subsystem parameter
- PARAMDEG subsystem parameter (MAX_PAR_DEGREE column)
- CDSSRDEF subsystem parameter (DEF_CURR_DEGREE column)
- SJTABLES subsystem parameter

You can also create hints that specify optimization parameters and that apply only to matching statements from a specified scope.

Related[DB2- Optimization Hints](https://srinimf.com/2014/03/14/db2-optimization-hints/)

If you are not sure which type of hint is right for your situation, you can define all these in the editor, and then deploy them one at a time for testing

References

- [Read more at IBM](https://www.ibm.com/docs/ro/db2-for-zos/11)

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2014%2F08%2F18%2F3-different-types-of-hint-in-db2%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2014%2F08%2Fpexels-photo-9588213.jpeg%3Ffit%3D1200%252C675%26ssl%3D1&description=3%20Types%20of%20HINT%20in%20DB2%20to%20Read%20now)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2014/08/18/3-different-types-of-hint-in-db2/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2014/08/18/3-different-types-of-hint-in-db2/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2014/08/18/3-different-types-of-hint-in-db2/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2014/08/18/3-different-types-of-hint-in-db2/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%203%20Types%20of%20HINT%20in%20DB2%20to%20Read%20now&body=https%3A%2F%2Fsrinimf.com%2F2014%2F08%2F18%2F3-different-types-of-hint-in-db2%2F&share=email)
-

### Like this:

Like Loading…