Required user IDs and permissions
Installing, configuring, starting, and using SQL Tuning Services involves several different user IDs. For some tasks, you can likely use an existing ID with some additional privileges. For other tasks, you will need to create new IDs.
The following table identifies all these user IDs. The placeholder names in the ID column are used throughout the installation and configuration documentation.
| User ID | Description | Required privilege or permission |
|---|---|---|
SQL Tuning Services repository database ID ( sqlts_repodb_id) |
This ID is a functional Db2® for z/OS® ID that is used to connect to the Db2 for z/OS subsystem where the SQL Tuning Services repository database will be created and to create the repository database. It is recommended that you create a new functional ID for this ID and assign it a password that does not expire, which eliminates the extra maintenance that is required to regularly reset the password. This ID must be able to use passwords or passphrases. |
The sqlts_repodb_id requires CREATEDBA and CREATEIN privileges on the Db2 for z/OS subsystem where the SQL Tuning Services repository database will be created. Example GRANT statements for assigning these privileges are provided in the DSN5RTRP sample JCL job.Additionally, to use the extended tuning features, the Note: If you use a user ID other than the
sqlts_repodb_id to create the repository database, you must explicitly grant that ID privileges to access the repository database tables: |
SQL Tuning Services started task ID (SQLTSID) |
This ID is a functional RACF ID that's associated with the SQL Tuning Services started task. | Sample RACF commands for creating this ID and associating it with the SQL Tuning Services started task are provided in Setting up the started task ID and creating a key ring for it. |
sqlts_install_id |
This ID is typically used by a system programmer to install, configure, and start SQL Tuning Services in UNIX System Services. |
|
sqlts_targetsys_id |
This user ID is a Db2 for z/OS authorization ID that's used to connect to the tuning target Db2 for z/OS subsystem. Within these instructions, there are two types of this ID:
|
An
An
sqlts_dba_id requires all the same privileges that a sqlts_user_id requires plus these additional privileges:
|
Example
Carol is an SQL Tuning Services administrator who is responsible for creating the repository database, creating repository tables, granting privileges to SQL Tuning Services users, managing all tuning connections, and so on. To perform these administrative tasks, Carol needs a sqlts_user_id ID with CANVIEW and CANADMINISTER privilege on the SQL Tuning Services repository database.
The following figure illustrates the function of Carol's sqlts_user_id ID.
- A
sqlts_user_idID to log on to SQL Tuning Services. Because he is a user with no administrative responsibilities, Zhou'ssqlts_user_idID only needs UDF CANVIEW privilege on the repository database. - A
sqlts_targetsys_idID to connect to the target Db2 subsystem. - Access to the functional
sqlts_repodb_idID.
The following figure illustrates the function of the IDs that Zhou needs to use. In this figure, the repository database resides on its own subsystem, but it can also reside on the same subsystem as a target Db2 database.