forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
27 lines
3.8 KiB
HTML
27 lines
3.8 KiB
HTML
<a name="EN-US_TOPIC_0000001860198581"></a><a name="EN-US_TOPIC_0000001860198581"></a>
|
|
|
|
<h1 class="topictitle1">Overview</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001860198581__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_0000001860198581__en-us_topic_0000001382208078_p15922101417216">Database Schema Convertor (DSC) is a CLI tool running on Linux or Windows. It is dedicated to providing customers 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_0000001860198581__text1498212304319">GaussDB(DWS)</span> databases.</p>
|
|
<p id="EN-US_TOPIC_0000001860198581__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_0000001860198581__en-us_topic_0000001382208078_section1921542516308"><h4 class="sectiontitle">Migration Objects</h4><p id="EN-US_TOPIC_0000001860198581__en-us_topic_0000001382208078_p575193813120">DSC can migrate the following Teradata, MySQL, SQL-Server, Oracle, and Netezza databases:</p>
|
|
<ul id="EN-US_TOPIC_0000001860198581__en-us_topic_0000001382208078_ul438794031919"><li id="EN-US_TOPIC_0000001860198581__en-us_topic_0000001382208078_li2348557282">Common objects supported by Teradata, MySQL, and Oracle: SQL schemas and SQL queries.</li><li id="EN-US_TOPIC_0000001860198581__en-us_topic_0000001382208078_li1238884012193">Objects supported only by Teradata: Perl files containing <strong id="EN-US_TOPIC_0000001860198581__en-us_topic_0000001382208078_b2074917561454">BTEQ</strong> and <strong id="EN-US_TOPIC_0000001860198581__en-us_topic_0000001382208078_b1987495818458">SQL_LANG</strong> scripts</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001860198581__en-us_topic_0000001382208078_section13140155742920"><h4 class="sectiontitle">Migration Process</h4><p id="EN-US_TOPIC_0000001860198581__en-us_topic_0000001382208078_p116931227102">The process of using DSC to migrate SQL scripts is as follows:</p>
|
|
<ol id="EN-US_TOPIC_0000001860198581__en-us_topic_0000001382208078_ol84513587195"><li id="EN-US_TOPIC_0000001860198581__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_0000001860198581__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_0000001860198581__en-us_topic_0000001382208078_li174511580199">DSC automatically saves the migrated SQL scripts and logs to the designated paths for archiving.</li></ol>
|
|
<div class="fignone" id="EN-US_TOPIC_0000001860198581__fig451714366517"><span class="figcap"><b>Figure 1 </b>DSC migration process</span><br><span><img id="EN-US_TOPIC_0000001860198581__image1159818561918" src="figure/en-us_image_0000002205525981.png" width="492.1" height="289.3282" title="Click to enlarge" class="imgResize"></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>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
image_size('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |