Information

This site will undergo maintenance on Friday, 26 September at 2:00 AM CDT / 12:30 PM IST and may experience a short period of instability during that time.

REFSHAGE—Default current refresh age


Use the Modify Default Current Refresh Age panel or the REFSHAGE command to specify the default value for the CURRENT REFRESH AGE special register if no value is explicitly set using the SQL statement SET CURRENT REFRESH AGE. If you accept the default value of 0, query rewrite using deferred materialized query tables is disabled. The special register CURRENT REFRESH AGE specifies the maximum refresh age that a materialized query table can have.

Modify Default Current Refresh Age panel

DDTJ DHB4 Modify Default Current Refresh Age
Command ===> _________________________________________________________________

 Command: CURRENT
Description . . . . . . . . : DEFAULT CURRENT REFRESH AGE

Type the new Default Current Degree Special Register value to change to. Then press Enter.

Default Current Refresh Age Special Register Value Parameter
Refresh Age . . . . . . . . ANY (0 or ANY)

Command syntax and parameters

image2018-12-24_16-43-31.png

Value

Description

DB2ssid

Db2 subsystem ID or the name of the Db2 data sharing group to which the command applies.

opertuneID

OPERTUNE system profile name (if OPERTUNE is running as a started task) or the batch job name (if OPERTUNE is running as a batch job).

0
ANY

Whether Db2 will consider materialized query tables in automatic query rewrite. Specify one of the following values:

  • 0 means that Db2 will not use materialized query tables in automatic query rewrite.
  • ANY means that Db2 will use all materialized query tables in automatic query rewrite.

NORESET

The changes you request remain in effect until the Db2 subsystem is cycled.

Db2 parameter values

Field

Installation panel

CLIST parameter

ZPARM macro

ZPARM parameter

Current refresh age

DSNTIP8

None

DSN6SPRM

REFSHAGE

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

OPERTUNE for DB2 12.1