DSNZPARM Performance and Optimization Parameters
This panel shows information about the parameters that affect DB2 performance and optimization. It shows the name of the DSNZPARM module that is specified for Db2 startup and the date on which the module is assembled. It also shows a list of the default values of the DB2 application.
If a field is not available for the current Db2 release,
the string N/A
is displayed. For other conditions, for example, if specific Db2 traces are not started or control block data is not available,
the string N/P
is displayed.
________________ ZPPFM VTM O2 V540.#P DC11 S 04/08/16 20:56:36 2
> Help PF1 Back PF3 Left PF10 Right PF11
> R.H.O
> DSNZPARM INFORMATION: Enter a selection letter on the top line.
> A-THREAD B-TRACE C-LOGGING D-ARCHIVING E-AUTH/RLF/DDF F-IRLM
> G-STORAGE H-DATASET I-DDCS J-DATA SHARING K-STORED PROC L-UTIL
> M-APPL N-DATA *-PERF P-BUFFERPOOL Q-OTHERS
===============================================================================
> DSNZPARM PERFORMANCE OPTIMIZATION PARAMETERS
ZPFM
+ Collection Interval: REALTIME SNAPTIME: 04/08/16 20:56:36.20
+
+ DSNZPARM Module DSNZPARM
+ Assembly Date 03/17/16
+ Initial Module DSNZPARM
+ Assembly Date 03/17/16
+ Previous Module DSNZPARM
+ Assembly Date 03/17/16
+
+ DSNTIP8-Perf and Optimization 1
+------------------------------------
+ Cache Dynamic SQL (CACHEDYN) YES
+ (CACHEDYN_STABILIZATION) BOTH
+ Optimization Hints (OPTHINTS) NO
+ Evaluate Uncommitted (EVALUNC) NO
+ Skip Uncomm Inserts (SKIPUNCI) NO
+ Immediate Write (IMMEDWRI) NO
+ Plan Management (PLANMGMT) EXTENDED
+ Plan Mgmt Scope (PLANMGMTSCOPE) S
+ Pkgrel Commit (PKGREL_COMMIT) YES
+ (XML_RANDOMIZE_DOCID) NO
+ Real Time Stats (STATSINT) 30
+ Disable EDM RTS (DISABLE_EDMRTS) NO
+ Statistics Feedback (STATFDBK_SCOPE) ALL
+ (STATFDBK_PROFILE) YES
+
+ DSNTIP81-Perf and Optimization 2
+------------------------------------
+ Current Degree (CDSSRDEF) 1
+ Max Degree (PARAMDEG) 0
+ Max Degree for DPSI (PARAMDEG_DPSI) 0
+ Parallel Efficiency (PARA_EFF) 50
+ Star Join Queries (STARJOIN) DISABLE
+ Max Data Caching (MXDTCACH) 20
+ Current Refresh Age (REFSHAGE) 0
+ Current Maint Types (MAINTYPE) SYSTEM
+
+ DSNTIP82-Query Accelerator Ref
+------------------------------------
+ Accelerator Startup (ACCEL) A
+ (GET_ACCEL_ARCHIVE) NO
+ (QUERY_ACCELERATION) NONE
+ (QUERY_ACCEL_WAITFORDATA)
+ DSNTIP8A-Acceleration Options
+------------------------------------
+ (QUERY_ACCEL_OPTIONS) - None NO
+ 1-MBCS EBCDIC YES
+ 2-INSERT FROM SELECT YES
+ 3-BYTE-BASED STRING FUNCTIONS YES
+ 4-DD/MM/YYYY LOCAL DATE FORMAT NO
+ 5-SYSTEM_TIME TEMPORAL QUERIES YES
+ 6-TS COLS WITH PRECISION OF 12 YES
+ 7-YYYYMMDD LOCAL DATE FORMAT NO
+ 8-FAVOR NEW ACCELERATOR_TYPE NO
+ 9-ENABLE UNCERTAINTY COST EST NO
+ 10-BALANCE WORKLOAD BETWEEN VERS NO
+ 11-USE ONLY NEW ACCELERATOR_TYPE YES
===============================================================================
Fields
The DSNZ command displays the following lines to reflect the usage of the Db2 SET SYSPARM command. To each of these lines, the corresponding date on which this particular module is assembled is displayed.
- DSNZPARM Module
- The name of the DSNZPARM module that is specified for DB2 startup.
- Initial Module
- The name of the initial DSNZPARM load module.
- Previous Module
- The name of the previous DSNZPARM load module.
- Assembly Date
- The date on which this module was assembled.
DSNTIP8-Perf and Optimization 1
- Cache Dynamic SQL (QWP4CDYN)
- The CACHEDYN subsystem parameter determines whether prepared static SQL statements or dynamic SQL statements are cached for later use by eligible application processes.
- (CACHEDYN_STABILIZATION)
This ZPARM specifies how DB2 is to stabilize cached dynamic SQL statement. When a statement is stabilized, the current SQLID, statement text, and runtime structures are written to catalog tables. If a dynamic SQL statement is not present in the dynamic SQL statement cache, DB2 will load the runtime structures from catalog table rather than performing a full prepare. This extends the stability and reliability of performance of a dynamic SQL. It can have the following values:
- CAPTURE
- Statements may be stabilized through the -START DYNQUERY command using both MONITOR(NO) and MONITOR(YES). DB2 will not load stabilized statements from SYSDYNQRY.
- LOAD
- Statements may not be stabilized via any means. The -START DYNQUERY command will fail, and any MONITOR(YES) commands in progress will not stabilize statements, even if stabilization criteria are matched. During long prepare, DB2 will attempt to load stabilized statements from SYSDYNQRY with which to run.
- BOTH
- Statements may be stabilized through the -START DYNQUERY command via both MONITOR(NO) and MONITOR(YES). During long prepare, DB2 will attempt to load stabilized statements from SYSDYNQRY with which to run. BOTH is the default setting.
- NONE
- Statements may not be stabilized via any means. The -START DYNQUERY command will fail, and any MONITOR(YES) commands in progress will not stabilize statements, even if stabilization criteria are matched. DB2 will not load stabilized statements from SYSDYNQRY.
- Optimization Hints (QWP4HINT)
- The OPTHINTS subsystem parameter determines whether Db2 applies optimization hints when static SQL statements are bound or dynamic SQL statements are prepared.
- Evaluate Uncommitted (QWP4EVUN)
- The EVALUNC subsystem parameter determines whether predicate evaluation is allowed on uncommitted data of other transactions. This parameter applies only to stage 1 predicate processing that uses table access for queries with isolation level RS or CS. Table access includes table space scan, index-to-data access, and RID-list processing.
- Skip Uncomm Inserts (QWP4SKUI)
- The SKIPUNCI subsystem parameter determines whether statements ignore a row that is inserted by another transaction if the row is not yet detected as committed. A newly inserted row can be detected as committed only after the lock that is held on the row is released.
- Immediate Write (QWPAIMMW)
- The IMMEDWRI subsystem parameter determines when updates to group buffer pool-dependent buffers are written to the coupling facility.
- Plan Management (QWP4PMGT)
- The PLANMGMT subsystem parameter determines the default plan management policy that is used when the PLANMGMT option is not explicitly specified for the bind or the rebind of a package.
- Plan Mgmt Scope (QWP4PMSC)
- The PLANMGMTSCOPE subsystem parameter determines the default plan management scope that is used when the PLANMGMTSCOPE option is not explicitly specified for the bind or rebind of a package.
- Pkgrel Commit (PKGREL_COMMIT) (QWP4PKRC)
- YES indicates that the following operations on a package that are bound with RELEASE(DEALLOCATE) are permitted while the package is active and allocated by DB2:Db2 11 and later.
- BIND and REBIND requests, including AUTOMATIC REBIND
- Data definition language changes to objects that are statically referenced by the package
- (XML_RANDOMIZE_DOCID) (QWP1XRDI)
- The XML_RANDOMIZE_DOCID subsystem parameter determines whether DB2 is sequentially or randomly generating the DOCID values for XML columns.
- Real Time Stats (STATSINT) (QWP4INTE)
- The time interval that DB2 waits before it attempts to write out page set statistics to the real-time statistics tables. This value is between 1 and 65535 minutes.
- Disable EDM RTS (QWP4DEDR)
- The DISABLE_EDMRTS subsystem parameter determines whether the collection of real-time statistics is disabled by the environmental description manager (EDM). Real-time statistics is tracking when packages were last used.
- Statistics Feedback (STATFDBK_SCOPE) (QWP4SFBS)
-
Specifies the scope of SQL statements for which DB2 is to recommend statistics. Possible values are:
- All (default): Statistics recommended for all SQL statements.
- Dynamic: Statistics recommended only for dynamically processed SQL statements.
- None: DB2 does not recommend statistics.
- Static: Statistics recommended only for statically processed SQL statements, that is, those that are bound to a package.
- STATFDBK_PROFILE (QWP4SFPR)
- Specifies whether statistics recommendations identified during query optimization directly result in modifications to statistics profiles.
DSNTIP81-Perf and Optimization 2
- Current Degree (CDSSRDEF)
- The CDSSRDEF subsystem parameter determines the default value that is used for the CURRENT DEGREE special register. The default value is used when a degree is not explicitly set in the SQL statement SET CURRENT DEGREE.
- Max Degree (PARAMDEG)
- The PARAMDEG subsystem parameter determines the maximum degree of parallelism that is allowed for a parallel group. If you specify a value for this parameter, you limit the degree of parallelism so that Db2 does not create too many parallel tasks that use virtual storage.
- Max Degree for DPSI (PARAMDEG_DPSI)
- The PARAMDEG_DPSI system parameter determines the maximum degree of parallelism that you can specify for a parallel group in which a data partitioned secondary index (DPSI) is used to drive parallelism.
- Parallel Efficiency (PARA_EFF)
- The PARA_EFF subsystem parameter determines the efficiency that DB2 assumes for parallelism when Db2 chooses an access path. The integer value that is used for this parameter represents a percentage efficiency.
- Star Join Queries (STARJOIN)
- The STARJOIN subsystem parameter determines whether star join processing is enabled.
- Max Data Caching (MXDTCACH)
- The MXDTCACH subsystem parameter determines the maximum amount of memory in MB that is allocated for data caching per thread.
- Current Refresh Age (REFSHAGE)
- The REFSHAGE subsystem parameter determines the default value for the CURRENT REFRESH AGE special register. The default value is used when no value is explicitly set by using the SET CURRENT REFRESH AGE statement.
- Current Maint Types (MAINTYPE)
- The MAINTYPE subsystem parameter determines the default value for the CURRENT MAINTAINED TABLE TYPES FOR > OPTIMIZATION special register. This value is used when no value is explsicitly set by using the SQL statement SET CURRENT MAINTAINED TABLE TYPES FOR OPTIMIZATION.
- ACCELERATOR STARTUP (ACCEL) (QWP4ACCS)
- This parameter determines whether accelerator servers are used with a DB2 subsystem, and how the accelerator servers are enabled and started.
- (GET_ACCEL_ARCHIVE) (QWP4CGAA)
- The GET_ACCEL_ARCHIVE subsystem parameter determines the default value that is used for the CURRENT GET_ACCEL_ARCHIVE special register.
- (QUERY_ACCEL_OPTIONS) - None (QWP4QACO)
- The QUERY_ACCEL_OPTIONS subsystem parameter determines whether certain types of queries are allowed to execute on an accelerator server.
- (QUERY_ACCELERATION) (QWP4CQAC)
- The QUERY_ACCELERATION subsystem parameter determines the default value that is used for the CURRENT QUERY ACCELERATION special register.
- (QUERY_ACCEL_WAITFORDATA) (QWP4QAWFD)
- The QUERY_ACCEL_WAITFORDATA subsystem parameter determines the default value that is to be used
for the CURRENT QUERY ACCELERATION WAITFORDATA special register. The QUERY_ACCEL_WAITFORDATA
subsystem parameter is used when no value is explicitly set for the CURRENT QUERY ACCELERATION
WAITFORDATA special register by the SQL statement.
- Valid values
- 0.0 - 3600.0 or 0 - 3600 (seconds)
- Default
- 0.0
- ZPARM NAME:
- DSN6SPRM.QUERY_ACCEL_WAITFORDATA
- DSNTIP8A - Accelerator options
-
- (QUERY_ACCEL_OPTIONS) - None (QWP4QACO/QWP4QANONE)
- The QUERY_ACCEL_OPTIONS subsystem parameter controls whether certain types of queries are
allowed to execute on an accelerator server.
- Valid options
-
- YES
- Indicates that query offloading is restricted to the standard SQL statements.
- NO
- Indicates that options are set to the following list of possible values: 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10.
- 1 - MBCS EBCDIC (QWP4QAEBCM)
-
YES - Indicates that the queries that include data encoded by multi-byte character set EBCDIC encoding scheme are not blocked from executing on IDAA although IDAA encodes the same data in the UTF-8 UNICODE encoding scheme. Note that EBCDIC and UNICODE implement different collating sequences. The collating sequence for UNICODE is numeric, uppercase characters and then lower case characters (1, 2, 3, a, b, c, a, b, c). In EBCDIC, the collating sequence is lower case, upper case and then numeric (a, b, c, a, b, c, 1, 2, 3).
There are also differences in collating for the national characters. This affects both data ordering and the results from range predicates. Therefore, if the tables include character columns where more than one of these groups can be found in the column values and the SQL statements include range predicates or ordering on these columns, a query executed in DB2 may return a different result set than the same query executed in IDAA.
- 2 - INSERT FROM SELECT (QWP4QAIFSS)
- YES - Indicates that the queries that include an insert from select statement, the select part is not blocked from executing on IDAA although the data operated on by the select may not be current in IDAA.
- 3 - BYTE-BASED STRING FUNCTIONS (QWP4QABBSF)
-
YES - Indicates that the queries that include DB2 byte-based string functions on data encoded by multi-byte character sets encoding schemes (like UNICODE) are not blocked from executing on IDAA although IDAA supports only character-based string functions. If the data on which the string function is specified contains only single-byte characters, executing the function on IDAA will return the same result as executing the function on DB2 irrespective of what encoding scheme is used for the data. However, if the data contains multi-byte characters, the results will not be the same.
- 4 - DD/MM/YYYY LOCAL DATE FORMAT (QWP4QALDMY)
- YES - Indicates that the queries that reference an expression with a DATE data type that uses a
LOCAL format are not blocked from executing on IDAA. IDAA will use the dd/mm/yyyy format to
interpret the input and output data value. Specify option 4 only when you also specify LOCAL as the
setting for the DSNHDECP.DATE parameter and your LOCAL date exit defines the specific dd/mm/yyyy
date format. Otherwise, queries may return unpredictable results. Note: Option 4 cannot be specified in combination with option 7.
- 5 - SYSTEM_TIME TEMPORAL QUERIES (QWP4QASTTQ)
- YES - Indicates that SYSTEM_TIME temporal queries will be offloaded to an accelerator.
- 6 - TS COLS WITH PRECISION OF 12 (QWP4QATS12)
- Indicates that the queries that reference timestamp columns with precision of 12 will be offloaded to an accelerator.
- 7 - YYYYMMDD LOCAL DATE FORMAT (QWP4QALYMD)
- YES - Indicates that the queries that reference an expression with a DATE data type that uses a LOCAL format are not blocked from executing on IDAA. IDAA will use the yyymmdd format to interpret the input and output date value. Specify option 7 only when you also specify LOCAL as the setting for the DSNHDECP.DATE parameter and your LOCAL date exit defines the specific yyymmdd date format. Otherwise, queries may return unpredictable results.
- 8 - FAVOR NEW ACCELERATOR_TYPE (QWP1QAFNAT)
- YES - Specifies that in a Db2 environment that includes both a V5 accelerator server and a V7 accelerator server, statements that are eligible to be accelerated on either of the accelerator servers are sent to the V7 accelerator server.
- 9 - ENABLE UNCERTAINTY COST EST (QWP4QADUCE)
- YES - Specifies that uncertainty cost consideration is enabled on the accelerator for offloaded queries.
- 10 - BALANCE WORKLOAD BETWEEN VERS (QWP4QAWBAL)
- YES - Specifies that Db2 will attempt to balance query acceleration between different versions of accelerator servers based on the actual workload of each available server. Workload balancing can also be influenced by the CURRENT ACCELERATOR register. For example, when BALANCE WORKLOAD BETWEEN VERSIONS option = YES, if the CURRENT ACCELERATOR special register specifies a particular accelerator server, the workload will be offloaded only to that server if it is available, even if other accelerator servers with less workload are available.
- 11 - USE ONLY NEW ACCELERATOR_TYPE (QWP4AONAT)
- Specifies that in a Db2 environment, only V7 or later accelerators will be recognized. When
there exists an accelerator server lower than V7, Db2 will not exploit it. This includes EXPLAIN,
accelerator modeling and query execution. When this option is specified, the following options, if
also specified, are ignored:
- 8: FAVOR NEW ACCELERATOR_TYPE
- 10: BALANCE WORKLOAD BETWEEN VERSIONS