doc-exports/docs/dws/tool/dws_16_0216.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

47 lines
6.4 KiB
HTML

<a name="EN-US_TOPIC_0000001772696084"></a><a name="EN-US_TOPIC_0000001772696084"></a>
<h1 class="topictitle1">Netezza SQL Migration</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_p454993071412">DSC supports the migration from Netezza to <span id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_text1958020141713">GaussDB(DWS)</span>, including the migration of schemas, DML, queries, system functions, and PL/SQL.</p>
<p id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_p16890121081518">Run the following commands to set the source database, input and output folder paths, log paths, application language, and conversion type:</p>
<p id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_p187765012417"><strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0237712541_b133221738201815">Linux</strong>:</p>
<pre class="screen" id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_screen63489947"><strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b369319221216">./runDSC.sh</strong><strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b24631974"> </strong>
<strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b1331601174">--source-db</strong> Netezza
[<strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b4311807719">--input-folder</strong> &lt;input-script-path&gt;]
[<strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b15311307712">--output-folder</strong> &lt;output-script-path&gt;]
[<strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b7312006713">--log-folder</strong> &lt;log-path&gt;]
[<strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b17311201874">--application-lang </strong>SQL]
[<strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b10311605716">--conversion-type</strong> &lt;conversion-type&gt;]</pre>
<p id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_p117771001043"><strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0237712541_b1610111412185">Windows</strong>:</p>
<pre class="screen" id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_screen1664272915183"><strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b8642929101811">runDSC.bat</strong>
<strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b56421029141818">--source-db</strong> Netezza
[<strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b31431521467">--input-folder</strong> &lt;input-script-path&gt;]
[<strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b10513115365819">--output-folder</strong> &lt;output-script-path&gt;]
[<strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b14513753165814">--log-folder</strong> &lt;log-path&gt;]
[<strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b1960615321167">--application-lang </strong>SQL]
[<strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b3438184019619">--conversion-type</strong> &lt;conversion-type&gt;]</pre>
<p id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_p1523717329515">For example:</p>
<p id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_p14888715419"><strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b1349819221540">Linux</strong>:</p>
<pre class="screen" id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_screen47562386">./runDSC.sh --source-db Netezza --input-folder /opt/DSC/DSC/input/mysql/ --output-folder /opt/DSC/DSC/output/ --application-lang SQL --conversion-type BULK --log-folder/opt/DSC/DSC/log/</pre>
<p id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_p78261431542"><strong id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_b229720256412">Windows</strong>:</p>
<pre class="screen" id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_screen1593715322417">runDSC.bat --source-db Netezza--target-db GaussDBA --input-folder D:\test\conversion\input --output-folder D:\test\conversion\output --log-folder D:\test\conversion\log --application-lang SQL --conversion-type Bulk</pre>
<p id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_p82261937141616">During the execution of DSC, the migration summary, including the progress and completion status, is displayed on the console. Execution information and errors will be recorded in <a href="dws_16_0033.html#EN-US_TOPIC_0000001819416117">SQL Migration Logs</a>.</p>
<pre class="screen" id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_screen5239232851">********************** 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
**************************************************************************
Log file path :....../DSC/DSC/log/dsc.log
DSC process end time : Mon Jan 20 17:24:49 IST 2020
DSC total process time : 0 seconds
********************* Schema Conversion Completed ************************</pre>
<p id="EN-US_TOPIC_0000001772696084__en-us_topic_0000001658024598_en-us_topic_0218440307_p18173194532018">For details about how to migrate Netezza SQL using DSC, see <a href="dws_16_0020.html#EN-US_TOPIC_0000001819416093">Executing DSC</a>.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0024.html">Database Schema Conversion</a></div>
</div>
</div>