forked from docs/doc-exports
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>
109 lines
9.6 KiB
HTML
109 lines
9.6 KiB
HTML
<a name="EN-US_TOPIC_0000001233563131"></a><a name="EN-US_TOPIC_0000001233563131"></a>
|
|
|
|
<h1 class="topictitle1">ODBC-Based Development</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001233563131__en-us_topic_0059778944_p921863115410">Open Database Connectivity (ODBC) is an MS API for accessing databases based on the X/OPEN CLI. The ODBC API alleviates applications from directly operating in databases, and enhances the database portability, extensibility, and maintainability.</p>
|
|
<p id="EN-US_TOPIC_0000001233563131__ac15120f9d8fa4cdf886237ba2675fb54"><a href="#EN-US_TOPIC_0000001233563131__f08f2cb1be20447fc8206f122126d1ec3">Figure 1</a> shows the system structure of ODBC.</p>
|
|
<div class="fignone" id="EN-US_TOPIC_0000001233563131__f08f2cb1be20447fc8206f122126d1ec3"><a name="EN-US_TOPIC_0000001233563131__f08f2cb1be20447fc8206f122126d1ec3"></a><a name="f08f2cb1be20447fc8206f122126d1ec3"></a><span class="figcap"><b>Figure 1 </b>ODBC system structure</span><br><span><img id="EN-US_TOPIC_0000001233563131__i9462eda3273446f194bb64ec40e98bec" src="figure/en-us_image_0000001188323782.jpg"></span></div>
|
|
<p id="EN-US_TOPIC_0000001233563131__a71a1bf98dbb64ea48c20fa75b3160e76"><span id="EN-US_TOPIC_0000001233563131__text252248690">GaussDB(DWS)</span> supports ODBC 3.5 in the following environments.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233563131__tbc8bbd19557c42b7aeb1f9b886ed02af" frame="border" border="1" rules="all"><caption><b>Table 1 </b>OSs Supported by ODBC</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233563131__rd14a6586d58b488590d7d7717c41b1ed"><th align="left" class="cellrowborder" valign="top" width="78.64%" id="mcps1.3.5.2.3.1.1"><p id="EN-US_TOPIC_0000001233563131__a72de65b705e341209d042ccd2b550004">OS</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="21.36%" id="mcps1.3.5.2.3.1.2"><p id="EN-US_TOPIC_0000001233563131__a779a7332a176411f9633e55aa513612f">Platform</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001233563131__r7fddef17dabc496f8edc99d2f7ae35ae"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__a07ec0036a03f44fa80e22b47ac61b7db">SUSE Linux Enterprise Server 11 SP1/SP2/SP3/SP4</p>
|
|
<p id="EN-US_TOPIC_0000001233563131__p15785162115173">SUSE Linux Enterprise Server 12 and SP1/SP2/SP3/SP5</p>
|
|
</td>
|
|
<td class="cellrowborder" align="left" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__aa862c8db5da544d4b3686b0095628757">x86_64</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563131__r96674a0e4a864236abe9eee49fcf00e0"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__a42561ea5aab8491b8fee1e7f5c4996fa">Red Hat Enterprise Linux 6.4/6.5/6.6/6.7/6.8/6.9/7.0/7.1/7.2/7.3/7.4/7.5</p>
|
|
</td>
|
|
<td class="cellrowborder" align="left" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__a475b129cb2a948bfaf30edbb02759356">x86_64</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563131__row201661823145212"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__p1340452617527">Red Hat Enterprise Linux 7.5</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__p71681523185210">ARM64</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563131__rca11f97d8b3348f49f56ab8741353c71"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__a083dce07f0c84cc5b59eb4a809684210">CentOS 6.4/6.5/6.6/6.7/6.8/6.9/7.0/7.1/7.2/7.3/7.4</p>
|
|
</td>
|
|
<td class="cellrowborder" align="left" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__af74aec3477b446f8835eb0f4542f1375">x86_64</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563131__row196422068554"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__p12643116125510">CentOS 7.6</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__p864386185519">ARM64</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563131__r26f03256b88c4bb5a92ac40d0ce2ada5"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__en-us_topic_0059778944_p826525664919">EulerOS 2.0 SP2/SP3</p>
|
|
</td>
|
|
<td class="cellrowborder" align="left" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__en-us_topic_0059778944_p93583610509">x86_64</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563131__row1728515110349"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__p1028612118342">EulerOS 2.0 SP8</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__p162863113411">ARM64</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563131__row113458439207"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__p1534674302017">NeoKylin 7.5/7.6</p>
|
|
</td>
|
|
<td class="cellrowborder" align="left" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__p2034674313203">ARM64</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563131__row15170412132110"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__p41703123212">Oracle Linux R7U4</p>
|
|
</td>
|
|
<td class="cellrowborder" align="left" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__p151704121211">x86_64</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563131__r0a7af9e196944e38bf2acd22b933f95d"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__adb9426347ecb4795b3d60a34c600753e">Windows 7</p>
|
|
</td>
|
|
<td class="cellrowborder" align="left" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__a8931565130d8452fb1ed4064f3a88a94">32-bit</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563131__rcfd8ac877cd946ea9d689ff0bf313520"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__ac4a694a92b4e4afd8c9b045b0dbddfbf">Windows 7</p>
|
|
</td>
|
|
<td class="cellrowborder" align="left" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__a0b86b42edf2f436c8db70caf0f4292eb">64-bit</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563131__rffc0848d5f7d463ebdaf04b94525801e"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__aad7a7b78bb0c40c5be5c1b6962606027">Windows Server 2008</p>
|
|
</td>
|
|
<td class="cellrowborder" align="left" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__a29b9c3380df74d4ba804be6a7b18bc32">32-bit</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001233563131__r3739b8921d14454a814ebb1eb6c09320"><td class="cellrowborder" valign="top" width="78.64%" headers="mcps1.3.5.2.3.1.1 "><p id="EN-US_TOPIC_0000001233563131__ab58e89f652a94f7c9039e96189c55284">Windows Server 2008</p>
|
|
</td>
|
|
<td class="cellrowborder" align="left" valign="top" width="21.36%" headers="mcps1.3.5.2.3.1.2 "><p id="EN-US_TOPIC_0000001233563131__ad7c9cf71f55643f4b743cb9edfca8401">64-bit</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="EN-US_TOPIC_0000001233563131__p2925111816444">The operating systems listed above refer to the operating systems on which the ODBC program runs. They can be different from the operating systems where databases are deployed.</p>
|
|
<p id="EN-US_TOPIC_0000001233563131__aac440dfa1fa041b895788cd561bc2dff">The ODBC Driver Manager running on UNIX or Linux can be unixODBC or iODBC. Select unixODBC-2.3.0 here as the component for connecting the database.</p>
|
|
<p id="EN-US_TOPIC_0000001233563131__a139999cd7214429ca4d1621da6f2d909">Windows has a native ODBC Driver Manager. You can locate <strong id="EN-US_TOPIC_0000001233563131__b842352706142057">Data Sources (ODBC)</strong> by choosing <strong id="EN-US_TOPIC_0000001233563131__b84235270614212">Control Panel > Administrative Tools</strong>.</p>
|
|
<div class="note" id="EN-US_TOPIC_0000001233563131__note4209112913117"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001233563131__p1121082910117">The current database ODBC driver is based on an open source version and may be incompatible with GaussDB(DWS) data types, such as tinyint, smalldatetime, and nvarchar2.</p>
|
|
</div></div>
|
|
</div>
|
|
<div>
|
|
<ul class="ullinks">
|
|
<li class="ulchildlink"><strong><a href="dws_04_0118.html">ODBC Package and Its Dependent Libraries and Header Files</a></strong><br>
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="dws_04_0119.html">Configuring a Data Source in the Linux OS</a></strong><br>
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="dws_04_0120.html">Configuring a Data Source in the Windows OS</a></strong><br>
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="dws_04_0123.html">ODBC Development Example</a></strong><br>
|
|
</li>
|
|
<li class="ulchildlink"><strong><a href="dws_04_0124.html">ODBC Interfaces</a></strong><br>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0085.html">Guide: JDBC- or ODBC-Based Development</a></div>
|
|
</div>
|
|
</div>
|
|
|