forked from docs/doc-exports
Reviewed-by: Wagner, Fabian <fabian.wagner@t-systems.com> Co-authored-by: Ru, Li Yi <liyiru7@huawei.com> Co-committed-by: Ru, Li Yi <liyiru7@huawei.com>
22 lines
4.1 KiB
HTML
22 lines
4.1 KiB
HTML
<a name="ddm_08_0022"></a><a name="ddm_08_0022"></a>
|
|
|
|
<h1 class="topictitle1">Checking DDL Consistency of Physical Tables in One Logical Table</h1>
|
|
<div id="body1599642877312"><p id="ddm_08_0022__p1637718320364"><strong id="ddm_08_0022__b1912013479136">Purpose:</strong> To check DDL consistency of physical tables in a specific logical table</p>
|
|
<p id="ddm_08_0022__p14863442113015"><strong id="ddm_08_0022__b1869740538">Command Format:</strong></p>
|
|
<pre class="codeblock" id="ddm_08_0022__codeblock178147173017"><em id="ddm_08_0022__i4965194518416">check table </em><em id="ddm_08_0022__i191194710302"><table_name></em></pre>
|
|
<p id="ddm_08_0022__p1274668103013"><strong id="ddm_08_0022__b0677184317312">Command Output:</strong></p>
|
|
<p id="ddm_08_0022__p18570103913335">If the returned result set is empty, DDL results of physical tables in this logical table are consistent.</p>
|
|
<p id="ddm_08_0022__p48521825103620"><span><img id="ddm_08_0022__image6463033183618" src="en-us_image_0000001733266429.png"></span></p>
|
|
<p id="ddm_08_0022__p170120263413">If the returned result set is not empty, there are physical tables with inconsistent DDL results.</p>
|
|
<p id="ddm_08_0022__p62180374333"><span><img id="ddm_08_0022__image189685336394" src="en-us_image_0000001685147494.png"></span></p>
|
|
<p id="ddm_08_0022__p467723504215"><strong id="ddm_08_0022__b14102183817186">Output Details:</strong></p>
|
|
<p id="ddm_08_0022__p56397974319">Each row displays details of a physical table with inconsistent DDL results.</p>
|
|
<ul id="ddm_08_0022__ul527415364219"><li id="ddm_08_0022__li3274155354211"><strong id="ddm_08_0022__b123879122284">DATABASE_NAME</strong>: indicates the database shard containing the physical table.</li><li id="ddm_08_0022__li2816519104316"><strong id="ddm_08_0022__b694284920281">TABLE_NAME</strong>: indicates the name of the physical table.</li><li id="ddm_08_0022__li1553015384436"><strong id="ddm_08_0022__b1142310162917">TABLE_TYPE</strong>: indicates the type of the logical table that the physical table belongs to.</li><li id="ddm_08_0022__li1496125794416"><strong id="ddm_08_0022__b898566123218">EXTRA_COLUMNS</strong>: indicates extra columns in the physical table.</li><li id="ddm_08_0022__li45740236450"><strong id="ddm_08_0022__b18101133233219">MISSING_COLUMNS</strong>: indicates missing columns in the physical table.</li><li id="ddm_08_0022__li690701054517"><strong id="ddm_08_0022__b1591053318338">DIFFERENT_COLUMNS</strong>: indicates name and type columns whose attributes are inconsistent in the physical table.</li><li id="ddm_08_0022__li2061954714455"><strong id="ddm_08_0022__b1157253372">KEY_DIFF</strong>: indicates inconsistent indexes in the physical table.</li><li id="ddm_08_0022__li1293523015545"><strong id="ddm_08_0022__b3554185694015">ENGINE_DIFF</strong>: indicates inconsistent engines in the physical table.</li><li id="ddm_08_0022__li1864915342545"><strong id="ddm_08_0022__b17811171964118">CHARSET_DIFF</strong>: indicates inconsistent character sets in the physical table.</li><li id="ddm_08_0022__li1571617389541"><strong id="ddm_08_0022__b47818518423">COLLATE_DIFF</strong>: indicates inconsistent collations in the physical table.</li><li id="ddm_08_0022__li136025476547"><strong id="ddm_08_0022__b798614418432">EXTRA_PARTITIONS</strong>: indicates extra partitions in the physical table. This field is only available to partitioned tables.</li><li id="ddm_08_0022__li834616494541"><strong id="ddm_08_0022__b0852144674614">MISSING_PARTITIONS</strong>: indicates missing partitions in the physical table. This field is only available to partitioned tables.</li><li id="ddm_08_0022__li108978526542"><strong id="ddm_08_0022__b143251030475">DIFFERENT_PARTITIONS</strong>: indicates partitions with inconsistent attributes in the physical table. This field is only available to partitioned tables.</li><li id="ddm_08_0022__li137019543545"><strong id="ddm_08_0022__b20530161024720">EXTRA_INFO</strong>: indicates other information such as missing physical tables.</li></ul>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="ddm_08_0014.html">CHECK TABLE</a></div>
|
|
</div>
|
|
</div>
|
|
|