forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Rechenburg, Matthias <matthias.rechenburg@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
32 lines
8.1 KiB
HTML
32 lines
8.1 KiB
HTML
<a name="EN-US_TOPIC_0000001659054514"></a><a name="EN-US_TOPIC_0000001659054514"></a>
|
|
|
|
<h1 class="topictitle1">Historical Queries</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_section6926523182218"><h4 class="sectiontitle">Going to the Historical Query Page</h4><ol id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_o4d27c72c9c5b483283c532fd703af879"><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_l3bf4b8bc45d343b6aec0b48be7dfc1aa"><span>Log in to the GaussDB(DWS) management console.</span></li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li11952509114244"><span>On the <strong id="EN-US_TOPIC_0000001659054514__b1567216406174">Clusters</strong> > <strong id="EN-US_TOPIC_0000001659054514__b9672124051719">Dedicated Clusters</strong> page, locate the cluster to be monitored.</span></li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li8798326172918"><span>In the <strong id="EN-US_TOPIC_0000001659054514__b15240142615556">Operation</strong> column of the target cluster, click <strong id="EN-US_TOPIC_0000001659054514__b1724072685511">Monitoring Panel</strong>.</span></li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li3267191418288"><span>In the navigation pane on the left, choose <strong id="EN-US_TOPIC_0000001659054514__b44721129185512">Monitoring</strong> > <strong id="EN-US_TOPIC_0000001659054514__b174721529205510">History</strong>.</span><p><p id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_p1768151612282">All the historical queries in the current cluster will be displayed.</p>
|
|
</p></li></ol>
|
|
<div class="note" id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_note893753912116"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_ul13118161191412"><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_li161189115144">Historical queries can be viewed only in clusters of version 8.1.2 and later.</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_li611819151414">To enable historical query monitoring, choose <strong id="EN-US_TOPIC_0000001659054514__b3768851766">Settings</strong> > <strong id="EN-US_TOPIC_0000001659054514__b107680511616">Monitoring</strong>, click the <strong id="EN-US_TOPIC_0000001659054514__b2769135116618">Monitoring Collection</strong> tab, and enable <strong id="EN-US_TOPIC_0000001659054514__b177694512619">Historical Query Monitoring</strong>. For details, see .</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_section10556204717206"><h4 class="sectiontitle">Checking Historical Queries</h4><p id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_p83935532205">In the <strong id="EN-US_TOPIC_0000001659054514__b275340612904">History</strong> area, you can browse all historical query information based on the specified time period, including:</p>
|
|
<ul id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_ul105535719231"><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li19799825141012">Query ID</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li255413732313">Username</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li831223751012">Application name</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li19489173012417">Database name</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li20554137112317">Resource pool</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li1555410732315">Submission time</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li1255416714236">Blocking time (ms)</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li195541779233">Execution time (ms)</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li1854815132116">CPU time (ms)</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li927691814118">CPU time skew (%)</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li1155415712319">Statement</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li476523991118">Connected CN</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li7380184812116">Client IP address</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li14554074233">Query status</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li67819961215">Completion time</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li4670933111215">Estimated execution time (ms)</li><li id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li5554187192319">Cancellation reason<p id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_p117651818101"><a name="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_li5554187192319"></a><a name="en-us_topic_0000001372679826_en-us_topic_0000001076579507_li5554187192319"></a><span><img id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_image149072053102514" src="figure/en-us_image_0000001711438112.png" title="Click to enlarge" class="imgResize"></span></p>
|
|
<div class="note" id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_note1277195218610"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_p827817528615">If you do not want to see historical system queries, you can toggle on <strong id="EN-US_TOPIC_0000001659054514__b7365723173517">Hide System Queries</strong>.</p>
|
|
<p id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_p22782522617"><span><img id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_image1174255101518" src="figure/en-us_image_0000001711597592.png"></span></p>
|
|
</div></div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_section5136123611463"><a name="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_section5136123611463"></a><a name="en-us_topic_0000001372679826_en-us_topic_0000001076579507_section5136123611463"></a><h4 class="sectiontitle">Viewing Historical Query Monitoring Details</h4><p id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_p1215633618466">You can click a historical query ID to view the query details, including the basic information of query statements, real-time and historical resource consumption, SQL description, and query plan.</p>
|
|
<p id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_p31566362469"><span><img id="EN-US_TOPIC_0000001659054514__en-us_topic_0000001372679826_en-us_topic_0000001076579507_image1815618364465" src="figure/en-us_image_0000001759517029.png" title="Click to enlarge" class="imgResize"></span></p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_01_00133.html">Monitoring</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |