DB2 Version 10.1 for Linux, UNIX, and Windows

GET STMM TUNING command using the ADMIN_CMD procedure

Used to read the catalog tables to report the user preferred self tuning memory manager (STMM) tuning member number and current STMM tuning member number.

Authorization

The privileges held by the authorization ID of the statement must include at least one of the following authorities or privilege:
  • DBADM
  • SECADM
  • SQLADM
  • ACCESSCTRL
  • DATAACCESS
  • SELECT on SYSIBM.SYSTUNINGINFO

Required connection

Database

Command syntax

Read syntax diagramSkip visual syntax diagram
>>-GET--STMM--TUNING----MEMBER---------------------------------><

Example

CALL SYSPROC.ADMIN_CMD( 'get stmm tuning member' )

The following is an example of output from this query.

Result set 1
  --------------

  USER_PREFERRED_NUMBER CURRENT_NUMBER
  --------------------- --------------
                      2              2

  1 record(s) selected.

  Return Status = 0

Usage notes

Compatibilities

For compatibility with previous versions:
  • DBPARTITIONNUM can be substituted for MEMBER, except when the DB2_ENFORCE_MEMBER_SYNTAX registry variable is set to ON.

Result set information

Command execution status is returned in the SQLCA resulting from the CALL statement. If execution is successful, the command returns additional information in the following result set:
Table 1. Result set returned by the GET STMM TUNING command
Column name Data type Description
USER_PREFERRED_NUMBER INTEGER User preferred self tuning memory manager (STMM) tuning member number. In a partitioned database environment, a value of -1 indicates that the default member is used.
CURRENT_NUMBER INTEGER Current STMM tuning member number. A value of -1 indicates that the default member is used.