Creating and managing tuning profiles for Db2
A tuning profile contains information that is relevant for connecting to a subsystem, such as the subsystem name, hostname, and port. The use of tuning profiles is optional. If you choose not to use a tuning profile, you need to manually specify connection information prior to tuning a query.
Procedure
- Ensure that you have configured UMS for SQL Tuning Services by completing the steps in Configuring UMS for SQL Tuning Services.
- Ensure that the required SQL Tuning Services user IDs have been created with the appropriate permissions. For more information, see Setting up required user IDs and permissions.
Creating tuning profiles
To create a tuning profile, complete the following steps:
Procedure
Viewing tuning profiles
Before tuning an SQL query, you must select the tuning profile that is appropriate for the SQL query. You can select the appropriate tuning profile by viewing its details.
Procedure
Sharing tuning profiles
By using a shared tuning profile, multiple users can tune SQL queries with the same tuning profile even though they do not own the profile. Owners of the profiles and users with administrator access to the SQL Tuning Services server can share the tuning profiles. Profiles can be shared with one or more individual users or a group of users that are included in a RACF secondary group ID.
Before you begin
Procedure
Deleting tuning profiles
You can delete a tuning profile if you no longer need it. Owners of the profiles and the users with administrator access to the SQL Tuning Services server can share the tuning profiles.
Before you begin
- The tuning profile is not shared with other users.
- An SQL query tuning job that is using this profile is not active.