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

207 lines
28 KiB
HTML

<a name="EN-US_TOPIC_0000001819336077"></a><a name="EN-US_TOPIC_0000001819336077"></a>
<h1 class="topictitle1">Migration Parameters</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_en-us_topic_0213040018_section63101859"><h4 class="sectiontitle">Parameter Description</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_table1763673085014" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_row1363653015502"><th align="left" class="cellrowborder" valign="top" width="11%" id="mcps1.3.1.2.2.8.1.1"><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p163683065019"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b10636163017505">Long</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10%" id="mcps1.3.1.2.2.8.1.2"><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p3637153055015"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b1463773005016">Short</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11%" id="mcps1.3.1.2.2.8.1.3"><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p0637203020501"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b1637193011504">Data Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.1.2.2.8.1.4"><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p156373304500"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b1563763015019">Description</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.790000000000001%" id="mcps1.3.1.2.2.8.1.5"><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p563783025016"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b116371730125015">Value Range</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.73%" id="mcps1.3.1.2.2.8.1.6"><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p9637193095019"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b86378303505">Default Value</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="24.48%" id="mcps1.3.1.2.2.8.1.7"><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p063717303503"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b18637130105010">Example</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_row563733035020"><td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.1 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p1663793015016">--source-db</p>
</td>
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.1.2.2.8.1.2 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p663723085010">-S</p>
</td>
<td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.3 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p363723025016">String</p>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.2.2.8.1.4 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p56371530205014">Source database</p>
</td>
<td class="cellrowborder" valign="top" width="14.790000000000001%" headers="mcps1.3.1.2.2.8.1.5 "><ul id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_ul2638133085011"><li id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_li5638103017501">Teradata</li><li id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_li1263817304506">MySQL</li></ul>
</td>
<td class="cellrowborder" valign="top" width="10.73%" headers="mcps1.3.1.2.2.8.1.6 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p263816307502">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="24.48%" headers="mcps1.3.1.2.2.8.1.7 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p86384304506">--source-db Teradata(or)</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p1163893013505">-S Teradata</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_row1263863095018"><td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.1 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p363853015509">--input-folder</p>
</td>
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.1.2.2.8.1.2 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p963811301504">-I</p>
</td>
<td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.3 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p8639173012504">String</p>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.2.2.8.1.4 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p3639830135015">Input folder containing Teradata or Oracle scripts</p>
</td>
<td class="cellrowborder" valign="top" width="14.790000000000001%" headers="mcps1.3.1.2.2.8.1.5 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p063911301507">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="10.73%" headers="mcps1.3.1.2.2.8.1.6 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p1639113014507">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="24.48%" headers="mcps1.3.1.2.2.8.1.7 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p206391130165019">--input-folder <em id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_i26395306506">/home/testmigration/Documentation/input</em></p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p176391030155015">(or)</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p1263918304506">-I <em id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_i156390302502">/home/testmigration/Documentation/input</em></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_row163914302503"><td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.1 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p063914303504">--output-folder</p>
</td>
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.1.2.2.8.1.2 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p96392301500">-O</p>
</td>
<td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.3 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p963918306505">String</p>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.2.2.8.1.4 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p18639630135010">Output folder where the migrated scripts are saved</p>
</td>
<td class="cellrowborder" valign="top" width="14.790000000000001%" headers="mcps1.3.1.2.2.8.1.5 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p1463915304505">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="10.73%" headers="mcps1.3.1.2.2.8.1.6 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p1463983010503">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="24.48%" headers="mcps1.3.1.2.2.8.1.7 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p664053010506">--output-folder <em id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_i1964013075019">/home/testmigration/Documentation/output</em>(or)-O <em id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_i20640630165019">/home/testmigration/Documentation/output</em></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_row1640193015013"><td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.1 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p264018301507">--application-lang</p>
</td>
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.1.2.2.8.1.2 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p1264053085020">-A</p>
</td>
<td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.3 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p8640123005013">String</p>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.2.2.8.1.4 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p10640113017501">Application language parser used for migration</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p206403304505"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b196405306500">SQL</strong>: Migrate SQL schemas or scripts in SQL files.</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p164053045013"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b149832587031842">Perl</strong>: Migrate <strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b179828151131842">BTEQ</strong> or <strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b16105675131842">SQL_LANG</strong> scripts in Perl files.</p>
</td>
<td class="cellrowborder" valign="top" width="14.790000000000001%" headers="mcps1.3.1.2.2.8.1.5 "><ul id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_ul364014303508"><li id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_li3640123020509">SQL</li><li id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_li064020301505">Perl</li></ul>
</td>
<td class="cellrowborder" valign="top" width="10.73%" headers="mcps1.3.1.2.2.8.1.6 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p17640103018503">SQL</p>
</td>
<td class="cellrowborder" valign="top" width="24.48%" headers="mcps1.3.1.2.2.8.1.7 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p1264103065011">--application-lang Perl</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p66417307505">or</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p064118309507">-A <em id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_i1864119303501">Perl</em></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_row2641630115011"><td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.1 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p18641930165010">--conversion-type</p>
</td>
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.1.2.2.8.1.2 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p46419303509">-M</p>
</td>
<td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.3 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p76418303506">String</p>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.2.2.8.1.4 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p3641330105019">Migration type. Set this parameter based on input scripts.</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p2641113016503"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b264123016506">Bulk</strong>: Migrate DML and DDL scripts.</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p76411430185010"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b464118301504">BLogic</strong>: Migrate service logic, such as procedures and functions.</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p146411630155015"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b179201697231842">BLogic</strong> is used only for Oracle PL/SQL.</p>
</td>
<td class="cellrowborder" valign="top" width="14.790000000000001%" headers="mcps1.3.1.2.2.8.1.5 "><ul id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_ul1264273015501"><li id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_li064233015501">Bulk</li><li id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_li9642730145014">BLogic</li></ul>
</td>
<td class="cellrowborder" valign="top" width="10.73%" headers="mcps1.3.1.2.2.8.1.6 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p1564253019507">Bulk</p>
</td>
<td class="cellrowborder" valign="top" width="24.48%" headers="mcps1.3.1.2.2.8.1.7 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p15642193019506">--conversion-type <em id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_i18642730115018">ddl</em></p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p9642230115013">or</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p46421830155010">-M <em id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_i126421630115015">ddl</em></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_row0642143020502"><td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.1 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p0642103045019">--log-folder</p>
</td>
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.1.2.2.8.1.2 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p12642113065013">-L</p>
</td>
<td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.3 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p1664220303504">String</p>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.2.2.8.1.4 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p1664253017505">Log file Path</p>
</td>
<td class="cellrowborder" valign="top" width="14.790000000000001%" headers="mcps1.3.1.2.2.8.1.5 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p5642123025015">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="10.73%" headers="mcps1.3.1.2.2.8.1.6 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p11643173075017">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="24.48%" headers="mcps1.3.1.2.2.8.1.7 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p186431330105010">--log-folder <em id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_i16431130125012">/home/testmigration/Documentation</em>(or)-L <em id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_i1564316303507">/home/testmigration/Documentation</em></p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_row1764323017500"><td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.1 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p76431130195010">--version-number</p>
</td>
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.1.2.2.8.1.2 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p664323085012">-VN</p>
</td>
<td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.3 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p1164303035010">String</p>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.2.2.8.1.4 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p4643153005011">Oracle specified parameter</p>
</td>
<td class="cellrowborder" valign="top" width="14.790000000000001%" headers="mcps1.3.1.2.2.8.1.5 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p15643183035016">Oracle</p>
</td>
<td class="cellrowborder" valign="top" width="10.73%" headers="mcps1.3.1.2.2.8.1.6 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p16643193065018">N/A</p>
</td>
<td class="cellrowborder" valign="top" width="24.48%" headers="mcps1.3.1.2.2.8.1.7 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p19643113020501">--version-number</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p12644133035010">or</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p15644153065017">-V1R8_330</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_row6644173055010"><td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.1 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p064514307506">--target-db</p>
</td>
<td class="cellrowborder" valign="top" width="10%" headers="mcps1.3.1.2.2.8.1.2 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p5645193085012">-T</p>
</td>
<td class="cellrowborder" valign="top" width="11%" headers="mcps1.3.1.2.2.8.1.3 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p20645143018500">String</p>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.1.2.2.8.1.4 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p19645193013509">Target database</p>
</td>
<td class="cellrowborder" valign="top" width="14.790000000000001%" headers="mcps1.3.1.2.2.8.1.5 "><ul id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_ul86451930195018"><li id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_li10645113019503">gaussdbA</li></ul>
</td>
<td class="cellrowborder" valign="top" width="10.73%" headers="mcps1.3.1.2.2.8.1.6 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p14646123085011">gaussdbA</p>
</td>
<td class="cellrowborder" valign="top" width="24.48%" headers="mcps1.3.1.2.2.8.1.7 "><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p3646173095014">--target-db gaussdbA (or)</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p3646123017502"><em id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_i6646830145012">-T gaussdbA</em></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_en-us_topic_0213040018_section31045820"><h4 class="sectiontitle">Usage Guideline</h4><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_en-us_topic_0213040018_p6421200111538">It is mandatory to specify the source database, input folder path, and output folder path, and optional to specify the migration type and log path.</p>
<div class="note" id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_en-us_topic_0213040018_note27163470102314"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_en-us_topic_0213040018_p43144638102314">If a user does not specify the logging path, then the tool creates the <strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b103170802731842">log </strong>folder in the TOOL_HOME path and saves all the logs in this <em id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_i35652214931842">log </em>folder.</p>
</div></div>
</div>
<div class="section" id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_en-us_topic_0213040018_section19397641131210"><h4 class="sectiontitle">Examples</h4><pre class="screen" id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_screen20423017"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b10367513">./runDSC.sh --source-db</strong> Teradata <strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b26198756">--input-folder</strong> opt/DSC/DSC/input/oracle/ --output-folder /opt/DSC/DSC/output/ --log-folder /opt/DSC/DSC/log/ <strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b39976034">--application-lang </strong>SQL <strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b24239987">--conversion-type</strong> ddl <strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b18396011123513">--targetdb</strong> gaussdbA</pre>
</div>
<div class="section" id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_en-us_topic_0213040018_section17357516135533"><h4 class="sectiontitle">System Response</h4><pre class="screen" id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_screen53925429339">********************** 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>
<div class="note" id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_note411124617337"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p9347165893311">If there is no sql file present in the input folder, then the following message is displayed in console:</p>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p113562811349"><span><img id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_image1366317241810" src="figure/en-us_image_0000001387842380.png"></span></p>
</div></div>
</div>
<div class="section" id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_section222120419175"><h4 class="sectiontitle">Environment Creation and Restoration Procedure (database and database user)</h4><p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p2082917596349"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b76139115520">Creating a </strong><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b2082925919347"><u id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_u6829105915349">GaussDB(DWS)</u> -</strong><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b1361310116527"> Database and Schema</strong></p>
<ol id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_ol18294590343"><li id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_li5829105963419"><span>Log in to postgres:</span><p><pre class="screen" id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_screen178294594344">gsql -p &lt;port&gt; -d postgres
drop database &lt;database name&gt;;
create database &lt;database name&gt;;
\c &lt;database name&gt;
GRANT ALL PRIVILEGES ON DATABASE &lt;database name&gt; TO &lt;user&gt;;
grant database to &lt;user&gt;;\q
gsql -p &lt;port&gt; -d &lt;database name&gt; -U &lt;user&gt; -W &lt;password&gt; -h &lt;IP&gt; -f
drop database &lt;database name&gt;;
create database &lt;database name&gt;;
\c &lt;database name&gt;;
GRANT ALL PRIVILEGES ON DATABASE &lt;database name&gt; TO &lt;user&gt;;
gsql -p &lt;port&gt; -d &lt;database name&gt; -U &lt;user&gt; -W &lt;password&gt; -f</pre>
</p></li><li id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_li98291459133411"><span>Run all files in setup.</span></li></ol>
<p id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_p148291359173413"><strong id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_b68291059133420">Commands</strong>:</p>
<pre class="screen" id="EN-US_TOPIC_0000001819336077__en-us_topic_0000001657865306_en-us_topic_0000001387841760_screen582915911342">sh runDSC.sh -S oracle -M blogic -I &lt;input path&gt;
sh runDSC.sh -I input/ -S oracle -M ddl -L log_temp -P input/bulk/1_table/ </pre>
</div>
</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>