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

22 lines
4.6 KiB
HTML

<a name="EN-US_TOPIC_0000001772536392"></a><a name="EN-US_TOPIC_0000001772536392"></a>
<h1 class="topictitle1">Preparations</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_p1311212396011">Before the migration, create an input folder and an output folder, and copy all the SQL scripts to be migrated to the input folder. The following procedure describes how to prepare for the migration in Linux.</p>
<ol id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_ol068618523149"><li id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_li2068675261410"><span>Run the following commands to create an input folder and an output folder. You can create the folder anywhere based on your preferences. You can also use the default folders for input, output, provided as part of package.</span><p><pre class="screen" id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_screen1592612413303">mkdir input
mkdir output</pre>
<div class="danger" id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_note590433631316"><span class="dangertitle"><img src="public_sys-resources/danger_3.0-en-us.png"> </span><div class="dangerbody"><p id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_p14879818165416">The tool reads the input folder in batches randomly. After the migration starts, it is recommended the users should not perform any modification on the input folder and files. Abnormal operations will affect the output result of the tool.</p>
</div></div>
</p></li><li id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_li11658755121418"><span>Copy all SQL scripts to be migrated to the input folder.</span><p><div class="note" id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_note16876153610332"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_ul1858354614339"><li id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_li65836462331">If the encoding format of source files is not UTF-8, perform the following steps:<ol type="a" id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_ol2058314614336"><li id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_li758315464331">Open the <strong id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_b9297235073209">application.properties</strong> file in the <strong id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_b9003840723209">config</strong> folder.</li><li id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_li12583446123319">Change the value of <strong id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_b5674189493209">encodingFormat</strong> in the <strong id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_b12779908083209">application.properties</strong> file to the required encoding format.</li></ol>
<p id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_p1758318469335">DSC supports the UTF-8, ASCII, and GB2312 encoding formats. The values of <strong id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_b12297850503209">encodingFormat</strong> are case-insensitive.</p>
</li><li id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_li1858312463332">To obtain the encoding format of a source file in Linux, run the following command on the server where the source file is located:<pre class="screen" id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_screen2583246153313"><strong id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_b135837465337">file -bi</strong> <em id="EN-US_TOPIC_0000001772536392__en-us_topic_0000001658024966_en-us_topic_0000001382527654_i155831446153315">&lt;Input file name&gt;</em></pre>
</li></ul>
</div></div>
</p></li></ol>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0017.html">Migration Process</a></div>
</div>
</div>