Files
doc-exports/docs/dataartsstudio/umn/dataartsstudio_01_0589.html
chenxiaoxiong f9e2808b7c DataArts UMN 20250810 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
Co-committed-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
2025-09-02 10:44:13 +00:00

23 lines
3.7 KiB
HTML

<a name="dataartsstudio_01_0589"></a><a name="dataartsstudio_01_0589"></a>
<h1 class="topictitle1">Migration in Transaction Mode</h1>
<div id="body32001227"><p id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_p13487171162516">When a CDM job fails to be executed, CDM rolls back the data to the state before the job starts and automatically deletes data from the destination table.</p>
<ul id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_ul1771783962513"><li id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_li450654462516">Parameter position: When creating a table/file migration job, if the migration source is a relational database, set <span class="parmname" id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_parmname6455102615282"><b>Import to Staging Table</b></span> in the advanced attributes of <strong id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_b2097310205915">Destination Job Configuration</strong> to determine whether to enable the transaction mode.</li><li id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_li671753913258">Parameter principle: If you set this parameter to <strong id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_b661225985816">Yes</strong>, CDM automatically creates a temporary table and imports the data to the temporary table. After the data is imported successfully, CDM migrates the data to the destination table in transaction mode of the database. If the import fails, the destination table is rolled back to the state before the job starts.<div class="fignone" id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_fig186507551913"><span class="figcap"><b>Figure 1 </b>Migration in transaction mode</span><br><span><img id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_image1635002723413" src="en-us_image_0000002234076628.png" title="Click to enlarge" class="imgResize"></span></div>
<p id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_p1392316456351"></p>
</li></ul>
<div class="note" id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_note7380491582"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_p938012916819">If you select <strong id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_b56871248124819">Clear part of data</strong> or <strong id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_b87505104914">Clear all data</strong> for <strong id="dataartsstudio_01_0589__en-us_topic_0000001151779456_en-us_topic_0000001151619240_en-us_topic_0108275316_b394614371412">Clear Data Before Import</strong>, CDM does not roll back the deleted data in transaction mode.</p>
</div></div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataartsstudio_01_0110.html">Key Operation Guide</a></div>
</div>
</div>
<script language="JavaScript">
<!--
initImageViewer('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>