Files
doc-exports/docs/rds/umn/rds_08_0031.html
wangdengke2 ac787f42f1 rds_umn
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com>
Co-authored-by: wangdengke2 <wangdengke2@huawei.com>
Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
2026-02-05 14:42:55 +00:00

18 lines
3.3 KiB
HTML

<a name="rds_08_0031"></a><a name="rds_08_0031"></a>
<h1 class="topictitle1">Viewing Top SQL Statements of a DB Instance</h1>
<div id="body0000002356770246"><div class="section" id="rds_08_0031__en-us_topic_0000001373012989_section04246347547"><h4 class="sectiontitle">Scenarios</h4><p id="rds_08_0031__en-us_topic_0000001373012989_p9211534195210">Top SQL shows the SQL queries that have been contributed at most to database load. You can sort them by multiple dimensions.</p>
</div>
<div class="section" id="rds_08_0031__en-us_topic_0000001373012989_section13380145511548"><h4 class="sectiontitle">Procedure</h4><ol id="rds_08_0031__en-us_topic_0000001373012989_ol1314114919495"><li id="rds_08_0031__li17616348171"><span>Log in to the management console.</span></li><li id="rds_08_0031__li146168481712"><span>Click <span><img id="rds_08_0031__rds_modify_instance_name_en-us_topic_0192953815_image192529212293" src="en-us_image_0000001191211679.png"></span> in the upper left corner and select a region and a project.</span></li><li id="rds_08_0031__li96167481711"><span>Click <strong id="rds_08_0031__rds_modify_instance_name_b171171523153019">Service List</strong>. Under <strong id="rds_08_0031__rds_modify_instance_name_b111722319302">Database</strong>, click <strong id="rds_08_0031__rds_modify_instance_name_b15118152363010">Relational Database Service</strong>. The RDS console is displayed.</span></li><li id="rds_08_0031__en-us_topic_0000001373012989_li1426913204172"><span>On the <strong id="rds_08_0031__b13591547815">Instances</strong> page, click the DB instance name.</span></li><li id="rds_08_0031__en-us_topic_0000001373012989_li499974911328"><span>In the navigation pane, choose <strong id="rds_08_0031__b18272756689">DBA Assistant</strong> &gt; <strong id="rds_08_0031__b827315616819">Historical Diagnosis</strong>.</span></li><li id="rds_08_0031__en-us_topic_0000001373012989_li15550224331"><span>Choose <strong id="rds_08_0031__b033316176914">SQL Explorer</strong> &gt; <strong id="rds_08_0031__b675720241399">Top SQL</strong>.</span><p><div class="note" id="rds_08_0031__en-us_topic_0000001373012989_note58245359497"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="rds_08_0031__en-us_topic_0000001373012989_p15151026785">Top SQL needs to be purchased separately. To use this function, subscribe to Intelligent O&amp;M first.</p>
</div></div>
</p></li><li id="rds_08_0031__en-us_topic_0000001373012989_li5193822910"><span>Click <strong id="rds_08_0031__b2029883121012">Subscribe</strong>. In the displayed dialog box, learn about Intelligent O&amp;M functions and pricing.</span></li><li id="rds_08_0031__en-us_topic_0000001373012989_li17785172615213"><span>After subscribing to Intelligent O&amp;M, view top SQL statements of your instance.</span></li><li id="rds_08_0031__en-us_topic_0000001373012989_li517685511415"><span>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).</span></li></ol>
<p id="rds_08_0031__en-us_topic_0000001373012989_p173521128132419"></p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rds_10_0006.html">SQL Analysis</a></div>
</div>
</div>