forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Reviewed-by: Jiang, Beibei <beibei.jiang@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
223 lines
28 KiB
HTML
223 lines
28 KiB
HTML
<a name="EN-US_TOPIC_0000001188202574"></a><a name="EN-US_TOPIC_0000001188202574"></a>
|
|
|
|
<h1 class="topictitle1">Teradata Perl Configuration</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p42011119196">Teradata Perl parameters are used to customize rules for Teradata Perl script migration.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p46411613161111">Open the <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b017613772918">perl-migration.properties</strong> file in the <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b171771737132912">config</strong> folder and set parameters in <a href="#EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_table60771938143352">Table 1</a> as required.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_note63736430145328"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul777814336172"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li12436325122015">Parameter values are case-insensitive.</li><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li1185115172014">You can modify value of the following two parameters <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b8803191543613">db-bteq-tag-name</strong> and <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b1728692383611">db-tdsql-tag-name</strong> parameters in the following table:</li></ul>
|
|
</div></div>
|
|
<div class="p" id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p18568838113813">
|
|
<div class="tablenoborder"><a name="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_table60771938143352"></a><a name="en-us_topic_0218440394_table60771938143352"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_table60771938143352" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters in the perl-migration.properties file</caption><thead align="left"><tr id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_row57642437143352"><th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.4.1.2.6.1.1"><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p12555135512544"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b17881423102410">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="23%" id="mcps1.3.4.1.2.6.1.2"><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p75551955155410"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b187911723202418">Description</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.4.1.2.6.1.3"><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p6555855145420"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b157941123122420">Value Range</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16%" id="mcps1.3.4.1.2.6.1.4"><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p1155511556544"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b19796112372412">Default Value</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="22%" id="mcps1.3.4.1.2.6.1.5"><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p5557255195415"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b879920236240">Example</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_row3194192917161"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.1.2.6.1.1 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul877734013166"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li147773406162"><a name="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li147773406162"></a><a name="en-us_topic_0218440394_li147773406162"></a>db-bteq-tag-name</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.4.1.2.6.1.2 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p17786104172">Scripts to be processed in Perl files.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p1428675031713"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b1445112505712">BTEQ</strong>: Only the scripts under the <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b1947853420578">BTEQ</strong> tag will be processed.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.1.2.6.1.3 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul107771140151613"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li15777204011619">bteq</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.1.2.6.1.4 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p167771840131611">bteq</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.4.1.2.6.1.5 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p187771740191613">db-bteq-tag-name=bteq</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_row319933391618"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.1.2.6.1.1 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul126930174113"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li132693018413"><a name="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li132693018413"></a><a name="en-us_topic_0218440394_li132693018413"></a>db-tdsql-tag-name</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.4.1.2.6.1.2 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p123875347186">Only the scripts under the <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b115221185715">db-tdsql-tag-name</strong> tag will be processed.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p018172610185"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b6841235153713">SQL_LANG:</strong> Only the scripts under the <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b614513185710">SQL_LANG</strong> tag will be processed.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.1.2.6.1.3 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p0449231712">sql_lang</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.1.2.6.1.4 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p15449233711">sql_lang</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.4.1.2.6.1.5 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p19441223777">db-tdsql-tag-name=sql_lang</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_row14984021918"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.1.2.6.1.1 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul726616441190"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li182661044181919">add-timing-on</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.4.1.2.6.1.2 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p15266104471913">Whether to enable the insertion of scripts to calculate execution time.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p7266204461914">If it is enabled, the script will be added to each input file.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.1.2.6.1.3 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul14266134415194"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li8266124481912">true</li><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li726618449195">false</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.1.2.6.1.4 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p1626610448197">false</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.4.1.2.6.1.5 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p1626611444198">add-timing-on=true</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_row5661958172016"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.1.2.6.1.1 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul925940122114"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li12591605213">remove-intermediate-files</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.4.1.2.6.1.2 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p112597062119">Whether to delete the intermediate SQL file generated by the DSC after the migration is complete.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p6259160152115">The intermediate files contain the <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b54661235144610">BTEQ</strong> and <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b84661735154617">SQL_LANG</strong> syntax in SQL files. These files are used as input for DSC.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p7259170112110"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b2466535174617">true</strong>: Delete the intermediate files.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p62591000219"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b246633504617">false</strong>: Do not delete the intermediate files.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.1.2.6.1.3 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul725915022111"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li19259160182115">true</li><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li925960112120">false</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.1.2.6.1.4 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p925919018215">true</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.4.1.2.6.1.5 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p825913014217">remove-intermediate-files=true</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_row652725655810"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.1.2.6.1.1 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul164848265917"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li1148411265916"><a name="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li1148411265916"></a><a name="en-us_topic_0218440394_li1148411265916"></a>migrate-variables</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.4.1.2.6.1.2 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p125391855133812">Whether to enable the migration of Perl variables containing SQL statements.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p8451133223911">Perl files can contain Perl variables with SQL statements. These variables are executed by using the <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b68061683489">PREPARE</strong> and <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b1680613824817">EXECUTE</strong> statement in Perl. DSC can extract SQL statements from Perl variables and migrate them.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p8315816114111"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b16806180489">true</strong>: enables the migration of <strong id="EN-US_TOPIC_0000001188202574__b1092051318521">Perl</strong> variables containing SQL statements.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p182693710424"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b198061884489">false</strong>: disables the migration of <strong id="EN-US_TOPIC_0000001188202574__b741842114528">Perl</strong> variables containing SQL statements.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p19748201415566">Example 1:</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p374116166116"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b13806168154816">migrate-variables</strong> is set to <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b1280612824812">true</strong> and input is as follows:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_screen1471415455207"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="err">$</span><span class="n">V_SQL</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="ss">"CT X1(C1 INT,C2 CHAR(30))"</span><span class="p">;</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p090561081119"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b15807183489">Output</strong></p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_screen434451132016"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">CREATE</span><span class="w"> </span><span class="k">TABLE</span><span class="w"> </span><span class="n">X1</span><span class="p">(</span><span class="n">C1</span><span class="w"> </span><span class="nb">INT</span><span class="p">,</span><span class="n">C2</span><span class="w"> </span><span class="nb">CHAR</span><span class="p">(</span><span class="mi">30</span><span class="p">));</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p319019532020">Example 2:</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p93455512317"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b28074814482">Input</strong></p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_screen034755173116"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span></pre></div></td><td class="code"><div><pre><span></span><span class="err">$</span><span class="n">onesql</span><span class="w"> </span><span class="o">=</span><span class="ss">"SELECT trim(tablename) from dbc.tables </span>
|
|
<span class="ss"> WHERE databasename = '${AUTO_DQDB}' and tablename like 'V_%' </span>
|
|
<span class="ss"> order by 1;"</span><span class="p">;</span>
|
|
<span class="w"> </span><span class="err">$</span><span class="n">sth_rundq</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="err">$</span><span class="n">dbh</span><span class="o">-></span><span class="n">execute_query</span><span class="p">(</span><span class="err">$</span><span class="n">onesql</span><span class="p">);</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p19351165113314"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b108072083487">Output</strong></p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_screen103532051143118"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
|
|
<span class="normal"> 2</span>
|
|
<span class="normal"> 3</span>
|
|
<span class="normal"> 4</span>
|
|
<span class="normal"> 5</span>
|
|
<span class="normal"> 6</span>
|
|
<span class="normal"> 7</span>
|
|
<span class="normal"> 8</span>
|
|
<span class="normal"> 9</span>
|
|
<span class="normal">10</span>
|
|
<span class="normal">11</span>
|
|
<span class="normal">12</span>
|
|
<span class="normal">13</span></pre></div></td><td class="code"><div><pre><span></span><span class="w"> </span><span class="err">$</span><span class="n">onesql</span><span class="w"> </span><span class="o">=</span><span class="ss">"SELECT</span>
|
|
<span class="ss"> TRIM( tablename )</span>
|
|
<span class="ss"> FROM</span>
|
|
<span class="ss"> dbc.tables</span>
|
|
<span class="ss"> WHERE</span>
|
|
<span class="ss"> databasename = '${AUTO_DQDB}'</span>
|
|
<span class="ss"> AND tablename LIKE 'V_%'</span>
|
|
<span class="ss"> ORDER BY</span>
|
|
<span class="ss"> 1</span>
|
|
<span class="ss">;</span>
|
|
|
|
<span class="ss">"</span><span class="p">;</span>
|
|
<span class="w"> </span><span class="err">$</span><span class="n">sth_rundq</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="err">$</span><span class="n">dbh</span><span class="o">-></span><span class="n">execute_query</span><span class="p">(</span><span class="err">$</span><span class="n">onesql</span><span class="p">);</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.1.2.6.1.3 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul9791181702"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li117911482013">true</li><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li11791981909">false</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.1.2.6.1.4 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p4793481602">true</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.4.1.2.6.1.5 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p1352795615589">migrate-variables=true</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_row196578020233"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.1.2.6.1.1 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul8844121102315"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li0844101162312"><a name="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li0844101162312"></a><a name="en-us_topic_0218440394_li0844101162312"></a>logging-level</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.4.1.2.6.1.2 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p7844151172318">Logging level of Teradata Perl migration log files.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p1284411202315"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b1839193118495">error</strong>: Log only errors.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p19844151202312"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b10391203112493">warning</strong>: Log errors and warnings.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p78443114237"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b739123104917">info</strong>: Log errors, warnings, and activity information. This level contains all log information.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.1.2.6.1.3 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul15844419232"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li6845131102314">error</li><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li684512122317">warning</li><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li1484514132317">info</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.1.2.6.1.4 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p1384517110232">info</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.4.1.2.6.1.5 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p188451518235">logging-level=info</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_row12241104414228"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.1.2.6.1.1 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul14362114715221"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li236214711227">log-file-count</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.4.1.2.6.1.2 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p19362154722215">Maximum number of log files retained, including the log files in use and archived log files.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p17362247182216">If the number of log files exceeds the upper limit, the earliest files will be deleted until the new log files are successfully archived.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.1.2.6.1.3 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p113621478224">3 - 10</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.1.2.6.1.4 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p836220471228">5</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.4.1.2.6.1.5 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p83621478227">log-file-count=10</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_row44821045152211"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.1.2.6.1.1 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul20362114711220"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li2036214472221">log-file-size</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.4.1.2.6.1.2 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p2362154712217">Maximum file size.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p153621447152211">Upon reaching the specified size, a file is archived by adding a timestamp to the file name.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p636294762214">Example:</p>
|
|
<pre class="screen" id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_screen1136218475222">perlDSC_2018-07-08_16_12_08.log</pre>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p15362947142211">After the archiving, a new log file <em id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_i571510298920">perlDSC.log</em> with a timestamp is generated.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.1.2.6.1.3 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p14362194710223">1MB - 10MB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.1.2.6.1.4 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p8362184710228">5MB</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.4.1.2.6.1.5 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p13362154717220">log-file-size=10MB</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_row07910312319"><td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.4.1.2.6.1.1 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul10577932151516"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li357712329159">migrate-executequery</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="23%" headers="mcps1.3.4.1.2.6.1.2 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p159631453419">Whether to enable the migration of <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b6376165020517">execute_query</strong> containing SQL statements.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p2243162312420"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b1198519128619">true</strong>: enables the migration of <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b154111308618">execute_query</strong> containing SQL statements.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p213418371413"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b61251587612">false</strong>: disables the migration of <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b151251581866">execute_query</strong> containing SQL statements.</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p95832262110">For example:</p>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p1576910107218"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b17660114161014">migrate-executequery</strong> is set to <strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b41991801013">true</strong> and input is as follows:</p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_screen9894112112215"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">my</span><span class="w"> </span><span class="err">$</span><span class="n">rows1</span><span class="o">=</span><span class="err">$</span><span class="n">conn1</span><span class="o">-></span><span class="n">execute_query</span><span class="p">(</span><span class="ss">"sel ${selectclause} from ${databasename}.${tablename};</span>
|
|
<span class="ss"> "</span><span class="p">);</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p18264466216"><strong id="EN-US_TOPIC_0000001188202574__en-us_topic_0237712579_b1377672101619">Output</strong></p>
|
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_screen1133458122120"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">my</span><span class="w"> </span><span class="err">$</span><span class="n">rows1</span><span class="o">=</span><span class="err">$</span><span class="n">conn1</span><span class="o">-></span><span class="n">execute_query</span><span class="p">(</span><span class="ss">"SELECT</span>
|
|
<span class="ss"> ${selectclause}</span>
|
|
<span class="ss"> FROM</span>
|
|
<span class="ss"> ${databasename}.${tablename}</span>
|
|
<span class="ss">;"</span><span class="p">);</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.4.1.2.6.1.3 "><ul id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_ul20221155512166"><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li12221195519165">true</li><li id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_li277595721619">false</li></ul>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16%" headers="mcps1.3.4.1.2.6.1.4 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p129489311339">true</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="22%" headers="mcps1.3.4.1.2.6.1.5 "><p id="EN-US_TOPIC_0000001188202574__en-us_topic_0218440394_p179481731334">migrate-executequery =true</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_mt_0023.html">Configuring DSC</a></div>
|
|
</div>
|
|
</div>
|
|
|