doc-exports/docs/dws/tool/dws_16_0020.html
Lu, Huayi 27019c2991 DWS TOOL 830.201 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
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:35:25 +00:00

110 lines
24 KiB
HTML

<a name="EN-US_TOPIC_0000001819416093"></a><a name="EN-US_TOPIC_0000001819416093"></a>
<h1 class="topictitle1">Executing DSC</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_section1434510584915"><h4 class="sectiontitle">Important Notes</h4><ul id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_ul04631634911"><li id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_li204661684913">Before starting DSC, specify the output folder path. Separate the input folder path, output folder path, and log path with spaces. The input folder path cannot contain spaces which will cause an error when DSC is used for migrating data. For details, see <a href="dws_16_0210.html#EN-US_TOPIC_0000001819336325">Troubleshooting</a>.</li></ul>
</div>
<ul id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_ul13134568483"><li id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_li143316569488">If the output folder contains subfolders or files, DSC deletes the subfolders and files or overwrites them based on parameter settings in the <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b174107832331930">application.properties</strong> configuration file in the <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b210818895531930">config</strong> folder before the migration. Deleted or overwritten subfolders and files cannot be restored by DSC.</li><li id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_li73955616487">If migration tasks are performed concurrently on the same server (by the same or different DSCs), different migration tasks must use different output folder paths and log paths.</li><li id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_li102111218151217">You can specify a log path by configuring optional parameters. If the path is not specified, DSC automatically creates a log folder under <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b28518883131930">TOOL_HOME</strong>. For details, see <a href="dws_16_0032.html#EN-US_TOPIC_0000001772696088">Log Reference</a>.</li></ul>
<div class="section" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_section448154454918"><h4 class="sectiontitle">Migration Methods</h4><p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p659494919258">You can run the <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b107428940431930">runDSC.sh</strong> or <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b54692014131930">runDSC.bat</strong> command to perform a migration task on Windows and Linux. For details, see <a href="#EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_table296962642912">Table 1</a>.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_table296962642912"></a><a name="en-us_topic_0000001706224057_en-us_topic_0000001432327697_table296962642912"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_table296962642912" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Migration on Windows and Linux</caption><thead align="left"><tr id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_row19970122619290"><th align="left" class="cellrowborder" valign="top" width="38.18%" id="mcps1.3.3.3.2.3.1.1"><p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p3970526172911"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b17716125015162">Migration</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="61.82%" id="mcps1.3.3.3.2.3.1.2"><p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p29700266297"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b11504717178">CLI Parameter</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_row1397016260295"><td class="cellrowborder" valign="top" width="38.18%" headers="mcps1.3.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p11970152652918"><a href="dws_16_0026.html#EN-US_TOPIC_0000001772696076">Teradata SQL Migration</a></p>
<p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p7970192672911"></p>
<p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p1797072612919"></p>
</td>
<td class="cellrowborder" valign="top" width="61.82%" headers="mcps1.3.3.3.2.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_screen18970132610298"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b797013265292">&gt; ./runDSC.sh</strong>
<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b159701626152918"> --source-db</strong> <em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i179701264292">Teradat</em>a
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b697072632911">--application-lang </strong>SQL]
[ <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b09701326152916">--input-folder</strong> <em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i097092612299">&lt;input-script-path&gt;</em> ]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b1297042611292">--output-folder</strong> <em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i7971132610298">&lt;output-script-path&gt;</em> ]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b1897119269291">--log-folder</strong> <em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i12971132620297">&lt;log-path&gt;</em>]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b17971142615292">--target-db/-T</strong>][Optional]</pre>
<pre class="screen" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_screen11971326132914"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b0971626122912">&gt; runDSC.bat</strong>
<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b49711326102917">--source-db</strong> <em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i15971152612911">Teradat</em>a
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b297152611299">--application-lang </strong>SQL]
[ <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b797152632913">--input-folder</strong> <em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i1397142612297">&lt;input-script-path&gt;</em> ]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b99711126102912">--output-folder</strong> <em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i16971826102916">&lt;output-script-path&gt;</em> ]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b16971202616292">--log-folder</strong> <em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i4971626172915">&lt;log-path&gt;</em>]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b997162612916">--target-db/-T</strong>][Optional]</pre>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_row10408162616402"><td class="cellrowborder" valign="top" width="38.18%" headers="mcps1.3.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p126285216412"><a href="dws_16_0027.html#EN-US_TOPIC_0000001772536404">Teradata Perl Migration</a></p>
<p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p1314310542247"></p>
</td>
<td class="cellrowborder" valign="top" width="61.82%" headers="mcps1.3.3.3.2.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_screen9671352164111"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b109381652440">&gt; ./runDSC.sh</strong>
<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b1393811544413">--source-db</strong> Teradata
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b49610223372">--application-lang </strong>Perl]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b6495519204119">--input-folder</strong> &lt;input-script-path&gt; ]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b1246212237414">--output-folder</strong> &lt;output-script-path&gt; ]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b1393820564415">--log-folder</strong> &lt;log-path&gt;]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b149381455445">--target-db/-T</strong>][Optional]</pre>
<pre class="screen" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_screen1257231519444"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b151271042260">&gt; runDSC.bat</strong>
<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b412718414266"> --source-db</strong> <em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i9127134112614">Teradat</em>a
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b6598135710369">--application-lang </strong>Perl]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b18956205154111">--input-folder</strong> <em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i11275414264">&lt;input-script-path&gt;</em> ]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b12929175474118">--output-folder</strong> <em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i191271844262">&lt;output-script-path&gt;</em> ]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b111271446262">--log-folder</strong> <em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i712710442615">&lt;log-path&gt;</em>]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b1012719462611">--target-db/-T</strong>][Optional]</pre>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_row1597382662916"><td class="cellrowborder" valign="top" width="38.18%" headers="mcps1.3.3.3.2.3.1.1 "><p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p0973132613293"><a href="dws_16_0028.html#EN-US_TOPIC_0000001819416105">MySQL SQL Migration</a></p>
<p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p10973126132910"></p>
</td>
<td class="cellrowborder" valign="top" width="61.82%" headers="mcps1.3.3.3.2.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_screen497302692913"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b397472610293">&gt;</strong><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b197452617298"> ./</strong><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b99741826102914">runDSC.sh</strong>
<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b159744260293">--source-db</strong> MySql
<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b9974526112915">[--application-lang </strong>SQL]
<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b4974826122915">[--input-folder</strong> &lt;input-script-path&gt;]
<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b79741269296">[--output-folder</strong> &lt;output-script-path&gt;]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b99741426132917">--log-folder</strong> &lt;log-path&gt;]
[--conversion-type &lt;conversion-Type-BulkOrBlogic&gt;]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b16974162620296">--target-db/-T</strong>]</pre>
<pre class="screen" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_screen9974526112914"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b5974102617292">&gt;</strong><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b1297402662916"> </strong><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b4974172618299">runDSC.bat</strong>
<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b697462610291">--source-db</strong> MySql
<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b1097413268291">[--application-lang </strong>SQL]
<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b19974626192915">[--input-folder</strong> &lt;input-script-path&gt;]
<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b2974152662911">[--output-folder</strong> &lt;output-script-path&gt;]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b8974192614297">--log-folder</strong> &lt;log-path&gt;]
[--conversion-type &lt;conversion-Type-BulkOrBlogic&gt;]
[<strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b1597511265297">--target-db/-T</strong>]</pre>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="note" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_note1510439132713"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_ul101193918271"><li id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_li9732105184511">The CLI parameters are described as follows:<ul id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_ul07341598456"><li id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_li45625331151423"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b81138158131930">source-db</strong> specifies the source database. The value can be <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b106360376331930">Teradata</strong>, which is case-insensitive.</li><li id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_li51351879151547"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b4839451331930">conversion-type</strong> specifies the migration type. This parameter is optional. DSC supports the following migration types:<p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p1766184915350"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b118797778431930">Bulk</strong>: migrates DML and DDL scripts.</p>
<p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p897934915352"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b109199710131930">BLogic</strong>: migrates service logic, such as stored procedures and functions.</p>
</li><li id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_li127444418011"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b84059238221">target-db</strong> specifies the target database. The parameter value is <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b13611930102220">GaussDB A</strong>.</li></ul>
</li><li id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_li151211916467">Command output description:<p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p21141810104620"><a name="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_li151211916467"></a><a name="en-us_topic_0000001706224057_en-us_topic_0000001432327697_li151211916467"></a><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b15635269931930">Migration process start time</strong> indicates the migration start time and <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b140120636031930">Migration process end time</strong> indicates the migration end time. <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b58961176931930">Total process time</strong> indicates the total migration duration, in milliseconds. In addition, the total number of migrated files, total number of processors, number of used processors, log file path, and error log file path are also displayed on the console.</p>
</li></ul>
</div></div>
<div class="section" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_section172239553438"><h4 class="sectiontitle">Examples</h4><ul id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_ul152671459143313"><li id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_li184185420716">Example 1: Run the following command to migrate the SQL file of the Oracle database to the SQL script of GaussDB on Linux:<pre class="screen" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_screen0410175010528"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b25353841">./runDSC.sh --source-db </strong><em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i26857985">Teradata </em><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b40395279">--input-folder</strong> D:\test\conversion\input <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b28013196">--output-folder </strong><em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i50792177">D:\test\conversion\output </em><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b54476416">--log-folder </strong><em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i20525696">D:\test\conversion\log </em><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b50513539">--conversion-type </strong><em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i15313397173">ddl</em> <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b18396011123513">--targetdb</strong> gaussdbA</pre>
</li><li id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_li6273125817313">Example 2: Run the following command to migrate the SQL file of the Oracle database to the SQL script of GaussDB on Windows:<pre class="screen" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_screen19291835131612"><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b152910355164">runDSC.bat --source-db </strong><em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i329153515166">Teradata </em><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b152993514161">--input-folder</strong> D:\test\conversion\input <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b72919354164">--output-folder </strong><em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i192912351161">D:\test\conversion\output </em><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b1529735191613">--log-folder </strong><em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i16301535131617">D:\test\conversion\log </em><strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b530203531615">--conversion-type </strong><em id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_i137961939151712">ddl</em> <strong id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_b7301935121617">--targetdb</strong> gaussdbA</pre>
</li></ul>
<p id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_p3969124113819">Migration details are displayed on the console (including the progress and completion status):</p>
<pre class="screen" id="EN-US_TOPIC_0000001819416093__en-us_topic_0000001706224057_en-us_topic_0000001432327697_screen8318131816519">********************** Schema Conversion Started *************************
DSC process start time : Mon Jan 20 17:24:49 IST 2020
Statement count progress 100% completed [FILE(1/1)]
Schema Conversion Progress 100% completed
**************************************************************************
Total number of files in input folder : 1
Total number of valid files in input folder : 1
**************************************************************************
Log file path :....../DSC/DSC/log/dsc.log
Error Log file :
DSC process end time : Mon Jan 20 17:24:49 IST 2020
DSC total process time : 0 seconds
********************* Schema Conversion Completed ************************</pre>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0017.html">Migration Process</a></div>
</div>
</div>