forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Lu, Huayi <luhuayi@huawei.com> Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
21 lines
2.9 KiB
HTML
21 lines
2.9 KiB
HTML
<a name="EN-US_TOPIC_0000001145894457"></a><a name="EN-US_TOPIC_0000001145894457"></a>
|
|
|
|
<h1 class="topictitle1">Exporting Data</h1>
|
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001145894457__s99e15cc874f543108afae0ed2d488f9d"><h4 class="sectiontitle">Prerequisites</h4><p id="EN-US_TOPIC_0000001145894457__a212f249a9b9b420582b2f8b1e727d3b1">Ensure that the IP addresses and ports of servers where CNs and DNs are deployed can connect to those of the GDS server.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0000001145894457__sd83c905305044697b6c38ee7e3f6a2d3"><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0000001145894457__o15a5e18b91a2465c9e847a265dceca60"><li id="EN-US_TOPIC_0000001145894457__l3865b7709eee440796276f8d52cd00ac"><span>Export data.</span><p><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001145894457__se9f950eefaf44e108858f85b949846a1"><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">INSERT</span><span class="w"> </span><span class="k">INTO</span><span class="w"> </span><span class="p">[</span><span class="k">Foreign</span><span class="w"> </span><span class="k">table</span><span class="w"> </span><span class="n">name</span><span class="p">]</span><span class="w"> </span><span class="k">SELECT</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="k">FROM</span><span class="w"> </span><span class="p">[</span><span class="k">Source</span><span class="w"> </span><span class="k">table</span><span class="w"> </span><span class="n">name</span><span class="p">];</span><span class="w"></span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
<div class="note" id="EN-US_TOPIC_0000001145894457__n346b594078d0407988f0978846d2b93f"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001145894457__p760784113919">Create batch processing scripts to export data in parallel. The degree of parallelism depends on the server resource usage. You can test several tables and monitor resource usage to determine whether to increase or reduce the amount. Common resource monitoring commands include <strong id="EN-US_TOPIC_0000001145894457__b11701106249">top</strong> for memory and CPU usage, <strong id="EN-US_TOPIC_0000001145894457__b8701709241">iostat</strong> for I/O usage, and <strong id="EN-US_TOPIC_0000001145894457__b1370112016245">sar</strong> for networks. For details about application cases, see <a href="dws_04_0268.html#EN-US_TOPIC_0000001098974516__s855daf73006d4e05ba6d04f8db74e7f6">Exporting Data Using Multiple Threads</a>.</p>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0261.html">Using GDS to Export Data to a Remote Server</a></div>
|
|
</div>
|
|
</div>
|
|
|