doc-exports/docs/dws/dev/dws_06_0268.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

25 lines
3.1 KiB
HTML

<a name="EN-US_TOPIC_0000001188110584"></a><a name="EN-US_TOPIC_0000001188110584"></a>
<h1 class="topictitle1">ROLLBACK PREPARED</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001188110584__sac0f10a479f745949287fa71f93b6bcf"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001188110584__a114dcf5c546942b2a804d17989770738"><strong id="EN-US_TOPIC_0000001188110584__b8423527061660">ROLLBACK PREPARED</strong> cancels a transaction ready for two-phase committing.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001188110584__sf83e49c1ecf44c628c568d64fbb98597"><h4 class="sectiontitle">Precautions</h4><ul id="EN-US_TOPIC_0000001188110584__u31cc98ce5c844d6ebe9844272a664a52"><li id="EN-US_TOPIC_0000001188110584__lde68bfb4e57e46f39768ccb50abdfc9f">The function is only available in maintenance mode (when GUC parameter <strong id="EN-US_TOPIC_0000001188110584__b84235270695538">xc_maintenance_mode</strong> is <strong id="EN-US_TOPIC_0000001188110584__b842352706144554">on</strong>). Exercise caution when enabling the mode. It is used by maintenance engineers for troubleshooting. Common users should not use the mode.</li><li id="EN-US_TOPIC_0000001188110584__l5d0e73730d6a46098e3ae8df94d3a425">Only the user that initiates a transaction or the system administrator can roll back the transaction.</li><li id="EN-US_TOPIC_0000001188110584__l96eac16ce4954ac59f90aaa25945073e">The transaction function is maintained automatically by the database, and should be not visible to users.</li></ul>
</div>
<div class="section" id="EN-US_TOPIC_0000001188110584__sf1304db38a0744d181ed5a0aab95d9a3"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188110584__s4d68755a96794f5b8c91401e49b0e6a8"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">ROLLBACK</span><span class="w"> </span><span class="n">PREPARED</span><span class="w"> </span><span class="n">transaction_id</span><span class="w"> </span><span class="p">;</span>
</pre></div></td></tr></table></div>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001188110584__s25afc4dbe3754d11bb18c407f0caa8a4"><h4 class="sectiontitle">Parameter Description</h4><p id="EN-US_TOPIC_0000001188110584__a4a66141daf074e16a2b5ae655efe3321"><strong id="EN-US_TOPIC_0000001188110584__afd050b61c9654d7b82a776d180614ec5">transaction_id</strong></p>
<p id="EN-US_TOPIC_0000001188110584__a1dde81608cbb44cc8db2c439779a7484">Specifies the identifier of the transaction to be submitted. The identifier must be different from those for current prepared transactions.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001188110584__scb12aedd597d4310aecc1001685bb513"><h4 class="sectiontitle">Helpful Links</h4><p id="EN-US_TOPIC_0000001188110584__a2cbff602bb684d27b513b4535c79b22f"><a href="dws_06_0260.html">COMMIT PREPARED</a>, <a href="dws_06_0262.html">PREPARE TRANSACTION</a></p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0254.html">TCL Syntax</a></div>
</div>
</div>