DB2Explain CLI/ODBC configuration keyword
Determines whether Explain snapshot, Explain table, or both information will be generated by the server.
- db2cli.ini keyword syntax:
- DB2Explain = 0 | 1 | 2 | 3
- Default setting:
- Neither Explain snapshot nor Explain table information will be generated by the server.
- Equivalent connection attribute:
- SQL_ATTR_DB2EXPLAIN
- Usage notes:
- 0 = both off (default)
A 'SET CURRENT EXPLAIN SNAPSHOT=NO' and a 'SET CURRENT EXPLAIN MODE=NO' statement will be sent to the server to disable both the Explain snapshot and the Explain table information capture facilities.
- 1 = Only Explain snapshot facility on
A 'SET CURRENT EXPLAIN SNAPSHOT=YES' and a 'SET CURRENT EXPLAIN MODE=NO' statement will be sent to the server to enable the Explain snapshot facility, and disable the Explain table information capture facility.
- 2 = Only Explain table information capture facility on
A 'SET CURRENT EXPLAIN MODE=YES' and a 'SET CURRENT EXPLAIN SNAPSHOT=NO' will be sent to the server to enable the Explain table information capture facility and disable the Explain snapshot facility.
- 3 = Both on
A 'SET CURRENT EXPLAIN MODE=YES' and a 'SET CURRENT EXPLAIN SNAPSHOT=YES' will be sent to the server to enable both the Explain snapshot and the Explain table information capture facilities.