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

35 lines
3.8 KiB
HTML

<a name="EN-US_TOPIC_0000001233430159"></a><a name="EN-US_TOPIC_0000001233430159"></a>
<h1 class="topictitle1">CREATE BARRIER</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001233430159__s8eb05449c7b24b4395ac0444e5deb71e"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0000001233430159__a46702917bfdc495c8a7b7d5f866e040c">Creates a barrier for cluster nodes. The barrier can be used for data restoration.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233430159__s4fb87665cdc04c66a752cac663cb1530"><h4 class="sectiontitle">Precautions</h4><p id="EN-US_TOPIC_0000001233430159__en-us_topic_0059778813_p269033239598">Before creating a barrier, ensure that <strong id="EN-US_TOPIC_0000001233430159__b842352706184835">gtm_backup_barrier</strong> and <strong id="EN-US_TOPIC_0000001233430159__b424188141414">enable_cbm_tracking</strong> are set to <strong id="EN-US_TOPIC_0000001233430159__b842352706184842">on</strong> for CNs and DNs in the cluster.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233430159__se57e6e732e1d4eb4aa30383df081e94d"><h4 class="sectiontitle">Syntax</h4><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233430159__sbc3123bd8ba846978ef2cd14d69be94a"><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">CREATE</span><span class="w"> </span><span class="n">BARRIER</span><span class="w"> </span><span class="p">[</span><span class="w"> </span><span class="n">barrier_name</span><span class="w"> </span><span class="p">]</span><span class="w"> </span><span class="p">;</span>
</pre></div></td></tr></table></div>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001233430159__sfe4a614fa0b34949b6a6b17b92ca431a"><h4 class="sectiontitle">Parameter Description</h4><p id="EN-US_TOPIC_0000001233430159__a941e0a7cd6494eaf97b6d95d32b24311"><strong id="EN-US_TOPIC_0000001233430159__a7d89628cbd42442c90b7a2a6b4c62c49">barrier_name</strong></p>
<p id="EN-US_TOPIC_0000001233430159__a740b53c22d344da6a0c3d6f449e1499e">(Optional) Indicates the name of a barrier.</p>
<p id="EN-US_TOPIC_0000001233430159__ae37551d0a9eb46bc9a9760346c429f50">Value range: a string. It must comply with the naming convention.</p>
</div>
<div class="section" id="EN-US_TOPIC_0000001233430159__sddd2d8c25a2e4f729a6fbd4e4be90b09"><h4 class="sectiontitle">Examples</h4><p id="EN-US_TOPIC_0000001233430159__p20540739154517">Create a barrier without specifying its name.</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233430159__screen6735430124611"><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">CREATE</span><span class="w"> </span><span class="n">BARRIER</span><span class="p">;</span>
</pre></div></td></tr></table></div>
</div>
<p id="EN-US_TOPIC_0000001233430159__p18799115521310">Create a barrier named <strong id="EN-US_TOPIC_0000001233430159__b102761984133424">barrier1</strong>.</p>
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233430159__s164d050072134d9985cdea8e5d67b2f5"><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">CREATE</span><span class="w"> </span><span class="n">BARRIER</span><span class="w"> </span><span class="s1">'barrier1'</span><span class="p">;</span>
</pre></div></td></tr></table></div>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_06_0118.html">DDL Syntax</a></div>
</div>
</div>