Performing group buffer pool operations


Using the OPERTUNE group buffer pool operations, you can perform I/O balancing among the Db2 subsystems in a data sharing group by changing the castout owner of a data set. The castout operations provide a way for you to force Db2 to write data to disk so that external applications can read the data sets directly. You can perform the following tasks:

  • Casting out a group buffer pool
  • Changing the castout owner of a data set
  • Casting out a table space
  • Casting out a data set

Select the Group buffer pool operations option from the Operational Assist Menu to display the Group Buffer Pool List panel, which lists all active group buffer pools.

Group Buffer Pool List panel

DDTG DBI1      Group Buffer Pool List                    Row 1 of 1
Command ===> ___________________________________________ Scroll ===> PAGE
                                                        Commands: ZPARMS

Select the desired group buffer pool(s). Then Press Enter.
L=GBP Dependent Table Space List

                           Group Buffer   Class
Act Name   Pages   Ratio   Pool Castouts  Castouts
 ..  GBP0     1236    5            0          4
******************************* Bottom of data ********************************

Use this panel to perform the actions listed in the following table:

Command

Description

GBP Dependent Table
Space List (L)

List the GBP dependent table spaces for changing the castout owner, or casting out a table space or a data set

ZPARMS

To cast out a group buffer pool using the CASTOUT GBPOOL command

Use the following syntax to issue the CASTOUT GBPOOL command:

IN(DB2ssid@opertuneID) CASTOUT GBPOOL

Command syntax and parameters

image2018-12-26_17-42-0.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).

gbpoolID

Specify a group buffer pool ID in one of the following ranges:

  • GBP0–GBP49
  • GBP32K1–GBP32K9

To display the Group Buffer Pool Dependent Table Space List panel

From the Group Buffer Pool List panel, type L in the Act field next to the group buffer pool that contains the castout owner you want to change and press Enter.
The GBP Dependent Table Space List panel is displayed.

DDTG DBI1     GBP Dependent Table Space List     Row 1 of 1
Command ===> ________________________________________________ Scroll ===> PAGE

Currently Selected GBP . . . : GBP0 Commands: FILTER

Select the desired table space(s). Then Press Enter.
L =GBP Dependent Data Set Name List

Act Catalog Name Database Name Table Space Name
 .L DSNDFA DDTQDB0 DDTQTS0
******************************* Bottom of data ********************************

To display the Group Buffer Pool Dependent Dsname List panel

To display Group Buffer Dependent Dsname List panel, type L in the Act field next to the table space and press Enter.

DDTG DBI1 GBP Dependent Dsname List Row 1 of 1
Command ===> ________________________________________________ Scroll ===> PAGE

Currently Selected GBP . . . : GBP0
Currently Selected Table . . : DSNDFA DDTQDB0 DDTQTS0

******************************* Bottom of data ********************************

 

To change the castout owner of a data set

You can change the castout owner by using the CHANGECO command.

Use the following syntax to issue the CHANGECO command:

IN(DB2ssid@opertuneID) CHANGECO

Command syntax and parameters

image2018-12-26_17-34-32.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).

dataSet

Specify the name of the data set for which the castout owner will be changed.

owner

Specify the subsystem that will be the new castout owner of the specified data set.

To cast out a table space

You can cast out a table space  by using the CASTOUT TABLESPACE command.

Use the following syntax to issue the CASTOUT TABLESPACE command:

IN(DB2ssid@opertuneID) CASTOUT TABLESPACE

Command syntax and parameters

image2018-12-26_17-46-33.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).

catalog

Specify the name of the catalog for the data set that contains the table space to be cast out.

dataSet

Specify the Db2 subsystem ID or data sharing group name of the data set that contains the table space to be cast out.

tableSpace

Specify the name of the table space to be cast out.

To cast out a data set

You can cast out a data set by using the CASTOUT DATASET command.

Use the following syntax to issue the CASTOUT DATASET command:

IN(<DB2ssid@opertuneID>) CASTOUT DATASET

Command syntax and parameters

image2018-12-26_17-54-55.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).

name

The name of the data set to be cast out.

 

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