AI-powered database assistant
Chat with the IBM® Db2® database assistant to help you complete tasks, find out about your system status and statistics, or ask general questions about Db2.
You can open the database assistant from the IBM Db2 Intelligence Center and then ask it to help you with a range of Db2 tasks, including:
- Answering your questions about Db2
- Detecting and helping to resolve lock contention issues
- Monitoring your Db2 instance, including getting information about:
- Active connections
- SQL activity
- Resource usage
- Schemas, table spaces, indexes, and tables in the system
- Convert your plain text to SQL (for more information about this capability, see Using Text-to-SQL with the Db2 database assistant)
The Db2 database assistant uses built-in skills and is trained on the official IBM Db2 documentation so that it can provide you with the most accurate responses.
Network connectivity requirements
To enable successful IBM authentication, ensure that the following domains and endpoints are reachable without SSL interception or content inspection.
Domains to whitelist (allow direct TLS 443 traffic)
| Purpose | Domain / Hostname | Port | Protocol |
|---|---|---|---|
| IBM Verify | *.verify.ibm.com | 443 | HTTPS (TLS 1.3) |
| IBM Cloud Identity Platform | *.login.ibm.com | 443 | HTTPS |
| IBM Identity Support Services | *.identity.ibm.com | 443 | HTTPS |
| IBM Verify static/CDN | *.akamaiedge.net | 443 | HTTPS |
| Watson Orchestrate Assistant | *.assistant.watson.appdomain.cloud |
Enabling the Db2 database assistant
If the Db2 database assistant is not enabled, IBM Db2 Intelligence Center prompts for user authentication when you try to access it from any page. It can be enabled or disabled only from the Administration page.
To enable the Db2 database assistant:
- Go to the Administration console. Scroll down to the database assistant option.
- If you see that the database assistant has a Disabled label, click Database assistant.
- In the IBM Verify login window, click Authenticate with IBMid.
- On the IBM Verify page, enter your IBMid, password, and other details in the fields provided for user authentication. If you do not have an IBMid, you can create one from the login page.
After successful authentication, you will see a confirmation message, and the database assistant will be set to Enabled for your IBM Db2 Intelligence Center application. The database assistant authentication is valid for 24 hours after which you need to log in again to reauthenticate.
Starting the Db2 database assistant
To get started with the database assistant:
-
Open your IBM Db2 Intelligence Center.
-
Click the database assistant chat icon.
- Type your questions and requests in the chat.
What can the database assistant do?
- Product information
- Instance information
- Workload information
- Workload queuing
- Storage information
- Resource utilization
- Database objects
- Troubleshooting
The database assistant can monitor multiple databases within IBM Db2 Intelligence Center. When you select a specific database, any subsequent skills you run will apply to that same database. The assistant prompts you to choose a database if one is not already selected.
| Action | Description | Example prompt phrases |
|---|---|---|
| Answer your questions about Db2 | Ask the assistant anything about Db2 and it generates an answer based on its knowledge of the product. The assistant is trained on the official IBM Db2 documentation. |
|
| Action | Description | Example prompt phrases |
|---|---|---|
| Show database summary | Get a summary of basic database details such as name, version, size, number of tables, number of schemas, uptime, and more. |
|
| Show database version | Get the version of Db2. |
|
| Show system settings | Get a summary of the host names and endpoints configured in your system. |
|
| Open a specific console page | Navigate directly to a specific page within the IBM Db2 Intelligence Center |
|
| Action | Description | Example prompt phrases |
|---|---|---|
| Show active connections | Get a list of all current connections to the system. |
|
| Show running queries | Get a list of all currently running SQL queries and in-flight executions in the system. |
|
| Show response times | Get a summary of query response times in the system. |
|
| Show query throughput | Get information about query processing rates and throughput. |
|
| Action | Description | Example prompt phrases |
|---|---|---|
| Check for WLM queuing | Identifies if workloads are being queued by WLM |
|
| Shows activity-based queuing | Shows queuing based on activities |
|
| Show resource entitlement for hard-queued service class | Shows resource entitlement for <service class> for hard
queuing |
|
| Show insufficient resources in a hard resource- limited service class | Shows insufficient resources in a service class with a hard resource limit |
|
| Action | Description | Example prompt phrases |
|---|---|---|
| Show table spaces | Get a list of table spaces in the system and their storage utilization. |
|
| Show total storage | Get storage details about the system. |
|
| Action | Description | Example prompt phrases |
|---|---|---|
| Show CPU usage summary | Get a summary of how much CPU the system is using. |
|
| Show IO usage summary | Get a summary of disk usage over a specified period. |
|
| Show memory usage summary | Get a summary of how much memory was used by the system over a specified period. |
|
| Show database performance | Get information about how your database is being used, including performance statistics. |
|
| Action | Description | Example prompt phrases |
|---|---|---|
| Show indexes for a specified schema | Get a list of indexes for a given schema |
|
| Show largest tables by rows | Get a ranked list of the largest tables in the system based on row count |
|
| Show largest tables by rows for a specified schema | Get a ranked list of the largest tables in a given schema |
|
| Show largest tables by storage | Get a ranked list of the largest tables in the system based on storage size |
|
| Show largest tables by storage for a specified schema | Get a ranked list of the largest tables in a given schema based on storage size |
|
| Show schemas | Get a list of schemas in the system |
|
| Show tables | Get a list of tables in the system |
|
| Show views | Get a list of views in the system |
|
| Show outdated statistics | Get information about tables or schemas that have outdated statistics |
|
| Get updated statistics | Get information about tables or schemas that have updated statistics |
|
| Action | Description | Example prompt phrases |
|---|---|---|
| Show most active connections | Get details about the most active connections |
|
| Show how time is spent | Get details about how much time was spent by the system on various tasks |
|
| Show lock waits | Get a list of blocking and waiting connections in the system |
|
| Show longest running queries | Get information about the top queries in the system ranked by how long they have been running |
|
Using Text-to-SQL with the Db2 database assistant
The Db2 database assistant can help you to transform all your queries from plain English to SQL.
Tech preview The assistant's Text-to-SQL capabilities are provided as a technology preview and are not supported for use in production environments.
- Log in to IBM Db2 Intelligence Center.
- Click .
- Under SQL Objects, click Select connections and select the database for which you want to generate the query.
- Click the Database Assistant icon on the top.
- Type text to SQL in the database assistant chat window.
- Type your query in plain English. The database assistant generates the SQL statement.

If you have not selected a database, the database assistant will prompt you to choose one after you enter your query. Even if there are no tables available, the assistant will create a general SQL query based on your question that you can then modify to suit your needs.
Troubleshooting the Db2 database assistant
If you find that you are not getting the answers and results that you expect from the Db2 database assistant, try one or more of the following troubleshooting strategies:
- Rephrase the question. The assistant might not understand your phrasing. Try using different wording, if possible.
- Restart the conversation. The assistant might be getting confused by other things you have discussed with it.
- Ensure that you are asking about Db2. If you are asking about something else, it might be outside of the assistant's capabilities.
- Try asking about something specific. If your question is too broad, the assistant is more likely to return results that aren't relevant to your request.
- Ensure that you are not filtering by version. If an answer to your question is not available in the current documentation release, the assistant cannot find it. If you are filtering by version, some content might be missing. To broaden the search, type "change version" and then choose Any.
Data privacy and opting out
When you interact with the Db2 database assistant, your questions and requests are processed by IBM watsonx™ Orchestrate®, which is outside of your Db2 instance. Only the text that you input into the assistant gets processed by watsonx Orchestrate. None of your actual data or metrics leave your Db2 instance at any time.
To opt out of the Db2 database assistant, contact IBM Support.