doc-exports/docs/dws/dev/dws_01_0127.html
Lu, Huayi ef0ada5a59 DWS DEV 20240716 version
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-11-02 09:07:47 +00:00

27 lines
5.4 KiB
HTML

<a name="EN-US_TOPIC_0000001764817397"></a><a name="EN-US_TOPIC_0000001764817397"></a>
<h1 class="topictitle1">Using DSC to Migrate SQL Scripts</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_p316010150300">The DSC is a CLI tool running on the Linux or Windows OS. 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 GaussDB(DWS) databases. You do not need to connect the DSC to a database. It can migrate data in offline mode without service interruption. In GaussDB(DWS), you can run the migrated SQL scripts to restore the database, thereby easily migrating offline databases to the cloud.</p>
<p id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_p8173195612411">The DSC can migrate SQL scripts of Teradata, Oracle, Netezza, MySQL, and DB2 databases.</p>
<div class="section" id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_section1728325511316"><h4 class="sectiontitle">Downloading the DSC SQL Migration Tool</h4><ol id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_ol868111584130"><li id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_li14681658161317"><span>Log in to the GaussDB(DWS) console.</span></li><li id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_li1068220583130"><span>In the navigation tree on the left, choose <strong id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_b17291513171512">Management</strong> &gt; <strong id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_b572931391515">Client Connections</strong>.</span></li><li id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_li1682145812134"><span>In the <span class="wintitle" id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001081821879_wintitle17495719886"><b>Download Client and Driver</b></span> area, click <span class="uicontrol" id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001081821879_uicontrol1949551917818"><b>here</b></span> to download the DSC migration tool.</span><p><p id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_p668255812132">If you have clusters of different versions, the system displays a dialog box, prompting you to select the cluster version and download the client corresponding to the cluster version. In the cluster list on the <span class="wintitle" id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001081821879_wintitle38209217615"><b>Cluster Management</b></span> page, click the name of the specified cluster and click the <span class="parmname" id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001081821879_parmname1082042564"><b>Basic Information</b></span> tab to view the cluster version.</p>
<div class="fignone" id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_fig1990923102215"><span class="figcap"><b>Figure 1 </b>Downloading the tool</span><br><span><img id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_image1146921172210" src="figure/en-us_image_0000001188642272.png" height="142.62055500000002" width="458.85" title="Click to enlarge" class="imgResize"></span></div>
<p id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_p15720203711118"></p>
</p></li><li id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_li2682758191314"><span>After downloading the DSC tool to the local PC, use WinSCP to upload it to a Linux host.</span><p><p id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_p156822585132">The user who uploads the tool must have the full control permission on the target directory of the Linux host.</p>
</p></li></ol>
</div>
<div class="section" id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_section72376514154"><h4 class="sectiontitle">Operation Guide for the DSC SQL Syntax Migration Tool</h4><p id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_en-us_topic_0000001082831067_en-us_topic_0000001081821879_p723765121510">For details, see "DSC - SQL Syntax Migration Tool" in the <em id="EN-US_TOPIC_0000001764817397__en-us_topic_0000001233761831_i1968013441492">Data Warehouse Service Tool Guide</em>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0986.html">Full Database Migration</a></div>
</div>
</div>
<script language="JavaScript">
<!--
image_size('.imgResize');
var msg_imageMax = "view original image";
var msg_imageClose = "close";
//--></script>