doc-exports/docs/dws/dev/dws_04_0941.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:24:04 +00:00

26 lines
5.2 KiB
HTML

<a name="EN-US_TOPIC_0000001233563201"></a><a name="EN-US_TOPIC_0000001233563201"></a>
<h1 class="topictitle1">Transaction Monitoring</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001233563201__ae79c20b3d1b54cfb9ad15147316e5711">The automatic rollback transaction can be monitored and its statement problems can be located by setting the transaction timeout warning. In addition, the statements with long execution time can also be monitored.</p>
<div class="section" id="EN-US_TOPIC_0000001233563201__sa8b23d679b154038834a15eefb3496f9"><h4 class="sectiontitle">transaction_sync_naptime</h4><p id="EN-US_TOPIC_0000001233563201__afdf9f08da02f40cfb47a58e1602ae37b"><strong id="EN-US_TOPIC_0000001233563201__en-us_topic_0085032208_en-us_topic_0059778792_ac3983cf0791d4464b27dfcd8145fb686">Parameter description</strong>: For data consistency, when the local transaction's status differs from that in the snapshot of the GTM, other transactions will be blocked. You need to wait for a few minutes until the transaction status of the local host is consistent with that of the GTM. The <strong id="EN-US_TOPIC_0000001233563201__b84235270615525">gs_clean</strong> tool is automatically triggered for cleansing when the waiting period on the CN exceeds that of <strong id="EN-US_TOPIC_0000001233563201__b842352706151518">transaction_sync_naptime</strong>. The tool will shorten the blocking time after it completes the cleansing.</p>
<p id="EN-US_TOPIC_0000001233563201__p12899199443"><strong id="EN-US_TOPIC_0000001233563201__b1989412567309">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563201__a0a1797caab76434387ff97d504be4696"><strong id="EN-US_TOPIC_0000001233563201__b39086212263">Value range</strong>: an integer. The minimum value is <strong id="EN-US_TOPIC_0000001233563201__b10509153022717">0</strong>. The unit is second.</p>
<p id="EN-US_TOPIC_0000001233563201__a648ba6149b924ec09838efcda3c394c1"><strong id="EN-US_TOPIC_0000001233563201__en-us_topic_0085032208_b24392200">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563201__en-us_topic_0085032208_b84235270617237">5s</strong></p>
<div class="note" id="EN-US_TOPIC_0000001233563201__n79769e8c392843e2af7c7c420f9bd8ab"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001233563201__a7386f02f7a2e429dbcaa64299718af33">If the value of this parameter is set to <strong id="EN-US_TOPIC_0000001233563201__b145786460271">0</strong>, gs_clean will not be automatically invoked for the cleansing before the blocking arrives the duration. Instead, the gs_clean tool is invoked by gs_clean_timeout. The default value is 5 minutes.</p>
</div></div>
</div>
<div class="section" id="EN-US_TOPIC_0000001233563201__s0d780bfc5a5646678297447cd799bd22"><h4 class="sectiontitle">transaction_sync_timeout</h4><p id="EN-US_TOPIC_0000001233563201__a2b3d86a26c294f5788264a3c8ec548bb"><strong id="EN-US_TOPIC_0000001233563201__en-us_topic_0059778792_ac35fbd2b626049af9750d8004df9712d">Parameter description</strong>: For data consistency, when the local transaction's status differs from that in the snapshot of the GTM, other transactions will be blocked. You need to wait for a few minutes until the transaction status of the local host is consistent with that of the GTM. An exception is reported when the waiting duration on the CN exceeds the value of <strong id="EN-US_TOPIC_0000001233563201__b842352706154223">transaction_sync_timeout</strong>. Roll back the transaction to avoid system blocking due to long time of process response failures (for example, sync lock).</p>
<p id="EN-US_TOPIC_0000001233563201__p843023714811"><strong id="EN-US_TOPIC_0000001233563201__b1198513571300">Type</strong>: USERSET</p>
<p id="EN-US_TOPIC_0000001233563201__a6615356aa106475d9324d9e5cee573ee"><strong id="EN-US_TOPIC_0000001233563201__b20112152092815">Value range</strong>: an integer. The minimum value is <strong id="EN-US_TOPIC_0000001233563201__b101181520162815">0</strong>. The unit is second.</p>
<p id="EN-US_TOPIC_0000001233563201__a981eed3fbff04ea4acce815231395754"><strong id="EN-US_TOPIC_0000001233563201__b13364462">Default value</strong>: <strong id="EN-US_TOPIC_0000001233563201__b84235270614544">10min</strong></p>
</div>
<div class="note" id="EN-US_TOPIC_0000001233563201__nd3e717b325084aa2a1cd84d916cff49d"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001233563201__ul15287193355218"><li id="EN-US_TOPIC_0000001233563201__li3287163325213">If the value is <strong id="EN-US_TOPIC_0000001233563201__b842352706155138">0</strong>, no error is reported when the blocking times out or the transaction is rolled back.</li><li id="EN-US_TOPIC_0000001233563201__li112871333135214">The value of this parameter must be greater than <strong id="EN-US_TOPIC_0000001233563201__b592835074412">gs_clean_timeout</strong>. Otherwise, unnecessary transaction rollback will probably occur due to a block timeout caused by residual transactions that have not been deleted by <strong id="EN-US_TOPIC_0000001233563201__b6928145010446">gs_clean</strong> on a DN.</li></ul>
</div></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0883.html">GUC Parameters</a></div>
</div>
</div>