forked from docs/doc-exports
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
3.3 KiB
3.3 KiB
Viewing Top SQL Statements of a DB Instance
Scenarios
Top SQL shows the SQL queries that have been contributed at most to database load. You can sort them by multiple dimensions.
Procedure
- Log in to the management console.
- Click
in the upper left corner and select a region and a project. - Click Service List. Under Database, click Relational Database Service. The RDS console is displayed.
- On the Instances page, click the DB instance name.
- In the navigation pane, choose DBA Assistant > Historical Diagnosis.
- Choose SQL Explorer > Top SQL.
- Click Subscribe. In the displayed dialog box, learn about Intelligent O&M functions and pricing.
- After subscribing to Intelligent O&M, view top SQL statements of your instance.
- You can view execution durations of the top SQL statements in the last 1 hour, last 3 hours, last 12 hours, or a custom time period (spanning no more than one day).
Parent topic: SQL Analysis
