forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: chenxiaoxiong <chenxiaoxiong@huawei.com> Co-committed-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
26 lines
4.3 KiB
HTML
26 lines
4.3 KiB
HTML
<a name="dataartsstudio_03_0110"></a><a name="dataartsstudio_03_0110"></a>
|
|
|
|
<h1 class="topictitle1">What Should I Do If a JDBC Connection Timeout Error Is Reported During MySQL Migration?</h1>
|
|
<div id="body8662426"><div class="section" id="dataartsstudio_03_0110__en-us_topic_0000001117256694_section1223581555114"><h4 class="sectiontitle">Symptom</h4><p id="dataartsstudio_03_0110__en-us_topic_0000001117256694_p154950261662">The following error message is displayed during MySQL migration: "Unable to connect to the database server. Cause: connect timed out"</p>
|
|
</div>
|
|
<div class="section" id="dataartsstudio_03_0110__en-us_topic_0000001117256694_section272691115518"><h4 class="sectiontitle">Possible Cause</h4><p id="dataartsstudio_03_0110__en-us_topic_0000001117256694_p8238825578">The table has a large data volume, and the source end uses the where statement to filter data. However, the column is not an index column or the column values are not discrete. As a result, the entire table is scanned during the query, causing a JDBC connection timeout. </p>
|
|
</div>
|
|
<div class="section" id="dataartsstudio_03_0110__en-us_topic_0000001117256694_section829514578315"><h4 class="sectiontitle">Solution</h4><ol id="dataartsstudio_03_0110__en-us_topic_0000001117256694_ol141911350495"><li id="dataartsstudio_03_0110__en-us_topic_0000001117256694_li19361435011">Contact the DBA to modify the table structure, set the columns to be filtered as index columns, and try again.<p id="dataartsstudio_03_0110__en-us_topic_0000001117256694_p20124454013"><a name="dataartsstudio_03_0110__en-us_topic_0000001117256694_li19361435011"></a><a name="en-us_topic_0000001117256694_li19361435011"></a>If the failure persists because the data is not discrete, perform <a href="#dataartsstudio_03_0110__en-us_topic_0000001117256694_li171918501191">2</a> to <a href="#dataartsstudio_03_0110__en-us_topic_0000001117256694_li391823117132">4</a> and increase the JDBC timeout duration.</p>
|
|
</li><li id="dataartsstudio_03_0110__en-us_topic_0000001117256694_li171918501191"><a name="dataartsstudio_03_0110__en-us_topic_0000001117256694_li171918501191"></a><a name="en-us_topic_0000001117256694_li171918501191"></a>Locate the MySQL link name based on the job and obtain the link information.</li><li id="dataartsstudio_03_0110__en-us_topic_0000001117256694_li181183151115">Click the <strong id="dataartsstudio_03_0110__en-us_topic_0000001117256694_b71621114312">Links</strong> tab and click <strong id="dataartsstudio_03_0110__en-us_topic_0000001117256694_b204521828154413">Edit</strong> to edit the link.<div class="fignone" id="dataartsstudio_03_0110__en-us_topic_0000001117256694_fig17386118101320"><span class="figcap"><b>Figure 1 </b>Editing the link</span><br><span><img id="dataartsstudio_03_0110__en-us_topic_0000001117256694_image16328105319820" src="en-us_image_0000002269196341.png" title="Click to enlarge" class="imgResize"></span></div>
|
|
</li><li id="dataartsstudio_03_0110__en-us_topic_0000001117256694_li391823117132"><a name="dataartsstudio_03_0110__en-us_topic_0000001117256694_li391823117132"></a><a name="en-us_topic_0000001117256694_li391823117132"></a>Click <strong id="dataartsstudio_03_0110__en-us_topic_0000001117256694_b864451811488">Show Advanced Attributes</strong>, add parameters <strong id="dataartsstudio_03_0110__en-us_topic_0000001117256694_b139855911481">connectTimeout</strong> and <strong id="dataartsstudio_03_0110__en-us_topic_0000001117256694_b38114106493">socketTimeout</strong> and their values in <strong id="dataartsstudio_03_0110__en-us_topic_0000001117256694_b055118269497">Link Attributes </strong>, and click <strong id="dataartsstudio_03_0110__en-us_topic_0000001117256694_b9799634104914">Save</strong>.<div class="fignone" id="dataartsstudio_03_0110__en-us_topic_0000001117256694_fig1232724091312"><span class="figcap"><b>Figure 2 </b>Editing advanced attributes</span><br><span><img id="dataartsstudio_03_0110__en-us_topic_0000001117256694_image179948311073" src="en-us_image_0000002269196349.png" title="Click to enlarge" class="imgResize"></span></div>
|
|
</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataartsstudio_03_0027.html">DataArts Migration (CDM Jobs)</a></div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script language="JavaScript">
|
|
<!--
|
|
initImageViewer('.imgResize');
|
|
var msg_imageMax = "view original image";
|
|
var msg_imageClose = "close";
|
|
//--></script> |