Creating a target connection
Before using IBM® Z Database Assistant, you need to create a connection to a target Db2® subsystem that contains the workloads to be optimized.
Before you begin
IBM Z Database Assistant uses the ADMIN_COMMAND_DB2 stored procedure to perform various Db2 display commands. If you have not previously done so, complete the instructions in Installation step 21: Configure Db2 for running stored procedures and user-defined functions and Installing Db2-supplied routines during installation to create the ADMIN_COMMAND_DB2 stored procedure.
IBM Z Database Assistant needs profile tables for some of its functions. Before creating target connections, ensure that profile tables are defined. See Profile tables for more information about profile tables.
As part of the task of creating a target connection you are required to create a IBM Z Database Assistant target catalog. See Creating a IBM Z Database Assistant target catalog and granting privileges to the IDs that require access to the IBM Z Database Assistant target catalog.
- Privileges granted by hlq.SAURSAMP(AURGMUSR), the owner of the IBM Z Database Assistant metadata database, or SYSADM or higher on the metadata Db2 system. This gives you the privileges needed to modify the metadata catalog information about the target connection.
- Privileges granted by hlq.SAURSAMP(AURGTUSR), the owner of the DSNMLDB1
database, or SYSADM or higher on the target Db2 system to which you plan to create a
connection. This gives you the privileges needed to configure the ML feature on the target Db2 system.Note: If the metadata Db2 and target Db2 are on different systems, the user ID used to create the target connection must exist on the target system.
When the IBM Z Database Assistant SQL tuning background task daemon performs a rebind, it uses the ADMIN_COMMAND_DSN procedure to perform this function.
<SYSTEM_NAME>.<WLM_PROC_STARTED_TASK_OWNER>.<WLM_ENVIRONMENT>.**RDEFINE JESSPOOL STLABDC.DB2PROD.DB0BWLMR.** UACC(NONE)
PERMIT STLABDC.DB2PROD.DB0BWLMR.** CLASS(JESSPOOL) ID(<ZDBA_TSID>) ACCESS(UPDATE)
SETR RACLIST(JESSPOOL) REFRESHAbout this task
You must complete this process for each target connection you want to create.
Procedure
To create a connection: