You can disable accelerated queries against
selected tables without entirely disabling the associated accelerator.
Before you begin
- You need a connection to a database that has an accelerator
attached to it.
- You (your user ID) must be connected to the database
and have the rights to control the accelerator.
- The tables that you want to disable must have been added to the accelerator.
About this task
The task of disabling tables is carried out by the SYSPROC.ACCEL_SET_TABLES_ACCELERATION
stored procedure on your data server. For information about the privileges that are required
to run this procedure and further details, follow the appropriate Related
reference link at the end of this topic.
Procedure
- Select the accelerator. For more information, see Selecting an accelerator.
- Select the tables you want to disable. In IBM Db2 Analytics Accelerator Studio, you might have to scroll down
to the list of tables.
- Disable acceleration for the selected tables:
| IBM Db2 Analytics Accelerator Studio |
Select from the toolbar. |
| IBM Data Server Manager |
Select from the toolbar. |
| IBM Unified Experience for z/OS |
- On the accelerator details page, click the Tables tab.
- Scroll down to the list of tables.
- Select the tables to enable:
- To enable acceleration for all schemas (that is, all tables in all schemas), select the check
box in front of the column label Schema name.
- To enable acceleration for all tables belonging to a schema, select the check box in front of a
schema name.
- To enable acceleration for individual tables, click the twistie in front of a schema name to
expand the list of tables belonging to that schema. Then select the check box in front of one or
more table names.
- On the toolbar above the list of tables, select .
|
| IBM Db2 Analytics Accelerator Administration Services |
- Start a /table/enableDisableAcceleration request.
- In the request body:
- Specify the connection name (
"connectionName":).
- Specify the accelerator name (
"accelName":).
- Specify the tables in an array that serves as the value of the
"selTables" parameter. The first-level elements in this array must be JSON objects
(key-value pairs), in which the key is the schema name, followed by the value, which is an array
that contains the names of the tables belonging to that schema. Separate these table names by a
comma. Also separate the JSON objects by a comma.
Example:"selTables": [
{
"SYSABC": [
"TABLE01",
"TABLE02"
]
},
{
"SYSDEF": [
"TABLE01"
]
}
],
- Set the
"enableAcceleration": parameter to the value
false.
- Click Execute.
|
Results
This disables query acceleration for the selected tables only. Other tables that are
associated with the same accelerator are not affected.