forked from docs/doc-exports
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>
21 lines
4.1 KiB
HTML
21 lines
4.1 KiB
HTML
<a name="EN-US_TOPIC_0000001819336049"></a><a name="EN-US_TOPIC_0000001819336049"></a>
|
|
|
|
<h1 class="topictitle1">Overview</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_p8060118">After switching to GaussDB(DWS) databases, you may need to migrate user data and application SQL scripts to new databases. In particular,the migration of application SQL scripts is complex, risky, and time-consuming.</p>
|
|
<p id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_p15922101417216">DSC is a CLI tool running on Linux or Windows. It is dedicated to providing users with simple, fast, and reliable application SQL script migration services. It parses the SQL scripts of source database applications using the built-in syntax migration logic, and converts them to SQL scripts applicable to <span id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_text1958020141713">GaussDB(DWS)</span> databases.</p>
|
|
<p id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_p5236572220">DSC does not require a connection to databases, and performs migration offline. The tool also displays the status of a migration process and logs the errors that occur during the process, helping quickly locate faults.</p>
|
|
<div class="section" id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_section1921542516308"><h4 class="sectiontitle">Migration Objects</h4><p id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_p575193813120">DSC can migrate the following Teradata and MySQL database objects:</p>
|
|
<ul id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_ul438794031919"><li id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_li2348557282">Common objects supported by Teradata and MySQL: SQL schemas and SQL queries</li><li id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_li1238884012193">Objects supported only by Teradata: Perl files containing <strong id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_b2074917561454">BTEQ</strong> and <strong id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_b1987495818458">SQL_LANG</strong> scripts</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_section13140155742920"><h4 class="sectiontitle">Migration Process</h4><p id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_p116931227102">The process of using DSC to migrate SQL scripts is as follows:</p>
|
|
<ol id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_ol84513587195"><li id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_li156959216103">Export the SQL scripts from a Teradata or MySQL database to the Linux or Windows server installed with DSC.</li><li id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_li071615191214">Execute DSC to migrate the syntax. In the command, specify the paths of the input file, output file, and logs.</li><li id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0000001382208078_li174511580199">DSC automatically archives the migrated SQL scripts and the logs into the specified paths.</li></ol>
|
|
<div class="fignone" id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_fig451714366517"><span class="figcap"><b>Figure 1 </b>DSC migration process</span><br><span><img id="EN-US_TOPIC_0000001819336049__en-us_topic_0000001658024918_en-us_topic_0218440441_image19694713184319" src="figure/en-us_image_0000001657865966.png"></span></div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0006.html">Introduction to DSC</a></div>
|
|
</div>
|
|
</div>
|
|
|