forked from docs/doc-exports
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>
This commit is contained in:
parent
e6fa411af0
commit
27019c2991
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -5,9 +5,9 @@
|
|||||||
</li><li id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li53128157"><strong id="EN-US_TOPIC_0000001188362524__b776635994113225">Data Studio does not open and displays a 'Java Runtime' error when I double-click the Data Studio.exe file.</strong><p class="litext" id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p10402369"><strong id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_b173311742342">Solution:</strong></p>
|
</li><li id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li53128157"><strong id="EN-US_TOPIC_0000001188362524__b776635994113225">Data Studio does not open and displays a 'Java Runtime' error when I double-click the Data Studio.exe file.</strong><p class="litext" id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p10402369"><strong id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_b173311742342">Solution:</strong></p>
|
||||||
<ul class="subitemlist" id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_ul26512460"><li id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li37285554">Without JRE:<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p25666"><a name="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li37285554"></a><a name="en-us_topic_0185264982_li37285554"></a><span><img id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_image230999" src="figure/en-us_image_0000001234200735.png"></span></p>
|
<ul class="subitemlist" id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_ul26512460"><li id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li37285554">Without JRE:<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p25666"><a name="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li37285554"></a><a name="en-us_topic_0185264982_li37285554"></a><span><img id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_image230999" src="figure/en-us_image_0000001234200735.png"></span></p>
|
||||||
<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p675871844512">Check whether the Java Runtime Environment (JRE) or Java Development Kit (JDK) version 1.8.0_141 or above with appropriate bit number is installed on the system and Java Home path is set. If there are more than one version of Java installed, set the <strong id="EN-US_TOPIC_0000001188362524__b1500820431113225">-vm</strong> parameter in the configuration file by referring to <a href="DWS_DS_16.html">Installing and Configuring Data Studio</a>. This is a prerequisite for running Data Studio.</p>
|
<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p675871844512">Check whether the Java Runtime Environment (JRE) or Java Development Kit (JDK) version 1.8.0_141 or above with appropriate bit number is installed on the system and Java Home path is set. If there are more than one version of Java installed, set the <strong id="EN-US_TOPIC_0000001188362524__b1500820431113225">-vm</strong> parameter in the configuration file by referring to <a href="DWS_DS_16.html">Installing and Configuring Data Studio</a>. This is a prerequisite for running Data Studio.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li18710936">Old JRE version:<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p34180703"><a name="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li18710936"></a><a name="en-us_topic_0185264982_li18710936"></a><span><img id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_image39190879" src="figure/en-us_image_0000001188681130.png"></span></p>
|
</li><li id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li18710936">Old JRE version:<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p34180703"><a name="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li18710936"></a><a name="en-us_topic_0185264982_li18710936"></a><span><img id="EN-US_TOPIC_0000001188362524__image20884161291111" src="figure/en-us_image_0000001809221997.png"></span></p>
|
||||||
<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p17173591">Check the version of Java Runtime Environment (JRE) or Java Development Kit (JDK) that is installed on the system. An older version installed on the system causes this error. Update the JRE to version 1.8.0_141 or above with appropriate bit number.</p>
|
<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p17173591">Check the version of Java Runtime Environment (JRE) or Java Development Kit (JDK) that is installed on the system. An older version installed on the system causes this error. Update the JRE to version 1.8.0_141 or above with appropriate bit number.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li33101019289">Java Incompatibility:<p class="subitemlist" id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p679822782918"><a name="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li33101019289"></a><a name="en-us_topic_0185264982_li33101019289"></a><span><img id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_image118331615314" src="figure/en-us_image_0000001234042247.png"></span></p>
|
</li><li id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li33101019289">Java Incompatibility:<p class="subitemlist" id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p679822782918"><a name="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_li33101019289"></a><a name="en-us_topic_0185264982_li33101019289"></a><span><img id="EN-US_TOPIC_0000001188362524__image6175191914146" src="figure/en-us_image_0000001809304349.png"></span></p>
|
||||||
<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p33074221202"></p>
|
<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p33074221202"></p>
|
||||||
<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p138671638757">Check the version of the JRE or JDK installed in the system. If the installed Java version is incompatible with the system, this error occurs. Update the JRE to version 1.8.0_141 or above with appropriate bit number.</p>
|
<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p138671638757">Check the version of the JRE or JDK installed in the system. If the installed Java version is incompatible with the system, this error occurs. Update the JRE to version 1.8.0_141 or above with appropriate bit number.</p>
|
||||||
<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p528123720317">You are advised to run the batch file to check compatibility and launch Data Studio. For details, see <a href="DWS_DS_19.html">Quick Start</a>.</p>
|
<p id="EN-US_TOPIC_0000001188362524__en-us_topic_0185264982_p528123720317">You are advised to run the batch file to check compatibility and launch Data Studio. For details, see <a href="DWS_DS_19.html">Quick Start</a>.</p>
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
<div class="section" id="EN-US_TOPIC_0000001233800747__section519015404919"><h4 class="sectiontitle">Server Configuration</h4><p id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001510164849_en-us_topic_0000001290232596_p695305681112">After a GaussDB(DWS) cluster is deployed, the SSL authentication mode is enabled by default. The server certificate, private key, and root certificate have been configured by default.</p>
|
<div class="section" id="EN-US_TOPIC_0000001233800747__section519015404919"><h4 class="sectiontitle">Server Configuration</h4><p id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001510164849_en-us_topic_0000001290232596_p695305681112">After a GaussDB(DWS) cluster is deployed, the SSL authentication mode is enabled by default. The server certificate, private key, and root certificate have been configured by default.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="EN-US_TOPIC_0000001233800747__section4102431797"><h4 class="sectiontitle">SSL Certificate and Client Configuration</h4><p id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_p1366818145418">You need to configure the client.</p>
|
<div class="section" id="EN-US_TOPIC_0000001233800747__section4102431797"><h4 class="sectiontitle">SSL Certificate and Client Configuration</h4><p id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_p1366818145418">You need to configure the client.</p>
|
||||||
<ol id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_ol1827634419214"><li id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_li129241946103115"><span>You can download an SSL certificate from GaussDB(DWS).</span><p><p id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_p1063804811313">Log in to the GaussDB(DWS) management console. In the navigation pane, choose <strong id="EN-US_TOPIC_0000001233800747__b40147496132553">Connections</strong>. In the <span class="parmname" id="EN-US_TOPIC_0000001233800747__parmname32277934132553"><b>Driver</b></span> area, click <span class="uicontrol" id="EN-US_TOPIC_0000001233800747__uicontrol212612093432553"><b>download an SSL certificate</b></span>.</p>
|
<ol id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_ol1827634419214"><li id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_li129241946103115"><span>You can download an SSL certificate from GaussDB(DWS).</span><p><p id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_p1063804811313">Log in to the GaussDB(DWS) management console. In the navigation pane, choose <span class="uicontrol" id="EN-US_TOPIC_0000001233800747__en-us_topic_0151469169_uicontrol62465762165050"><b>Connections</b></span>. In the <span class="parmname" id="EN-US_TOPIC_0000001233800747__parmname32277934132553"><b>Driver</b></span> area, click <span class="uicontrol" id="EN-US_TOPIC_0000001233800747__uicontrol212612093432553"><b>download an SSL certificate</b></span>.</p>
|
||||||
<p id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_p1325311814228"><span><img id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_image11671527182412" src="figure/en-us_image_0000001529038632.png"></span></p>
|
<p id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_p1325311814228"><span><img id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_image11671527182412" src="figure/en-us_image_0000001529038632.png"></span></p>
|
||||||
<p id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_p4434220202813"></p>
|
<p id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_p4434220202813"></p>
|
||||||
</p></li><li id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_li1180291411225"><span>Decompress the downloaded <strong id="EN-US_TOPIC_0000001233800747__b124507593632553">dws_ssl_cert.zip</strong> package to obtain the certificate file. Click the <strong id="EN-US_TOPIC_0000001233800747__b23216928232553">SSL</strong> tab on the Data Studio client and set the following parameters:</span><p>
|
</p></li><li id="EN-US_TOPIC_0000001233800747__en-us_topic_0000001290232596_li1180291411225"><span>Decompress the downloaded <strong id="EN-US_TOPIC_0000001233800747__b124507593632553">dws_ssl_cert.zip</strong> package to obtain the certificate file. Click the <strong id="EN-US_TOPIC_0000001233800747__b23216928232553">SSL</strong> tab on the Data Studio client and set the following parameters:</span><p>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<h1 class="topictitle1">Installing and Configuring Data Studio</h1>
|
<h1 class="topictitle1">Installing and Configuring Data Studio</h1>
|
||||||
<div id="body8662426"><p id="EN-US_TOPIC_0000001188521096__en-us_topic_0185264355_p9216734142914">This section describes the installation and configuration steps to use Data Studio. It also explains the steps to configure servers for debugging PL/SQL Functions.</p>
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001188521096__en-us_topic_0185264355_p9216734142914">This section describes the installation and configuration steps to use Data Studio. It also explains the steps to configure servers for debugging PL/SQL Functions.</p>
|
||||||
<div class="section" id="EN-US_TOPIC_0000001188521096__section527944916617"><h4 class="sectiontitle">Installation Preparations</h4><p id="EN-US_TOPIC_0000001188521096__p13550179716">On the <strong id="EN-US_TOPIC_0000001188521096__b1893115134320">Connections</strong> page of the GaussDB(DWS) console, download the Data Studio GUI client.</p>
|
<div class="section" id="EN-US_TOPIC_0000001188521096__section527944916617"><h4 class="sectiontitle">Installation Preparations</h4><p id="EN-US_TOPIC_0000001188521096__p13550179716">On the <span class="uicontrol" id="EN-US_TOPIC_0000001188521096__en-us_topic_0151469169_uicontrol62465762165050"><b>Connections</b></span> page of the GaussDB(DWS) console, download the Data Studio GUI client.</p>
|
||||||
<p id="EN-US_TOPIC_0000001188521096__p171710129118"><span><img id="EN-US_TOPIC_0000001188521096__image192685142114" src="figure/en-us_image_0000001450702152.png"></span></p>
|
<p id="EN-US_TOPIC_0000001188521096__p171710129118"><span><img id="EN-US_TOPIC_0000001188521096__image192685142114" src="figure/en-us_image_0000001450702152.png"></span></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="EN-US_TOPIC_0000001188521096__en-us_topic_0185264355_section1556844435220"><h4 class="sectiontitle">Installing Data Studio</h4><p id="EN-US_TOPIC_0000001188521096__en-us_topic_0185264355_p191245619572">Data Studio can be run after decompression of the package.</p>
|
<div class="section" id="EN-US_TOPIC_0000001188521096__en-us_topic_0185264355_section1556844435220"><h4 class="sectiontitle">Installing Data Studio</h4><p id="EN-US_TOPIC_0000001188521096__en-us_topic_0185264355_p191245619572">Data Studio can be run after decompression of the package.</p>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<a name="EN-US_TOPIC_0000001515111185"></a><a name="EN-US_TOPIC_0000001515111185"></a>
|
<a name="EN-US_TOPIC_0000001515111185"></a><a name="EN-US_TOPIC_0000001515111185"></a>
|
||||||
|
|
||||||
<h1 class="topictitle1">Downloading Related Tools</h1>
|
<h1 class="topictitle1">Downloading Related Tools</h1>
|
||||||
<div id="body0000001515111185"><ol id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_ol60386497154929"><li id="EN-US_TOPIC_0000001515111185__li6494578196"><span>Log in to the GaussDB(DWS) management console.</span><p><p id="EN-US_TOPIC_0000001515111185__p638418102317">Log in to the GaussDB(DWS) management console at: <a href="https://console.otc.t-systems.com/dws/" target="_blank" rel="noopener noreferrer">https://console.otc.t-systems.com/dws/</a></p>
|
<div id="body0000001515111185"><ol id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_ol60386497154929"><li id="EN-US_TOPIC_0000001515111185__li6494578196"><span>Log in to the management console and search for <span class="uicontrol" id="EN-US_TOPIC_0000001515111185__uicontrol1397320347304"><b>GaussDB(DWS)</b></span>. The <strong id="EN-US_TOPIC_0000001515111185__b195851854153115">GaussDB(DWS)</strong> console page is displayed.</span><p><p id="EN-US_TOPIC_0000001515111185__p638418102317">Log in to the GaussDB(DWS) management console at: <a href="https://console.otc.t-systems.com/dws/" target="_blank" rel="noopener noreferrer">https://console.otc.t-systems.com/dws/</a></p>
|
||||||
</p></li><li id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_li115408565467"><span>In the navigation tree on the left, click <span class="uicontrol" id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_uicontrol62465762165050"><b>Connections</b></span>.</span></li><li id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_li799412301719"><span>In the <span class="wintitle" id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_wintitle235710401177"><b>Download Client and Driver</b></span> area, select the tools corresponding to the cluster version based on the computer OS and download them.</span><p><p id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_p1943615413317">You can download the following tools:</p>
|
</p></li><li id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_li115408565467"><span>In the navigation tree on the left, choose <span class="uicontrol" id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_uicontrol62465762165050"><b>Connections</b></span>.</span></li><li id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_li799412301719"><span>In the <span class="wintitle" id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_wintitle235710401177"><b>Download Client and Driver</b></span> area, select the tools corresponding to the cluster version based on the computer OS and download them.</span><p><p id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_p1943615413317">You can download the following tools:</p>
|
||||||
<ul id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_ul61633719356"><li id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_li31603753511">gsql CLI client: The gsql tool package contains the gsql client tool, GDS (parallel data loading tool), gs_dump, gs_dumpall, and gs_restore tools.</li><li id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_li1616163783519">Data Studio GUI client</li><li id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_li18378537185315">DSC migration tool</li></ul>
|
<ul id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_ul61633719356"><li id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_li31603753511">gsql CLI client: The gsql tool package contains the gsql client tool, GDS (parallel data loading tool), gs_dump, gs_dumpall, and gs_restore tools.</li><li id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_li1616163783519">Data Studio GUI client</li><li id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_li18378537185315">DSC migration tool</li></ul>
|
||||||
<p id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_p10578144195319">The gsql and Data Studio client tools have multiple historical versions. You can click <strong id="EN-US_TOPIC_0000001515111185__b1271469333357">Historical Version</strong> to download the tools based on the cluster version. GaussDB(DWS) clusters are compatible with earlier versions of gsql and Data Studio tools. You are advised to download the matching tool version based on the cluster version.</p>
|
<p id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_p10578144195319">The gsql and Data Studio client tools have multiple historical versions. You can click <strong id="EN-US_TOPIC_0000001515111185__b1271469333357">Historical Version</strong> to download the tools based on the cluster version. GaussDB(DWS) clusters are compatible with earlier versions of gsql and Data Studio tools. You are advised to download the matching tool version based on the cluster version.</p>
|
||||||
<div class="fignone" id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_fig11659233205610"><span class="figcap"><b>Figure 1 </b>Downloading the DSC client</span><br><span><img id="EN-US_TOPIC_0000001515111185__image0525949173517" src="figure/en-us_image_0000001514991873.png"></span></div>
|
<div class="fignone" id="EN-US_TOPIC_0000001515111185__en-us_topic_0151469169_fig11659233205610"><span class="figcap"><b>Figure 1 </b>Downloading the DSC client</span><br><span><img id="EN-US_TOPIC_0000001515111185__image0525949173517" src="figure/en-us_image_0000001514991873.png"></span></div>
|
||||||
|
@ -102,7 +102,7 @@
|
|||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l493042eadb9d4cb1954fb40200c4c074">-c, --clean<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a2ace259039904a74acc0de86c96e25a7"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l493042eadb9d4cb1954fb40200c4c074"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l493042eadb9d4cb1954fb40200c4c074"></a>Before writing the command of creating database objects into the backup file, write the command of clearing (deleting) database objects to the backup files. (If no objects exist in the target database, <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706104228">gs_restore</strong> probably displays some error information.)</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l493042eadb9d4cb1954fb40200c4c074">-c, --clean<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a2ace259039904a74acc0de86c96e25a7"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l493042eadb9d4cb1954fb40200c4c074"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l493042eadb9d4cb1954fb40200c4c074"></a>Before writing the command of creating database objects into the backup file, write the command of clearing (deleting) database objects to the backup files. (If no objects exist in the target database, <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706104228">gs_restore</strong> probably displays some error information.)</p>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a98301b3929dd43b496b5e8cff9c2766d">This parameter is used only for the plain-text format. For the archive format, you can specify the option when using <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706165935">gs_restore</strong>.</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a98301b3929dd43b496b5e8cff9c2766d">This parameter is used only for the plain-text format. For the archive format, you can specify the option when using <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706165935">gs_restore</strong>.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l757826bcd8bd4cb1ab52f81847ae2e4d">-C, --create<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_abc8c3092dcf748d483f6c69a047d92f7"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l757826bcd8bd4cb1ab52f81847ae2e4d"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l757826bcd8bd4cb1ab52f81847ae2e4d"></a>The backup file content starts with the commands of creating the database and connecting to the created database. (If the script is in this format, any database to be connected is allowed before running the script.)</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l757826bcd8bd4cb1ab52f81847ae2e4d">-C, --create<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_abc8c3092dcf748d483f6c69a047d92f7"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l757826bcd8bd4cb1ab52f81847ae2e4d"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l757826bcd8bd4cb1ab52f81847ae2e4d"></a>The backup file content starts with the commands of creating the database and connecting to the created database. (If the script is in this format, any database to be connected is allowed before running the script.)</p>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a8cda7499dc6246dabd3389645c54807f">This parameter is used only for the plain-text format. For the archive format, you can specify the option when using <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b354703920">gs_restore</strong>.</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a8cda7499dc6246dabd3389645c54807f">This parameter is used only for the plain-text format. For the archive format, you can specify the option when using <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b1607058518">gs_restore</strong>.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5bf8cf3fe7ed4904b9a97c70dc0cab90">-E, --encoding=ENCODING<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a9a87dc9d529944ce83d75f6491e26a6a"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5bf8cf3fe7ed4904b9a97c70dc0cab90"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5bf8cf3fe7ed4904b9a97c70dc0cab90"></a>Creates a dump file in the specified character set encoding. By default, the dump file is created in the database encoding. (Alternatively, you can set the environment variable <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706142624">PGCLIENTENCODING</strong> to the required dump encoding.)</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5bf8cf3fe7ed4904b9a97c70dc0cab90">-E, --encoding=ENCODING<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a9a87dc9d529944ce83d75f6491e26a6a"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5bf8cf3fe7ed4904b9a97c70dc0cab90"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5bf8cf3fe7ed4904b9a97c70dc0cab90"></a>Creates a dump file in the specified character set encoding. By default, the dump file is created in the database encoding. (Alternatively, you can set the environment variable <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706142624">PGCLIENTENCODING</strong> to the required dump encoding.)</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l2edfade1e42b4102ac3bbf96beaf5138">-n, --schema=SCHEMA<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a17ed38251b3041eea1f4208c29bab2bc"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l2edfade1e42b4102ac3bbf96beaf5138"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l2edfade1e42b4102ac3bbf96beaf5138"></a>Dumps only schemas matching the schema names. This option contains the schema and all its contained objects. If this option is not specified, all non-system schemas in the target database will be dumped. Multiple schemas can be selected by specifying multiple <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b4500171018195">-n</strong> options. The schema parameter is interpreted as a pattern according to the same rules used by the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270614330">\d</strong> command of <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706193434">gsql</strong>. Therefore, multiple schemas can also be selected by writing wildcard characters in the pattern. When you use wildcards, quote the pattern to prevent the shell from expanding the wildcards.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l2edfade1e42b4102ac3bbf96beaf5138">-n, --schema=SCHEMA<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a17ed38251b3041eea1f4208c29bab2bc"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l2edfade1e42b4102ac3bbf96beaf5138"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l2edfade1e42b4102ac3bbf96beaf5138"></a>Dumps only schemas matching the schema names. This option contains the schema and all its contained objects. If this option is not specified, all non-system schemas in the target database will be dumped. Multiple schemas can be selected by specifying multiple <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b4500171018195">-n</strong> options. The schema parameter is interpreted as a pattern according to the same rules used by the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270614330">\d</strong> command of <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706193434">gsql</strong>. Therefore, multiple schemas can also be selected by writing wildcard characters in the pattern. When you use wildcards, quote the pattern to prevent the shell from expanding the wildcards.</p>
|
||||||
<div class="note" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_n6d4864b3a59042e68d23355f32d76127"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_u279f1965bb6d49bbb2d3971340f3be4f"><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l21a88163e340424a8e8e3a06d5ac54b6">If <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b195056102194">-n</strong> is specified, <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706104459">gs_dump</strong> does not dump any other database objects that the selected schemas might depend upon. Therefore, there is no guarantee that the results of a specific-schema dump can be automatically restored to an empty database.</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l917bf558b9c045db83721756ceee3d2b">If <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b25071710151915">-n</strong> is specified, the non-schema objects are not dumped.</li></ul>
|
<div class="note" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_n6d4864b3a59042e68d23355f32d76127"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_u279f1965bb6d49bbb2d3971340f3be4f"><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l21a88163e340424a8e8e3a06d5ac54b6">If <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b195056102194">-n</strong> is specified, <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706104459">gs_dump</strong> does not dump any other database objects that the selected schemas might depend upon. Therefore, there is no guarantee that the results of a specific-schema dump can be automatically restored to an empty database.</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l917bf558b9c045db83721756ceee3d2b">If <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b25071710151915">-n</strong> is specified, the non-schema objects are not dumped.</li></ul>
|
||||||
@ -117,10 +117,10 @@
|
|||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a594cc5d46a5249b9943d05bc238af52b">Specifies <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706103857">-N exclude schema name</strong> to exclude multiple schemas while dumping.</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a594cc5d46a5249b9943d05bc238af52b">Specifies <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706103857">-N exclude schema name</strong> to exclude multiple schemas while dumping.</p>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a4d48f9c9975f4430ad2773ab0109ecee">For example:</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a4d48f9c9975f4430ad2773ab0109ecee">For example:</p>
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_sa4e71427c95841eb837f2b01639fdb1a">gs_dump -h <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a2abbc821e8d148839a1bc8231f54fc31">host_name </em>-p <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a5427ec5c563645448560ccfc0e6108fd">port_number</em> postgres -f <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a4b377f77db9646f9afb23a170d4eaefc">backup/bkp_shl2.sql</em> -N <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_aee8473ce660c4b6f94d382ce472690b5">sch1 </em>-N <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_abe5d172fd9cb461b8c63953440143242">sch2</em></pre>
|
<pre class="screen" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_sa4e71427c95841eb837f2b01639fdb1a">gs_dump -h <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a2abbc821e8d148839a1bc8231f54fc31">host_name </em>-p <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a5427ec5c563645448560ccfc0e6108fd">port_number</em> postgres -f <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a4b377f77db9646f9afb23a170d4eaefc">backup/bkp_shl2.sql</em> -N <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_aee8473ce660c4b6f94d382ce472690b5">sch1 </em>-N <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_abe5d172fd9cb461b8c63953440143242">sch2</em></pre>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a9adce382df374d88a2484f84c13d41f4">In the preceding example, <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b966962279">sch1</strong> and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b1750882827">sch2</strong> will be excluded during the dumping.</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a9adce382df374d88a2484f84c13d41f4">In the preceding example, <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b830910566">sch1</strong> and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b295480332">sch2</strong> will be excluded during the dumping.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l73c3b38285204d23a40e45a19abebb36">-o, --oids<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a04893494db4341b18c1c002caf247781"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l73c3b38285204d23a40e45a19abebb36"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l73c3b38285204d23a40e45a19abebb36"></a>Dumps object identifiers (OIDs) as parts of the data in each table. Use this parameter if your application references the OID columns in some way (for example, in a foreign key constraint). If the preceding situation does not occur, do not use this parameter.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l73c3b38285204d23a40e45a19abebb36">-o, --oids<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a04893494db4341b18c1c002caf247781"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l73c3b38285204d23a40e45a19abebb36"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l73c3b38285204d23a40e45a19abebb36"></a>Dumps object identifiers (OIDs) as parts of the data in each table. Use this parameter if your application references the OID columns in some way (for example, in a foreign key constraint). If the preceding situation does not occur, do not use this parameter.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l593085ea3dd640e781654277c10b398e">-O, --no-owner<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a7e98a262fd344692b8db673d4cce809e"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l593085ea3dd640e781654277c10b398e"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l593085ea3dd640e781654277c10b398e"></a>Do not output commands to set ownership of objects to match the original database. By default, <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706152612">gs_dump</strong> issues the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b653514102197">ALTER OWNER</strong> or <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b165352010181914">SET SESSION AUTHORIZATION</strong> command to set ownership of created database objects. These statements will fail when the script is running unless it is started by a system administrator (or the same user that owns all of the objects in the script). To make a script that can be stored by any user and give the user ownership of all objects, specify <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b8535141001911">-O</strong>.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l593085ea3dd640e781654277c10b398e">-O, --no-owner<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a7e98a262fd344692b8db673d4cce809e"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l593085ea3dd640e781654277c10b398e"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l593085ea3dd640e781654277c10b398e"></a>Do not output commands to set ownership of objects to match the original database. By default, <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706152612">gs_dump</strong> issues the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b653514102197">ALTER OWNER</strong> or <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b165352010181914">SET SESSION AUTHORIZATION</strong> command to set ownership of created database objects. These statements will fail when the script is running unless it is started by a system administrator (or the same user that owns all of the objects in the script). To make a script that can be stored by any user and give the user ownership of all objects, specify <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b8535141001911">-O</strong>.</p>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a831c40c97f9e4a87963f10f3eab38768">This parameter is used only for the plain-text format. For the archive format, you can specify the option when using <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b333884968">gs_restore</strong>.</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a831c40c97f9e4a87963f10f3eab38768">This parameter is used only for the plain-text format. For the archive format, you can specify the option when using <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b1696801554">gs_restore</strong>.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l95dba45fc0df4807a8b924830aafbaf5"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l95dba45fc0df4807a8b924830aafbaf5"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l95dba45fc0df4807a8b924830aafbaf5"></a>-s, --schema-only<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a850a1f2138a24bc2bf618377feb617b1"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l95dba45fc0df4807a8b924830aafbaf5"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l95dba45fc0df4807a8b924830aafbaf5"></a>Dumps only the object definition (schema) but not data.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l95dba45fc0df4807a8b924830aafbaf5"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l95dba45fc0df4807a8b924830aafbaf5"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l95dba45fc0df4807a8b924830aafbaf5"></a>-s, --schema-only<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a850a1f2138a24bc2bf618377feb617b1"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l95dba45fc0df4807a8b924830aafbaf5"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l95dba45fc0df4807a8b924830aafbaf5"></a>Dumps only the object definition (schema) but not data.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l17d8463b33874356aa1900b20fc2124b">-S, --sysadmin=NAME<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_ab7a0d847e0ca47bdb5a8c2a6ce4d9fc2"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l17d8463b33874356aa1900b20fc2124b"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l17d8463b33874356aa1900b20fc2124b"></a>Specifies a reserved port for function expansion. This parameter is not recommended.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l17d8463b33874356aa1900b20fc2124b">-S, --sysadmin=NAME<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_ab7a0d847e0ca47bdb5a8c2a6ce4d9fc2"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l17d8463b33874356aa1900b20fc2124b"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l17d8463b33874356aa1900b20fc2124b"></a>Specifies a reserved port for function expansion. This parameter is not recommended.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l4d1d2fc1876d4d779af266e5e6f0f588">-t, --table=TABLE<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a5715a36dd8294abb88a3ce765be2a1d4"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l4d1d2fc1876d4d779af266e5e6f0f588"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l4d1d2fc1876d4d779af266e5e6f0f588"></a>Specifies a list of tables, views, sequences, or foreign tables to be dumped. You can use multiple <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706103025">-t</strong> parameters or wildcard characters to specify tables.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l4d1d2fc1876d4d779af266e5e6f0f588">-t, --table=TABLE<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a5715a36dd8294abb88a3ce765be2a1d4"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l4d1d2fc1876d4d779af266e5e6f0f588"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l4d1d2fc1876d4d779af266e5e6f0f588"></a>Specifies a list of tables, views, sequences, or foreign tables to be dumped. You can use multiple <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706103025">-t</strong> parameters or wildcard characters to specify tables.</p>
|
||||||
@ -140,7 +140,7 @@
|
|||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a74c85a7dea0545bea8466176cd2ba61f">When <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706103231">-t</strong> and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706103240">-T</strong> are input, the object will be stored in <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270610337">-t</strong> list not <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706103320">-T</strong> table object. </p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a74c85a7dea0545bea8466176cd2ba61f">When <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706103231">-t</strong> and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706103240">-T</strong> are input, the object will be stored in <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270610337">-t</strong> list not <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706103320">-T</strong> table object. </p>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_ae78efa74602d4e3296597b2beda78b14">For example:</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_ae78efa74602d4e3296597b2beda78b14">For example:</p>
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_s9a41b3ba9b7c4e0e8a9d7271e53899dc">gs_dump -h <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a60d18f313cb74329b20278c7b49b86cb">host_name </em>-p <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_aff8b29f4b4cd4af7a4122b15d18c82b3">port_number </em>postgres -f <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a886a45d020b0420abe219bace699115c">backup/bkp_shl2.sql</em> -T <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a307c74e60bfd45378fd04d297e8b25b6">table1 </em>-T <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a2fcc7b860a5347cfbf7dc949827c544d">table2</em></pre>
|
<pre class="screen" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_s9a41b3ba9b7c4e0e8a9d7271e53899dc">gs_dump -h <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a60d18f313cb74329b20278c7b49b86cb">host_name </em>-p <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_aff8b29f4b4cd4af7a4122b15d18c82b3">port_number </em>postgres -f <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a886a45d020b0420abe219bace699115c">backup/bkp_shl2.sql</em> -T <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a307c74e60bfd45378fd04d297e8b25b6">table1 </em>-T <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a2fcc7b860a5347cfbf7dc949827c544d">table2</em></pre>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a29d93e37c1484037b2aff1c9496f4d5a">In the preceding example, <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b2112207273">table1</strong> and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b1114765244">table2</strong> are excluded from the dumping.</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a29d93e37c1484037b2aff1c9496f4d5a">In the preceding example, <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b1637313043">table1</strong> and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b661015151">table2</strong> are excluded from the dumping.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li1660943284211">--exclude-table-file=FILENAME<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_p6611193224217"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li1660943284211"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_li1660943284211"></a>Specifies the table file to be dumped.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li1660943284211">--exclude-table-file=FILENAME<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_p6611193224217"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li1660943284211"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_li1660943284211"></a>Specifies the table file to be dumped.</p>
|
||||||
<div class="note" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_note5405317412027"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_p1671652312027">Same as <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270616249">--include-table-file</strong>, the content format of this parameter is as follows:</p>
|
<div class="note" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_note5405317412027"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_p1671652312027">Same as <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270616249">--include-table-file</strong>, the content format of this parameter is as follows:</p>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_p45070950121823">schema1.table1</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_p45070950121823">schema1.table1</p>
|
||||||
@ -158,7 +158,7 @@
|
|||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_afb03ca4a7ad24605ac8fcc599a11369c">However, since this option generates an independent command for each row, an error in reloading a row causes only the loss of the row rather than the entire table content. The restoration may fail if you rearrange the column order. The <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b56083102194">--column-inserts</strong> option is unaffected against column order changes, though even slower.</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_afb03ca4a7ad24605ac8fcc599a11369c">However, since this option generates an independent command for each row, an error in reloading a row causes only the loss of the row rather than the entire table content. The restoration may fail if you rearrange the column order. The <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b56083102194">--column-inserts</strong> option is unaffected against column order changes, though even slower.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lf6f8af6ed81a4427830452109a9e3aef">--no-security-labels<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a284f69a219574e40b97088f0893814f2"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lf6f8af6ed81a4427830452109a9e3aef"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_lf6f8af6ed81a4427830452109a9e3aef"></a>Specifies a reserved port for function expansion. This parameter is not recommended.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lf6f8af6ed81a4427830452109a9e3aef">--no-security-labels<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a284f69a219574e40b97088f0893814f2"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lf6f8af6ed81a4427830452109a9e3aef"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_lf6f8af6ed81a4427830452109a9e3aef"></a>Specifies a reserved port for function expansion. This parameter is not recommended.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l69119b8d0d5f4d0386f619fb1799ac3b">--no-tablespaces<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a3b5acff5871d4d248828071279485a89"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l69119b8d0d5f4d0386f619fb1799ac3b"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l69119b8d0d5f4d0386f619fb1799ac3b"></a>Does not issue commands to select tablespaces. All the objects will be created during the restoration process, no matter which tablespace is selected when using this option.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l69119b8d0d5f4d0386f619fb1799ac3b">--no-tablespaces<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a3b5acff5871d4d248828071279485a89"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l69119b8d0d5f4d0386f619fb1799ac3b"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l69119b8d0d5f4d0386f619fb1799ac3b"></a>Does not issue commands to select tablespaces. All the objects will be created during the restoration process, no matter which tablespace is selected when using this option.</p>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_af50e9149313b486bbb7507916272a960">This parameter is used only for the plain-text format. For the archive format, you can specify the option when using <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b670397993">gs_restore</strong>.</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_af50e9149313b486bbb7507916272a960">This parameter is used only for the plain-text format. For the archive format, you can specify the option when using <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b816603182">gs_restore</strong>.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l361e8c9ca1134d0d8aa489c59635807a">--no-unlogged-table-data<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a8d7eb069923e4148866462c9b1ac783c"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l361e8c9ca1134d0d8aa489c59635807a"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l361e8c9ca1134d0d8aa489c59635807a"></a>Specifies a reserved port for function expansion. This parameter is not recommended.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l361e8c9ca1134d0d8aa489c59635807a">--no-unlogged-table-data<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a8d7eb069923e4148866462c9b1ac783c"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l361e8c9ca1134d0d8aa489c59635807a"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l361e8c9ca1134d0d8aa489c59635807a"></a>Specifies a reserved port for function expansion. This parameter is not recommended.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l950a11105ad34614a8b88503cb764513">--non-lock-table<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a3ab53f45ed814b358d799ba1ee4f3c6e"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l950a11105ad34614a8b88503cb764513"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l950a11105ad34614a8b88503cb764513"></a>Specifies a reserved port for function expansion. This parameter is not recommended.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l950a11105ad34614a8b88503cb764513">--non-lock-table<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a3ab53f45ed814b358d799ba1ee4f3c6e"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l950a11105ad34614a8b88503cb764513"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l950a11105ad34614a8b88503cb764513"></a>Specifies a reserved port for function expansion. This parameter is not recommended.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l99c2769ab3af4df1a179ec431d12ddc5">--quote-all-identifiers<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a5512fd74ef1d44a1bb1ad9d2c7e25ae3"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l99c2769ab3af4df1a179ec431d12ddc5"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l99c2769ab3af4df1a179ec431d12ddc5"></a>Forcibly quotes all identifiers. This parameter is useful when you dump a database for migration to a later version, in which additional keywords may be introduced.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l99c2769ab3af4df1a179ec431d12ddc5">--quote-all-identifiers<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a5512fd74ef1d44a1bb1ad9d2c7e25ae3"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l99c2769ab3af4df1a179ec431d12ddc5"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l99c2769ab3af4df1a179ec431d12ddc5"></a>Forcibly quotes all identifiers. This parameter is useful when you dump a database for migration to a later version, in which additional keywords may be introduced.</p>
|
||||||
@ -172,14 +172,14 @@
|
|||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lbb7ee390db224cd09c7144e8a101c79d">--include-nodes<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_aa13cc0048c3f4c069a3c9c88b5c024bc"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lbb7ee390db224cd09c7144e8a101c79d"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_lbb7ee390db224cd09c7144e8a101c79d"></a>Includes the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706162457">TO NODE</strong> or <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270616257">TO GROUP</strong> statement in the dumped <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706162512">CREATE TABLE</strong> or <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706162521">CREATE FOREIGN TABLE</strong> statement. This parameter is valid only for HDFS and foreign tables.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lbb7ee390db224cd09c7144e8a101c79d">--include-nodes<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_aa13cc0048c3f4c069a3c9c88b5c024bc"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lbb7ee390db224cd09c7144e8a101c79d"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_lbb7ee390db224cd09c7144e8a101c79d"></a>Includes the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706162457">TO NODE</strong> or <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270616257">TO GROUP</strong> statement in the dumped <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706162512">CREATE TABLE</strong> or <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706162521">CREATE FOREIGN TABLE</strong> statement. This parameter is valid only for HDFS and foreign tables.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l6720a7a77375405c8f96aacfbe1e88c7">--include-extensions<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_ab589fb2d39b94c3bbf6bd7007274bd9f"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l6720a7a77375405c8f96aacfbe1e88c7"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l6720a7a77375405c8f96aacfbe1e88c7"></a>Includes extensions in the dump.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l6720a7a77375405c8f96aacfbe1e88c7">--include-extensions<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_ab589fb2d39b94c3bbf6bd7007274bd9f"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l6720a7a77375405c8f96aacfbe1e88c7"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l6720a7a77375405c8f96aacfbe1e88c7"></a>Includes extensions in the dump.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li10126814103311">--include-depend-objs<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_p24032464103311"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li10126814103311"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_li10126814103311"></a>Includes information about the objects that depend on the specified object in the backup result. This parameter takes effect only if the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706162747">-t</strong> or <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706162756">--include-table-file</strong> parameter is specified.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li10126814103311">--include-depend-objs<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_p24032464103311"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li10126814103311"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_li10126814103311"></a>Includes information about the objects that depend on the specified object in the backup result. This parameter takes effect only if the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706162747">-t</strong> or <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706162756">--include-table-file</strong> parameter is specified.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li25147785103315">--exclude-self<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_p25003480103315"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li25147785103315"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_li25147785103315"></a>Excludes information about the specified object from the backup result. This parameter takes effect only if the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b1203095461">-t</strong> or <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b793745736">--include-table-file</strong> parameter is specified.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li25147785103315">--exclude-self<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_p25003480103315"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li25147785103315"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_li25147785103315"></a>Excludes information about the specified object from the backup result. This parameter takes effect only if the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b211198203">-t</strong> or <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b1099060448">--include-table-file</strong> parameter is specified.</p>
|
||||||
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5a182ad189cf475cbcc7692d0d2f930b">--dont-overwrite-file<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a18833c295c0b4521a5bf879f4f82d2c4"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5a182ad189cf475cbcc7692d0d2f930b"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5a182ad189cf475cbcc7692d0d2f930b"></a>The existing files in plain-text, .tar, and custom formats will be overwritten. This parameter is not used for the directory format.</p>
|
</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5a182ad189cf475cbcc7692d0d2f930b">--dont-overwrite-file<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a18833c295c0b4521a5bf879f4f82d2c4"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5a182ad189cf475cbcc7692d0d2f930b"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5a182ad189cf475cbcc7692d0d2f930b"></a>The existing files in plain-text, .tar, and custom formats will be overwritten. This parameter is not used for the directory format.</p>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_ac89dc1996fe44de9bd4d4fecc7fa05bb">For example:</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_ac89dc1996fe44de9bd4d4fecc7fa05bb">For example:</p>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_en-us_topic_0059777770_p147937469478">Assume that the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706205216">backup.sql</strong> file exists in the current directory. If you specify <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706205236">-f backup.sql</strong> in the input command, and the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706205251">backup.sql</strong> file is generated in the current directory, the original file will be overwritten.</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_en-us_topic_0059777770_p147937469478">Assume that the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706205216">backup.sql</strong> file exists in the current directory. If you specify <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706205236">-f backup.sql</strong> in the input command, and the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706205251">backup.sql</strong> file is generated in the current directory, the original file will be overwritten.</p>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a632b5afc4e954594a5e748ae02ca7c27">If the backup file already exists and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b93415351123">--dont-overwrite-file</strong> is specified, an error will be reported with the message that the dump file exists.</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a632b5afc4e954594a5e748ae02ca7c27">If the backup file already exists and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b93415351123">--dont-overwrite-file</strong> is specified, an error will be reported with the message that the dump file exists.</p>
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_s364852a7298e4ce98a641a518e3d4e26">gs_dump -p <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a07dd03be788f42aba513b1ad55241789">port_number </em>postgres -f <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a0a807ac9298948049820364ff9a604ec">backup.sql</em> -F <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a99af68bd9e1e4f969c0f0298c445af09">plain </em>--dont-overwrite-file</pre>
|
<pre class="screen" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_s364852a7298e4ce98a641a518e3d4e26">gs_dump -p <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a07dd03be788f42aba513b1ad55241789">port_number </em>postgres -f <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a0a807ac9298948049820364ff9a604ec">backup.sql</em> -F <em id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a99af68bd9e1e4f969c0f0298c445af09">plain </em>--dont-overwrite-file</pre>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
<div class="note" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_ndc41db057b574fd4b6382c18a9f21319"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_u238fa5dde2a648339323177fb625cbcf"><li class="text" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l1e8a359109394174be6cade2cb6d6be0">The <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b1874535132716">-s/--schema-only</strong> and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b18874935172714">-a/--data-only</strong> parameters do not coexist.</li><li class="text" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l78a5ba61f0354bdc8c5bc135df988cc3">The <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706114846">-c/--clean</strong> and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706114855">-a/--data-only</strong> parameters do not coexist.</li><li class="text" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lae6198fea53d492ab9d30325326f1409"><strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706115149">--inserts/--column-inserts</strong> and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706115158">-o/--oids</strong> do not coexist, because <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706204543">OIDS</strong> cannot be set using the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706115240">INSERT</strong> statement.</li><li class="text" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5b9617b9647645a4aeb943b79f68ee5c"><strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270611541">--role</strong> must be used in conjunction with <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706115417">--rolepassword</strong>.</li><li class="text" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lf7ded4ee55fe4ad99dd9308e81982eb1"><strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706115436">--binary-upgrade-usermap</strong> must be used in conjunction with <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706115447">--binary-upgrade</strong>.</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li1029723212206"><strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270616304">--include-depend-objs</strong>/<strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706163012">--exclude-self</strong> takes effect only when <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706163029">-t</strong>/<strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706163034">--include-table-file</strong> is specified.</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li19899995122035"><strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b1422700651">--exclude-self </strong>must be used with <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270616293">--include-depend-objs</strong>.</li></ul>
|
<div class="note" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_ndc41db057b574fd4b6382c18a9f21319"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_u238fa5dde2a648339323177fb625cbcf"><li class="text" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l1e8a359109394174be6cade2cb6d6be0">The <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b1874535132716">-s/--schema-only</strong> and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b18874935172714">-a/--data-only</strong> parameters do not coexist.</li><li class="text" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l78a5ba61f0354bdc8c5bc135df988cc3">The <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706114846">-c/--clean</strong> and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706114855">-a/--data-only</strong> parameters do not coexist.</li><li class="text" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lae6198fea53d492ab9d30325326f1409"><strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706115149">--inserts/--column-inserts</strong> and <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706115158">-o/--oids</strong> do not coexist, because <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706204543">OIDS</strong> cannot be set using the <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706115240">INSERT</strong> statement.</li><li class="text" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_l5b9617b9647645a4aeb943b79f68ee5c"><strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270611541">--role</strong> must be used in conjunction with <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706115417">--rolepassword</strong>.</li><li class="text" id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lf7ded4ee55fe4ad99dd9308e81982eb1"><strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706115436">--binary-upgrade-usermap</strong> must be used in conjunction with <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706115447">--binary-upgrade</strong>.</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li1029723212206"><strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270616304">--include-depend-objs</strong>/<strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706163012">--exclude-self</strong> takes effect only when <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706163029">-t</strong>/<strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b842352706163034">--include-table-file</strong> is specified.</li><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_li19899995122035"><strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_b351354556">--exclude-self </strong>must be used with <strong id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_b84235270616293">--include-depend-objs</strong>.</li></ul>
|
||||||
</div></div>
|
</div></div>
|
||||||
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a2db4ae9e0137437ba9cfceddbc0d1a04">Connection parameters:</p>
|
<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_a2db4ae9e0137437ba9cfceddbc0d1a04">Connection parameters:</p>
|
||||||
<ul id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_u577750c92d1b474281b73cae85165fd2"><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lc3085939657a4485938845ea4c93321f">-h, --host=HOSTNAME<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_aa12534375b8f40a2bad20cac6c6aad3a"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lc3085939657a4485938845ea4c93321f"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_lc3085939657a4485938845ea4c93321f"></a>Specifies the host name. If the value begins with a slash (/), it is used as the directory for the UNIX domain socket. The default is taken from the PGHOST environment variable (if available). Otherwise, a Unix domain socket connection is attempted.</p>
|
<ul id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_u577750c92d1b474281b73cae85165fd2"><li id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lc3085939657a4485938845ea4c93321f">-h, --host=HOSTNAME<p id="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_aa12534375b8f40a2bad20cac6c6aad3a"><a name="EN-US_TOPIC_0000001188362608__en-us_topic_0000001188680980_en-us_topic_0000001099130242_lc3085939657a4485938845ea4c93321f"></a><a name="en-us_topic_0000001188680980_en-us_topic_0000001099130242_lc3085939657a4485938845ea4c93321f"></a>Specifies the host name. If the value begins with a slash (/), it is used as the directory for the UNIX domain socket. The default is taken from the PGHOST environment variable (if available). Otherwise, a Unix domain socket connection is attempted.</p>
|
||||||
|
@ -10,6 +10,8 @@ gds_user <strong id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_
|
|||||||
gds_user 129003 118723 0 15:04 pts/0 00:00:00 grep gds</pre>
|
gds_user 129003 118723 0 15:04 pts/0 00:00:00 grep gds</pre>
|
||||||
</li><li id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_ld82fed6c87864229a43810eadc42d960">Run the <strong id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_b2953641315517">kill</strong> command to stop GDS. <strong id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_b84235270611429">128954</strong> in the command is the GDS process ID.<pre class="screen" id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_s5e005701d4174c2eb342914f787e68b2"><strong id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_en-us_topic_0117443414_b393406761610">kill -9</strong> <em id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_en-us_topic_0117443414_i185217721610">128954</em></pre>
|
</li><li id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_ld82fed6c87864229a43810eadc42d960">Run the <strong id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_b2953641315517">kill</strong> command to stop GDS. <strong id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_b84235270611429">128954</strong> in the command is the GDS process ID.<pre class="screen" id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_s5e005701d4174c2eb342914f787e68b2"><strong id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_en-us_topic_0117443414_b393406761610">kill -9</strong> <em id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_en-us_topic_0117443414_i185217721610">128954</em></pre>
|
||||||
</li></ol>
|
</li></ol>
|
||||||
|
</li><li id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_leeb73a0092bb462097e74188c94000df">If GDS is started using the <strong id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_b2111042418">gds_ctl.py</strong> command, run the following commands to stop GDS:<pre class="screen" id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_s56ea44304d2e40d5a29182df1b76b81d"><strong id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_en-us_topic_0117443414_b134903531610">cd </strong><em id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_en-us_topic_0117443414_i543043151610">/opt/bin/dws/gds</em>/bin
|
||||||
|
<strong id="EN-US_TOPIC_0000001503523556__en-us_topic_0000001188642130_en-us_topic_0117443414_b189767881610">python3 gds_ctl.py stop</strong></pre>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
</p></li></ol>
|
</p></li></ol>
|
||||||
</div>
|
</div>
|
||||||
|
@ -8,17 +8,7 @@
|
|||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody><tr id="EN-US_TOPIC_0000001376268154__row117533514423"><td class="cellrowborder" valign="top" width="20.59%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0000001376268154__p775135144212">2023-05-04</p>
|
<tbody><tr id="EN-US_TOPIC_0000001376268154__row117533514423"><td class="cellrowborder" valign="top" width="20.59%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0000001376268154__p775135144212">2024-04-17</p>
|
||||||
</td>
|
|
||||||
<td class="cellrowborder" valign="top" width="79.41%" headers="mcps1.3.1.1.3.1.2 "><p id="EN-US_TOPIC_0000001376268154__p137543514212">This issue is the third official release,adapts to DWS 8.2.0.100.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr id="EN-US_TOPIC_0000001376268154__row117533514423"><td class="cellrowborder" valign="top" width="20.59%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0000001376268154__p775135144212">2022-08-11</p>
|
|
||||||
</td>
|
|
||||||
<td class="cellrowborder" valign="top" width="79.41%" headers="mcps1.3.1.1.3.1.2 "><p id="EN-US_TOPIC_0000001376268154__p137543514212">This issue is the first second release,adapts to DWS 8.1.1.202.</p>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr id="EN-US_TOPIC_0000001376268154__row117533514423"><td class="cellrowborder" valign="top" width="20.59%" headers="mcps1.3.1.1.3.1.1 "><p id="EN-US_TOPIC_0000001376268154__p775135144212">2022-08-11</p>
|
|
||||||
</td>
|
</td>
|
||||||
<td class="cellrowborder" valign="top" width="79.41%" headers="mcps1.3.1.1.3.1.2 "><p id="EN-US_TOPIC_0000001376268154__p137543514212">This issue is the first official release.</p>
|
<td class="cellrowborder" valign="top" width="79.41%" headers="mcps1.3.1.1.3.1.2 "><p id="EN-US_TOPIC_0000001376268154__p137543514212">This issue is the first official release.</p>
|
||||||
</td>
|
</td>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,46 +0,0 @@
|
|||||||
<a name="EN-US_TOPIC_0000001188521054"></a><a name="EN-US_TOPIC_0000001188521054"></a>
|
|
||||||
|
|
||||||
<h1 class="topictitle1">Netezza SQL Migration</h1>
|
|
||||||
<div id="body8662426"><p id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_p454993071412">DSC supports the migration from Netezza to <span id="EN-US_TOPIC_0000001188521054__text1958020141713">GaussDB(DWS)</span>, including the migration of schemas, DML, queries, system functions, and PL/SQL.</p>
|
|
||||||
<p id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_p16890121081518">Run the following commands to set the source database, input and output folder paths, log paths, application language, and conversion type:</p>
|
|
||||||
<p id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_p187765012417"><strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0237712541_b133221738201815">Linux</strong>:</p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_screen63489947"><strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b369319221216">./runDSC.sh</strong><strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b24631974"> </strong>
|
|
||||||
<strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b1331601174">--source-db</strong> Netezza
|
|
||||||
[<strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b4311807719">--input-folder</strong> <input-script-path>]
|
|
||||||
[<strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b15311307712">--output-folder</strong> <output-script-path>]
|
|
||||||
[<strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b7312006713">--log-folder</strong> <log-path>]
|
|
||||||
[<strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b17311201874">--application-lang </strong>SQL]
|
|
||||||
[<strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b10311605716">--conversion-type</strong> <conversion-type>]</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_p117771001043"><strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0237712541_b1610111412185">Windows</strong>:</p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_screen1664272915183"><strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b8642929101811">runDSC.bat</strong>
|
|
||||||
<strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b56421029141818">--source-db</strong> Netezza
|
|
||||||
[<strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b31431521467">--input-folder</strong> <input-script-path>]
|
|
||||||
[<strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b10513115365819">--output-folder</strong> <output-script-path>]
|
|
||||||
[<strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b14513753165814">--log-folder</strong> <log-path>]
|
|
||||||
[<strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b1960615321167">--application-lang </strong>SQL]
|
|
||||||
[<strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b3438184019619">--conversion-type</strong> <conversion-type>]</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_p1523717329515">For example:</p>
|
|
||||||
<p id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_p14888715419"><strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b1349819221540">Linux</strong>:</p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_screen47562386">./runDSC.sh --source-db Netezza --input-folder /opt/DSC/DSC/input/mysql/ --output-folder /opt/DSC/DSC/output/ --application-lang SQL --conversion-type BULK --log-folder/opt/DSC/DSC/log/</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_p78261431542"><strong id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_b229720256412">Windows</strong>:</p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_screen1593715322417">runDSC.bat --source-db Netezza--target-db GaussDBA --input-folder D:\test\conversion\input --output-folder D:\test\conversion\output --log-folder D:\test\conversion\log --application-lang SQL --conversion-type Bulk</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_p82261937141616">During the execution of DSC, the migration summary, including the progress and completion status, is displayed on the console. Execution information and errors are written into <a href="dws_mt_0189.html">log files</a>.</p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_screen5239232851">********************** 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>
|
|
||||||
<p id="EN-US_TOPIC_0000001188521054__en-us_topic_0218440307_p18173194532018">For details about how to migrate Netezza SQL using DSC, see <a href="dws_mt_0035.html">Migrating Data Using DSC</a>.</p>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="familylinks">
|
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_mt_0031.html">Using DSC</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,73 +0,0 @@
|
|||||||
<a name="EN-US_TOPIC_0000001234042109"></a><a name="EN-US_TOPIC_0000001234042109"></a>
|
|
||||||
|
|
||||||
<h1 class="topictitle1">MySQL SQL Migration</h1>
|
|
||||||
<div id="body8662426"><p id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_p8060118">DSC supports the migration from MySQL to <span id="EN-US_TOPIC_0000001234042109__text1958020141713">GaussDB(DWS)</span>, including the migration of schemas, DML, queries, system functions, and PL/SQL.</p>
|
|
||||||
<div class="section" id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_section158342208320"><h4 class="sectiontitle">Performing MySQL Migration on Linux</h4><p id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_p67111324154310">Run the following command on Linux to start the migration. You need to specify the source database, input and output folder paths, and log paths. The application language can be SQL or Perl. The default language is SQL. The migration type can be <strong id="EN-US_TOPIC_0000001234042109__b18749120182711">Bulk</strong> or <strong id="EN-US_TOPIC_0000001234042109__b02515234274">BLogic</strong>.</p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_screen18944141010262">./runDSC.sh
|
|
||||||
--source-db MySQL
|
|
||||||
[--input-folder <input-script-path>]
|
|
||||||
[--output-folder <output-script-path>]
|
|
||||||
[--application-lang SQL]
|
|
||||||
[--conversion-type <conversion-type>]
|
|
||||||
[--log-folder <log-path>]</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_p1967154715">During the execution of DSC, the migration summary, including the progress and completion status, is displayed on the console.</p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_screen109612151476">********************** 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
|
|
||||||
Total number of valid files in input folder : 1
|
|
||||||
**************************************************************************
|
|
||||||
Log file path :....../DSC/DSC/log/dsc.log
|
|
||||||
Error Log file :
|
|
||||||
DSC process end time : Mon Jan 20 17:24:49 IST 2020
|
|
||||||
DSC total process time : 0 seconds
|
|
||||||
********************* Schema Conversion Completed ************************</pre>
|
|
||||||
</div>
|
|
||||||
<div class="section" id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_section18781165519813"><h4 class="sectiontitle">Performing MySQL Migration on Windows</h4><p id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_p14835912293">Run the following command on Windows to start the migration. You need to specify the source database, input and output folder paths, and log paths. The application language can be SQL or Perl. The default language is SQL. The migration type can be <strong id="EN-US_TOPIC_0000001234042109__b918115372715">Bulk</strong> or <strong id="EN-US_TOPIC_0000001234042109__b14191053132719">BLogic</strong>.</p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_screen2210401466">runDSC.bat
|
|
||||||
--source-db MySQL
|
|
||||||
[--input-folder <input-script-path>]
|
|
||||||
[--output-folder <output-script-path>]
|
|
||||||
[--application-lang SQL]
|
|
||||||
[--conversion-type <conversion-type>]
|
|
||||||
[--log-folder <log-path>]</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_p16933172917575">During the execution of DSC, the migration summary, including the progress and completion status, is displayed on the console.</p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_screen35931333135710">********************** 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>
|
|
||||||
<ul id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_ul42814973"><li id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_li57660517">Run the following commands to migrate objects, such as functions, store procedures, and packages that contain PL/SQL statements:<p id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_p14888715419"><a name="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_li57660517"></a><a name="en-us_topic_0218440533_li57660517"></a><strong id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_b1349819221540">Linux</strong>:</p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_screen47562386">./runDSC.sh --source-db MySQL --input-folder /opt/DSC/DSC/input/mysql/ --output-folder /opt/DSC/DSC/output/ --application-lang SQL --conversion-type BULK --log-folder /opt/DSC/DSC/log/</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_p78261431542"><strong id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_b229720256412">Windows</strong>:</p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_screen1593715322417">runDSC.bat --source-db MySQL--target-db GaussDBA --input-folder D:\test\conversion\input --output-folder D:\test\conversion\output --log-folder D:\test\conversion\log --application-lang SQL --conversion-type Bulk</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_p82261937141616">During the execution of DSC, the migration summary, including the progress and completion status, is displayed on the console. Execution information and errors are written into <a href="dws_mt_0189.html">log files</a>.</p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001234042109__en-us_topic_0218440533_screen33743900">********************** 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>
|
|
||||||
</li></ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="familylinks">
|
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_mt_0031.html">Using DSC</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
|||||||
<a name="EN-US_TOPIC_0000001188202626"></a><a name="EN-US_TOPIC_0000001188202626"></a>
|
<a name="EN-US_TOPIC_0000001819416349"></a><a name="EN-US_TOPIC_0000001819416349"></a>
|
||||||
|
|
||||||
<h1 class="topictitle1">Netezza Syntax Migration</h1>
|
<h1 class="topictitle1">Netezza Syntax Migration</h1>
|
||||||
<div id="body8662426"><ul id="EN-US_TOPIC_0000001188202626__en-us_topic_0238518430_en-us_topic_0237362389_ul1065051310216"><li id="EN-US_TOPIC_0000001188202626__en-us_topic_0238518430_en-us_topic_0237362389_li1365061314212"><a href="dws_07_6821.html">Tables</a><ul id="EN-US_TOPIC_0000001188202626__en-us_topic_0238518430_en-us_topic_0237362389_ul2052117414312"><li id="EN-US_TOPIC_0000001188202626__en-us_topic_0238518430_en-us_topic_0237362389_li4490401730"><a href="dws_07_6821.html#EN-US_TOPIC_0000001234200647__en-us_topic_0238518431_en-us_topic_0237362467_en-us_topic_0202685975_section1332761015481">Distribution Key</a></li><li id="EN-US_TOPIC_0000001188202626__en-us_topic_0238518430_en-us_topic_0237362389_li147775223317"><a href="dws_07_6821.html#EN-US_TOPIC_0000001234200647__en-us_topic_0238518431_en-us_topic_0237362467_en-us_topic_0202685975_section15902134185010">ORGANIZE ON</a></li></ul>
|
<div id="body8662426"><ul id="EN-US_TOPIC_0000001819416349__en-us_topic_0000001658024762_en-us_topic_0238518430_en-us_topic_0237362389_ul1065051310216"><li id="EN-US_TOPIC_0000001819416349__en-us_topic_0000001658024762_en-us_topic_0238518430_en-us_topic_0237362389_li1365061314212"><a href="dws_07_6821.html#EN-US_TOPIC_0000001819336317">Tables</a><ul id="EN-US_TOPIC_0000001819416349__en-us_topic_0000001658024762_en-us_topic_0238518430_en-us_topic_0237362389_ul2052117414312"><li id="EN-US_TOPIC_0000001819416349__en-us_topic_0000001658024762_en-us_topic_0238518430_en-us_topic_0237362389_li4490401730"><a href="dws_07_6821.html#EN-US_TOPIC_0000001819336317__en-us_topic_0000001706224181_en-us_topic_0238518431_en-us_topic_0237362467_en-us_topic_0202685975_section1332761015481">Distribution Key</a></li><li id="EN-US_TOPIC_0000001819416349__en-us_topic_0000001658024762_en-us_topic_0238518430_en-us_topic_0237362389_li147775223317"><a href="dws_07_6821.html#EN-US_TOPIC_0000001819336317__en-us_topic_0000001706224181_en-us_topic_0238518431_en-us_topic_0237362467_en-us_topic_0202685975_section15902134185010">ORGANIZE ON</a></li></ul>
|
||||||
</li><li id="EN-US_TOPIC_0000001188202626__en-us_topic_0238518430_en-us_topic_0237362389_li1129219419213"><a href="dws_07_6822.html">PROCEDURE with RETURNS</a><ul id="EN-US_TOPIC_0000001188202626__en-us_topic_0238518430_en-us_topic_0237362389_ul861814450319"><li id="EN-US_TOPIC_0000001188202626__en-us_topic_0238518430_en-us_topic_0237362389_li273410311412"><a href="dws_07_6822.html#EN-US_TOPIC_0000001233800649__en-us_topic_0238518432_en-us_topic_0237362167_en-us_topic_0202686277_section1049710281559">Qualifying Language</a></li><li id="EN-US_TOPIC_0000001188202626__en-us_topic_0238518430_en-us_topic_0237362389_li19732173715412"><a href="dws_07_6822.html#EN-US_TOPIC_0000001233800649__en-us_topic_0238518432_en-us_topic_0237362167_en-us_topic_0202686277_section92805525715">Process Compilation Specification</a></li><li id="EN-US_TOPIC_0000001188202626__en-us_topic_0238518430_en-us_topic_0237362389_li1034774110311"><a href="dws_07_6822.html#EN-US_TOPIC_0000001233800649__en-us_topic_0238518432_en-us_topic_0237362167_en-us_topic_0202686277_section1272133175917">DECLARE Keyword to Declare the Local Variables</a></li></ul>
|
</li><li id="EN-US_TOPIC_0000001819416349__en-us_topic_0000001658024762_en-us_topic_0238518430_en-us_topic_0237362389_li1129219419213"><a href="dws_07_6822.html#EN-US_TOPIC_0000001772696312">PROCEDURE with RETURNS</a><ul id="EN-US_TOPIC_0000001819416349__en-us_topic_0000001658024762_en-us_topic_0238518430_en-us_topic_0237362389_ul861814450319"><li id="EN-US_TOPIC_0000001819416349__en-us_topic_0000001658024762_en-us_topic_0238518430_en-us_topic_0237362389_li273410311412"><a href="dws_07_6822.html#EN-US_TOPIC_0000001772696312__en-us_topic_0000001657865518_en-us_topic_0238518432_en-us_topic_0237362167_en-us_topic_0202686277_section1049710281559">Qualifying Language</a></li><li id="EN-US_TOPIC_0000001819416349__en-us_topic_0000001658024762_en-us_topic_0238518430_en-us_topic_0237362389_li19732173715412"><a href="dws_07_6822.html#EN-US_TOPIC_0000001772696312__en-us_topic_0000001657865518_en-us_topic_0238518432_en-us_topic_0237362167_en-us_topic_0202686277_section92805525715">Process Compilation Specification</a></li><li id="EN-US_TOPIC_0000001819416349__en-us_topic_0000001658024762_en-us_topic_0238518430_en-us_topic_0237362389_li1034774110311"><a href="dws_07_6822.html#EN-US_TOPIC_0000001772696312__en-us_topic_0000001657865518_en-us_topic_0238518432_en-us_topic_0237362167_en-us_topic_0202686277_section1272133175917">DECLARE Keyword to Declare the Local Variables</a></li></ul>
|
||||||
</li></ul>
|
</li></ul>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@ -19,12 +19,12 @@
|
|||||||
</li>
|
</li>
|
||||||
<li class="ulchildlink"><strong><a href="dws_07_6826.html">DML</a></strong><br>
|
<li class="ulchildlink"><strong><a href="dws_07_6826.html">DML</a></strong><br>
|
||||||
</li>
|
</li>
|
||||||
<li class="ulchildlink"><strong><a href="dws_07_6827.html">Index Migration</a></strong><br>
|
<li class="ulchildlink"><strong><a href="dws_07_6827.html">Unique Index</a></strong><br>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="familylinks">
|
<div class="familylinks">
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_mt_index.html">DSC</a></div>
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0035.html">SQL Syntax Migration Reference</a></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
<a name="EN-US_TOPIC_0000001188680988"></a><a name="EN-US_TOPIC_0000001188680988"></a>
|
|
||||||
|
|
||||||
<h1 class="topictitle1">DB2 Syntax Migration</h1>
|
|
||||||
<div id="body8662426"></div>
|
|
||||||
<div>
|
|
||||||
<ul class="ullinks">
|
|
||||||
<li class="ulchildlink"><strong><a href="dws_07_6841.html">Tables</a></strong><br>
|
|
||||||
</li>
|
|
||||||
<li class="ulchildlink"><strong><a href="dws_07_6842.html">DML</a></strong><br>
|
|
||||||
</li>
|
|
||||||
<li class="ulchildlink"><strong><a href="dws_07_6843.html">Index Migration (DB2)</a></strong><br>
|
|
||||||
</li>
|
|
||||||
<li class="ulchildlink"><strong><a href="dws_07_6844.html">NICKNAME</a></strong><br>
|
|
||||||
</li>
|
|
||||||
<li class="ulchildlink"><strong><a href="dws_07_6845.html">Statement</a></strong><br>
|
|
||||||
</li>
|
|
||||||
<li class="ulchildlink"><strong><a href="dws_07_6846.html">System Functions</a></strong><br>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<div class="familylinks">
|
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_mt_index.html">DSC</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
@ -4,15 +4,15 @@
|
|||||||
<div id="body32001227"><div class="section" id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_s270612443421457abfb2f038846c8c5f"><h4 class="sectiontitle">Scenario</h4><p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p090613618131"><span id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_text1856068094">GaussDB(DWS)</span> uses GDS to allocate the source data for parallel data import. Deploy GDS on the data server.</p>
|
<div id="body32001227"><div class="section" id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_s270612443421457abfb2f038846c8c5f"><h4 class="sectiontitle">Scenario</h4><p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p090613618131"><span id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_text1856068094">GaussDB(DWS)</span> uses GDS to allocate the source data for parallel data import. Deploy GDS on the data server.</p>
|
||||||
<p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p11264113017269">If a large volume of data is stored on multiple data servers, install, configure, and start GDS on each server. Then, data on all the servers can be imported in parallel. The procedure for installing, configuring, and starting GDS is the same on each data server. This section describes how to perform this procedure on one data server.</p>
|
<p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p11264113017269">If a large volume of data is stored on multiple data servers, install, configure, and start GDS on each server. Then, data on all the servers can be imported in parallel. The procedure for installing, configuring, and starting GDS is the same on each data server. This section describes how to perform this procedure on one data server.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_s929eec5e14084da99aa7906f53ed4f89"><h4 class="sectiontitle">Context</h4><ol id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_ol16238142621211"><li id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_li1623910264128">The GDS version must match the cluster version. For example, GDS V100R008C00 matches DWS 1.3.<em id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_i514010371396">X</em>. Otherwise, the import or export may fail, or the import or export process may fail to respond.<p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p366193215710">Therefore, use the latest version of GDS. After the database is upgraded, download the latest version of <span id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_text2107851618">GaussDB(DWS)</span> GDS as instructed in <a href="#EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_se2a774b311864348a516131937610513">Procedure</a>. When the import or export starts, <span id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_text1390963698">GaussDB(DWS)</span> checks the GDS versions. If the versions do not match, an error message is displayed and the import or export is terminated.</p>
|
<div class="section" id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_s929eec5e14084da99aa7906f53ed4f89"><h4 class="sectiontitle">Context</h4><p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p592842254119">The GDS version must match the cluster version. For example, GDS V100R008C00 matches DWS 1.3.<em id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_i514010371396">X</em>. Otherwise, the import or export may fail, or the import or export process may fail to respond. Therefore, use the latest version of GDS.</p>
|
||||||
<p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p762384374118">To obtain the version number of GDS, run the following command in the GDS decompression directory:</p>
|
<p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p2087026144512">After the database is upgraded, download the latest version of <span id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_text2107851618">GaussDB(DWS)</span> GDS as instructed in <a href="#EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_se2a774b311864348a516131937610513">Procedure</a>. When the import or export starts, <span id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_text1390963698">GaussDB(DWS)</span> checks the GDS versions. If the versions do not match, an error message is displayed and the import or export is terminated.</p>
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_screen1875310184311"><strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b131114277435">gds</strong> -V</pre>
|
<p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p1187111611453">To obtain the version number of GDS, run the following command in the GDS decompression directory:</p>
|
||||||
<p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p1016218532493">To view the database version, run the following SQL statement after connecting to the database:</p>
|
<pre class="screen" id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_screen887114611453"><strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b131114277435">gds</strong> -V</pre>
|
||||||
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_screen115061635211"><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">SELECT</span><span class="w"> </span><span class="k">version</span><span class="p">();</span>
|
<p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p48721061457">To view the database version, run the following SQL statement after connecting to the database:</p>
|
||||||
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_screen987315613456"><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">SELECT</span><span class="w"> </span><span class="k">version</span><span class="p">();</span>
|
||||||
</pre></div></td></tr></table></div>
|
</pre></div></td></tr></table></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</li></ol>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_se2a774b311864348a516131937610513"><a name="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_se2a774b311864348a516131937610513"></a><a name="en-us_topic_0000001188163708_se2a774b311864348a516131937610513"></a><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_o213c59f9072d48fd905ceb73687c4f2b"><li id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_en-us_topic_0125634743_li970591810219"><span>Before using GDS to import or export data, see <strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b76501399202">Preparing an ECS as the GDS Server</strong> and <strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b17695918132010">Downloading the GDS Package</strong> in "Tutorial: Using GDS to Import Data from a Remote Server" in <em id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_i163968531911">Data Warehouse Service (DWS) User Guide</em>.</span></li><li id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_l242cf61617ff44ffbcfa868e55b91d88"><a name="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_l242cf61617ff44ffbcfa868e55b91d88"></a><a name="en-us_topic_0000001188163708_l242cf61617ff44ffbcfa868e55b91d88"></a><span>Log in as user <strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b191397561942">root</strong> to the data server where GDS is to be installed and run the following command to create the directory for storing the GDS package:</span><p><pre class="screen" id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_s58ae87fad6d045b1a5f9546c58e6c912"><strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_aae0c14df172e45dbb802cd19ea14559e">mkdir -p </strong><em id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_en-us_topic_0125634743_en-us_topic_0117407708_ad72482db75884492bfc4a099330d9db7">/opt/bin/dws</em></pre>
|
<div class="section" id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_se2a774b311864348a516131937610513"><a name="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_se2a774b311864348a516131937610513"></a><a name="en-us_topic_0000001188163708_se2a774b311864348a516131937610513"></a><h4 class="sectiontitle">Procedure</h4><ol id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_o213c59f9072d48fd905ceb73687c4f2b"><li id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_en-us_topic_0125634743_li970591810219"><span>Before using GDS to import or export data, see <strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b76501399202">Preparing an ECS as the GDS Server</strong> and <strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b17695918132010">Downloading the GDS Package</strong> in "Tutorial: Using GDS to Import Data from a Remote Server" in <em id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_i163968531911">Data Warehouse Service (DWS) User Guide</em>.</span></li><li id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_l242cf61617ff44ffbcfa868e55b91d88"><a name="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_l242cf61617ff44ffbcfa868e55b91d88"></a><a name="en-us_topic_0000001188163708_l242cf61617ff44ffbcfa868e55b91d88"></a><span>Log in as user <strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b191397561942">root</strong> to the data server where GDS is to be installed and run the following command to create the directory for storing the GDS package:</span><p><pre class="screen" id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_s58ae87fad6d045b1a5f9546c58e6c912"><strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_aae0c14df172e45dbb802cd19ea14559e">mkdir -p </strong><em id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_en-us_topic_0125634743_en-us_topic_0117407708_ad72482db75884492bfc4a099330d9db7">/opt/bin/dws</em></pre>
|
||||||
</p></li><li id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_li17170131917913"><span>Upload the GDS package to the created directory.</span><p><p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p1378019206920">Use the SUSE Linux package as an example. Upload the GDS package <strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b2088479151911"></strong><strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b15884198193">dws_client_8.</strong><em id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_i688412916195">x.x</em><strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b78841917194">_suse_x64.zip</strong> to the directory created in the previous step.</p>
|
</p></li><li id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_li17170131917913"><span>Upload the GDS package to the created directory.</span><p><p id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_p1378019206920">Use the SUSE Linux package as an example. Upload the GDS package <strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b2088479151911"></strong><strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b15884198193">dws_client_8.</strong><em id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_i688412916195">x.x</em><strong id="EN-US_TOPIC_0000001503363660__en-us_topic_0000001188163708_b78841917194">_suse_x64.zip</strong> to the directory created in the previous step.</p>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,9 @@
|
|||||||
<a name="EN-US_TOPIC_0000001233800705"></a><a name="EN-US_TOPIC_0000001233800705"></a>
|
<a name="EN-US_TOPIC_0000001772696268"></a><a name="EN-US_TOPIC_0000001772696268"></a>
|
||||||
|
|
||||||
<h1 class="topictitle1">Bitmap Index</h1>
|
<h1 class="topictitle1">Bitmap Index</h1>
|
||||||
<div id="body8662426"><p id="EN-US_TOPIC_0000001233800705__en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_p5449133416273">There is a configuration parameter that is introduced for this feature named <strong id="EN-US_TOPIC_0000001233800705__en-us_topic_0237712475_b9622203522416">BitmapIndexSupport</strong> which default value is <strong id="EN-US_TOPIC_0000001233800705__en-us_topic_0237712475_b18281401987">comment</strong>, then the sample input and output are as follows:</p>
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_p5449133416273">There is a configuration parameter that is introduced for this feature named <strong id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0237712475_b9622203522416">BitmapIndexSupport</strong> which default value is <strong id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0237712475_b18281401987">comment</strong>, then the sample input and output are as follows:</p>
|
||||||
<p id="EN-US_TOPIC_0000001233800705__en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_p20450103412272"><strong id="EN-US_TOPIC_0000001233800705__en-us_topic_0237712475_b452317172716">Input – Bitmap index</strong></p>
|
<p id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_p20450103412272"><strong id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0237712475_b452317172716">Input – Bitmap index</strong></p>
|
||||||
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233800705__en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_screen1445093462715"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_screen1445093462715"><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">2</span>
|
||||||
<span class="normal">3</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">CREATE</span><span class="w"> </span><span class="n">BITMAP</span><span class="w"> </span><span class="k">INDEX</span><span class="w"> </span>
|
<span class="normal">3</span></pre></div></td><td class="code"><div><pre><span></span><span class="k">CREATE</span><span class="w"> </span><span class="n">BITMAP</span><span class="w"> </span><span class="k">INDEX</span><span class="w"> </span>
|
||||||
<span class="n">emp_bitmap_idx</span>
|
<span class="n">emp_bitmap_idx</span>
|
||||||
@ -11,14 +11,14 @@
|
|||||||
</pre></div></td></tr></table></div>
|
</pre></div></td></tr></table></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<p id="EN-US_TOPIC_0000001233800705__en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_p0450123410275"><strong id="EN-US_TOPIC_0000001233800705__en-us_topic_0237712475_b185215176274">Output</strong></p>
|
<p id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_p0450123410275"><strong id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0237712475_b185215176274">Output</strong></p>
|
||||||
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233800705__en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_screen12450234182715"><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="cm">/*CREATE BITMAP INDEX emp_bitmap_idx ON index_demo (gender);*/</span>
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_screen12450234182715"><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="cm">/*CREATE BITMAP INDEX emp_bitmap_idx ON index_demo (gender);*/</span>
|
||||||
</pre></div></td></tr></table></div>
|
</pre></div></td></tr></table></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<p id="EN-US_TOPIC_0000001233800705__en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_p15450123416272">However, if the configuration parameter is set to <strong id="EN-US_TOPIC_0000001233800705__en-us_topic_0237712475_b994711252245">BTREE</strong>, then the output is as follows:</p>
|
<p id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_p15450123416272">However, if the configuration parameter is set to <strong id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0237712475_b994711252245">BTREE</strong>, then the output is as follows:</p>
|
||||||
<p id="EN-US_TOPIC_0000001233800705__en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_p3450634152716"><strong id="EN-US_TOPIC_0000001233800705__en-us_topic_0237712475_b953151717279">Output</strong></p>
|
<p id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_p3450634152716"><strong id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0237712475_b953151717279">Output</strong></p>
|
||||||
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001233800705__en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_screen1945043410273"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001772696268__en-us_topic_0000001658024650_en-us_topic_0238518378_en-us_topic_0238226700_en-us_topic_0221101041_en-us_topic_0202727461_screen1945043410273"><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">2</span>
|
||||||
<span class="normal">3</span>
|
<span class="normal">3</span>
|
||||||
<span class="normal">4</span>
|
<span class="normal">4</span>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<a name="EN-US_TOPIC_0000001188681016"></a><a name="EN-US_TOPIC_0000001188681016"></a>
|
<a name="EN-US_TOPIC_0000001772536592"></a><a name="EN-US_TOPIC_0000001772536592"></a>
|
||||||
|
|
||||||
<h1 class="topictitle1">Custom Tablespace</h1>
|
<h1 class="topictitle1">Custom Tablespace</h1>
|
||||||
<div id="body8662426"><p id="EN-US_TOPIC_0000001188681016__en-us_topic_0238518379_en-us_topic_0238226701_en-us_topic_0221101042_en-us_topic_0202727162_p1220985082715"><strong id="EN-US_TOPIC_0000001188681016__en-us_topic_0237712540_b02816562276">Input – custom tablespace</strong></p>
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001772536592__en-us_topic_0000001706224361_en-us_topic_0238518379_en-us_topic_0238226701_en-us_topic_0221101042_en-us_topic_0202727162_p1220985082715"><strong id="EN-US_TOPIC_0000001772536592__en-us_topic_0000001706224361_en-us_topic_0237712540_b02816562276">Input – custom tablespace</strong></p>
|
||||||
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188681016__en-us_topic_0238518379_en-us_topic_0238226701_en-us_topic_0221101042_en-us_topic_0202727162_screen620911501271"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001772536592__en-us_topic_0000001706224361_en-us_topic_0238518379_en-us_topic_0238226701_en-us_topic_0221101042_en-us_topic_0202727162_screen620911501271"><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"> 2</span>
|
||||||
<span class="normal"> 3</span>
|
<span class="normal"> 3</span>
|
||||||
<span class="normal"> 4</span>
|
<span class="normal"> 4</span>
|
||||||
@ -50,8 +50,8 @@
|
|||||||
</pre></div></td></tr></table></div>
|
</pre></div></td></tr></table></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<p id="EN-US_TOPIC_0000001188681016__en-us_topic_0238518379_en-us_topic_0238226701_en-us_topic_0221101042_en-us_topic_0202727162_p18210950142713"><strong id="EN-US_TOPIC_0000001188681016__en-us_topic_0237712540_b1128185615276">Output</strong></p>
|
<p id="EN-US_TOPIC_0000001772536592__en-us_topic_0000001706224361_en-us_topic_0238518379_en-us_topic_0238226701_en-us_topic_0221101042_en-us_topic_0202727162_p18210950142713"><strong id="EN-US_TOPIC_0000001772536592__en-us_topic_0000001706224361_en-us_topic_0237712540_b1128185615276">Output</strong></p>
|
||||||
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188681016__en-us_topic_0238518379_en-us_topic_0238226701_en-us_topic_0221101042_en-us_topic_0202727162_screen3210195014278"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001772536592__en-us_topic_0000001706224361_en-us_topic_0238518379_en-us_topic_0238226701_en-us_topic_0221101042_en-us_topic_0202727162_screen3210195014278"><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"> 2</span>
|
||||||
<span class="normal"> 3</span>
|
<span class="normal"> 3</span>
|
||||||
<span class="normal"> 4</span>
|
<span class="normal"> 4</span>
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,9 @@
|
|||||||
<a name="EN-US_TOPIC_0000001188521164"></a><a name="EN-US_TOPIC_0000001188521164"></a>
|
<a name="EN-US_TOPIC_0000001819336281"></a><a name="EN-US_TOPIC_0000001819336281"></a>
|
||||||
|
|
||||||
<h1 class="topictitle1">LONG RAW</h1>
|
<h1 class="topictitle1">LONG RAW</h1>
|
||||||
<div id="body8662426"><p id="EN-US_TOPIC_0000001188521164__en-us_topic_0238518381_en-us_topic_0238226703_en-us_topic_0221101044_en-us_topic_0202727358_p14503216201013">"Data type LONG RAW" is not supported in the CREATE TABLE statement. LONG RAW data type needs to be replaced with Byte.</p>
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001819336281__en-us_topic_0000001658024814_en-us_topic_0238518381_en-us_topic_0238226703_en-us_topic_0221101044_en-us_topic_0202727358_p14503216201013">"Data type LONG RAW" is not supported in the CREATE TABLE statement. LONG RAW data type needs to be replaced with Byte.</p>
|
||||||
<p id="EN-US_TOPIC_0000001188521164__en-us_topic_0238518381_en-us_topic_0238226703_en-us_topic_0221101044_en-us_topic_0202727358_p20600196191111"><strong id="EN-US_TOPIC_0000001188521164__en-us_topic_0237712429_b1346191211119">Input</strong></p>
|
<p id="EN-US_TOPIC_0000001819336281__en-us_topic_0000001658024814_en-us_topic_0238518381_en-us_topic_0238226703_en-us_topic_0221101044_en-us_topic_0202727358_p20600196191111"><strong id="EN-US_TOPIC_0000001819336281__en-us_topic_0000001658024814_en-us_topic_0237712429_b1346191211119">Input</strong></p>
|
||||||
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188521164__en-us_topic_0238518381_en-us_topic_0238226703_en-us_topic_0221101044_en-us_topic_0202727358_screen51411501116"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001819336281__en-us_topic_0000001658024814_en-us_topic_0238518381_en-us_topic_0238226703_en-us_topic_0221101044_en-us_topic_0202727358_screen51411501116"><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"> 2</span>
|
||||||
<span class="normal"> 3</span>
|
<span class="normal"> 3</span>
|
||||||
<span class="normal"> 4</span>
|
<span class="normal"> 4</span>
|
||||||
@ -33,8 +33,8 @@
|
|||||||
</pre></div></td></tr></table></div>
|
</pre></div></td></tr></table></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<p id="EN-US_TOPIC_0000001188521164__en-us_topic_0238518381_en-us_topic_0238226703_en-us_topic_0221101044_en-us_topic_0202727358_p465311613109"><strong id="EN-US_TOPIC_0000001188521164__en-us_topic_0237712429_b278111365110">Output</strong></p>
|
<p id="EN-US_TOPIC_0000001819336281__en-us_topic_0000001658024814_en-us_topic_0238518381_en-us_topic_0238226703_en-us_topic_0221101044_en-us_topic_0202727358_p465311613109"><strong id="EN-US_TOPIC_0000001819336281__en-us_topic_0000001658024814_en-us_topic_0237712429_b278111365110">Output</strong></p>
|
||||||
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001188521164__en-us_topic_0238518381_en-us_topic_0238226703_en-us_topic_0221101044_en-us_topic_0202727358_screen167093282117"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
|
<div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001819336281__en-us_topic_0000001658024814_en-us_topic_0238518381_en-us_topic_0238226703_en-us_topic_0221101044_en-us_topic_0202727358_screen167093282117"><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"> 2</span>
|
||||||
<span class="normal"> 3</span>
|
<span class="normal"> 3</span>
|
||||||
<span class="normal"> 4</span>
|
<span class="normal"> 4</span>
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,32 +1,44 @@
|
|||||||
<a name="EN-US_TOPIC_0000001188362508"></a><a name="EN-US_TOPIC_0000001188362508"></a>
|
<a name="EN-US_TOPIC_0000001819336321"></a><a name="EN-US_TOPIC_0000001819336321"></a>
|
||||||
|
|
||||||
<h1 class="topictitle1">Operator</h1>
|
<h1 class="topictitle1">Operator</h1>
|
||||||
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_section3617151012712"><h4 class="sectiontitle">**</h4>
|
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_section3617151012712"><h4 class="sectiontitle">**</h4>
|
||||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_table66184103278" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_row865716109275"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.2.1.3.1.1"><p id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_p169681440152618"><strong id="EN-US_TOPIC_0000001188362508__en-us_topic_0237712605_b1436054175415">Netezza Syntax</strong></p>
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_table66184103278" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_row865716109275"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.2.1.3.1.1"><p id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_p169681440152618"><strong id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0237712605_b1436054175415">Netezza Syntax</strong></p>
|
||||||
</th>
|
</th>
|
||||||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.2.1.3.1.2"><p id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_p19968340142613"><strong id="EN-US_TOPIC_0000001188362508__en-us_topic_0237712605_b81851635102616">Syntax After Migration</strong></p>
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.2.1.3.1.2"><p id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_p19968340142613"><strong id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0237712605_b81851635102616">Syntax After Migration</strong></p>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody><tr id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_row1965719104275"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.1.3.1.1 "><pre class="screen" id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_screen965712106272">V_Out := V_Out + v_J * ( v_N ** v_K ) ;</pre>
|
<tbody><tr id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_row1965719104275"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.1.3.1.1 "><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_screen965712106272"><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="n">V_Out</span><span class="w"> </span><span class="p">:</span><span class="o">=</span><span class="w"> </span><span class="n">V_Out</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">v_J</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">v_N</span><span class="w"> </span><span class="o">**</span><span class="w"> </span><span class="n">v_K</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">;</span>
|
||||||
|
</pre></div></td></tr></table></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.1.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_screen12657910122712">V_Out := V_Out + v_J * ( v_N ^ v_K ) ;</pre>
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.2.1.3.1.2 "><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_screen12657910122712"><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="n">V_Out</span><span class="w"> </span><span class="p">:</span><span class="o">=</span><span class="w"> </span><span class="n">V_Out</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">v_J</span><span class="w"> </span><span class="o">*</span><span class="w"> </span><span class="p">(</span><span class="w"> </span><span class="n">v_N</span><span class="w"> </span><span class="o">^</span><span class="w"> </span><span class="n">v_K</span><span class="w"> </span><span class="p">)</span><span class="w"> </span><span class="p">;</span>
|
||||||
|
</pre></div></td></tr></table></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_section36233103271"><h4 class="sectiontitle">NOTNULL and ISNULL</h4>
|
<div class="section" id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_section36233103271"><h4 class="sectiontitle">NOTNULL and ISNULL</h4>
|
||||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_table26236108276" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_row166579102277"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.2.1.3.1.1"><p id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_p159721922182813"><strong id="EN-US_TOPIC_0000001188362508__en-us_topic_0237712605_b4867738105711">Netezza Syntax</strong></p>
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_table26236108276" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_row166579102277"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.2.1.3.1.1"><p id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_p159721922182813"><strong id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0237712605_b4867738105711">Netezza Syntax</strong></p>
|
||||||
</th>
|
</th>
|
||||||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.2.1.3.1.2"><p id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_p159728226284"><strong id="EN-US_TOPIC_0000001188362508__en-us_topic_0237712605_b1144475817297">Syntax After Migration</strong></p>
|
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.2.1.3.1.2"><p id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_p159728226284"><strong id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0237712605_b1144475817297">Syntax After Migration</strong></p>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody><tr id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_row46571610192718"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.1.3.1.1 "><pre class="screen" id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_screen1665781019273">CASE WHEN ((A1.EXCEPT_OFF_SEQU_NO NOTNULL) AND (A2.LOG_SEQU_NO ISNULL)) THEN 0 ELSE 1 END AS FLG</pre>
|
<tbody><tr id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_row46571610192718"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.1.3.1.1 "><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_screen1665781019273"><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">CASE</span><span class="w"> </span><span class="k">WHEN</span><span class="w"> </span><span class="p">((</span><span class="n">A1</span><span class="p">.</span><span class="n">EXCEPT_OFF_SEQU_NO</span><span class="w"> </span><span class="k">NOTNULL</span><span class="p">)</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="p">(</span><span class="n">A2</span><span class="p">.</span><span class="n">LOG_SEQU_NO</span><span class="w"> </span><span class="k">ISNULL</span><span class="p">))</span><span class="w"> </span><span class="k">THEN</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="k">ELSE</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="k">END</span><span class="w"> </span><span class="k">AS</span><span class="w"> </span><span class="n">FLG</span>
|
||||||
|
</pre></div></td></tr></table></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.1.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001188362508__en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_screen96571106275">CASE WHEN ((A1.EXCEPT_OFF_SEQU_NO NOTNULL) AND (A2.LOG_SEQU_NO ISNULL)) THEN 0 ELSE 1 END AS FLG</pre>
|
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.1.3.1.2 "><div class="codecoloring" codetype="Sql" id="EN-US_TOPIC_0000001819336321__en-us_topic_0000001706105065_en-us_topic_0238518435_en-us_topic_0237362246_en-us_topic_0213479755_screen96571106275"><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">CASE</span><span class="w"> </span><span class="k">WHEN</span><span class="w"> </span><span class="p">((</span><span class="n">A1</span><span class="p">.</span><span class="n">EXCEPT_OFF_SEQU_NO</span><span class="w"> </span><span class="k">NOTNULL</span><span class="p">)</span><span class="w"> </span><span class="k">AND</span><span class="w"> </span><span class="p">(</span><span class="n">A2</span><span class="p">.</span><span class="n">LOG_SEQU_NO</span><span class="w"> </span><span class="k">ISNULL</span><span class="p">))</span><span class="w"> </span><span class="k">THEN</span><span class="w"> </span><span class="mi">0</span><span class="w"> </span><span class="k">ELSE</span><span class="w"> </span><span class="mi">1</span><span class="w"> </span><span class="k">END</span><span class="w"> </span><span class="k">AS</span><span class="w"> </span><span class="n">FLG</span>
|
||||||
|
</pre></div></td></tr></table></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,73 +0,0 @@
|
|||||||
<a name="EN-US_TOPIC_0000001188362542"></a><a name="EN-US_TOPIC_0000001188362542"></a>
|
|
||||||
|
|
||||||
<h1 class="topictitle1">Normal and Prefix Indexes</h1>
|
|
||||||
<div id="body8662426"><p id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_p330274862511"><span id="EN-US_TOPIC_0000001188362542__text10892754124514">GaussDB(DWS)</span> does not support prefix indexes or inline normal indexes. DSC will replace these indexes with normal indexes based on GaussDB features.</p>
|
|
||||||
<ol id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_ol12553123692615"><li id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_li15553183615265">Inline normal/prefix index<p id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_p135691921172717"><a name="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_li15553183615265"></a><a name="en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_li15553183615265"></a><strong id="EN-US_TOPIC_0000001188362542__en-us_topic_0237712503_b7715141554411">Input</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_screen182799185276">CREATE TABLE IF NOT EXISTS `public`.`runoob_dataType_test`
|
|
||||||
(
|
|
||||||
`id` INT PRIMARY KEY AUTO_INCREMENT,
|
|
||||||
`name` VARCHAR(128) NOT NULL,
|
|
||||||
INDEX index_single(name(10))
|
|
||||||
);</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_p77858251279"><strong id="EN-US_TOPIC_0000001188362542__en-us_topic_0237712503_b1715141515447">Output</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_screen71919285272">CREATE TABLE "public"."runoob_datatype_test"
|
|
||||||
(
|
|
||||||
"id" SERIAL PRIMARY KEY,
|
|
||||||
"name" VARCHAR(128) NOT NULL
|
|
||||||
)
|
|
||||||
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
|
|
||||||
NOCOMPRESS
|
|
||||||
DISTRIBUTE BY HASH ("id");
|
|
||||||
CREATE INDEX "index_single" ON "public"."runoob_datatype_test" USING BTREE ("name");</pre>
|
|
||||||
</li><li id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_li19672194516269">Normal/Prefix index created by <strong id="EN-US_TOPIC_0000001188362542__en-us_topic_0237712503_b5715115144415">ALTER TABLE</strong><p id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_p1287443289"><strong id="EN-US_TOPIC_0000001188362542__en-us_topic_0237712503_b147156155446">Input</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_screen9287164132817">CREATE TABLE `public`.`test_create_table05` (
|
|
||||||
`ID` INT(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`USER_ID` INT(20) NOT NULL,
|
|
||||||
`USER_NAME` CHAR(20) NULL DEFAULT NULL,
|
|
||||||
`DETAIL` VARCHAR(100) NULL DEFAULT NULL,
|
|
||||||
PRIMARY KEY (`ID`)
|
|
||||||
);
|
|
||||||
|
|
||||||
ALTER TABLE TEST_CREATE_TABLE05 ADD INDEX USER_NAME_INDEX_02(USER_NAME(10));</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_p142870442811"><strong id="EN-US_TOPIC_0000001188362542__en-us_topic_0237712503_b13715151517444">Output</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_screen19288648288">CREATE TABLE "public"."test_create_table05"
|
|
||||||
(
|
|
||||||
"id" SERIAL NOT NULL,
|
|
||||||
"user_id" INTEGER(20) NOT NULL,
|
|
||||||
"user_name" CHAR(20) DEFAULT NULL,
|
|
||||||
"detail" VARCHAR(100) DEFAULT NULL,
|
|
||||||
PRIMARY KEY ("id")
|
|
||||||
)
|
|
||||||
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
|
|
||||||
NOCOMPRESS
|
|
||||||
DISTRIBUTE BY HASH ("id");
|
|
||||||
|
|
||||||
CREATE INDEX "user_name_index_02" ON "public"."test_create_table05" ("user_name");</pre>
|
|
||||||
</li><li id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_li1937655815268">Normal/Prefix index created by <strong id="EN-US_TOPIC_0000001188362542__en-us_topic_0237712503_b2715181554410">CREATE INDEX</strong><p id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_p15863552819"><strong id="EN-US_TOPIC_0000001188362542__en-us_topic_0237712503_b57156158440">Input</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_screen758620572815">CREATE TABLE IF NOT EXISTS `public`.`customer`(
|
|
||||||
`name` varchar(64) primary key,
|
|
||||||
id integer,
|
|
||||||
id2 integer
|
|
||||||
);
|
|
||||||
|
|
||||||
CREATE INDEX part_of_name ON customer (name(10));</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_p35869514281"><strong id="EN-US_TOPIC_0000001188362542__en-us_topic_0237712503_b117151815164414">Output</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188362542__en-us_topic_0238518443_en-us_topic_0237362130_en-us_topic_0214164686_screen8586145162813">CREATE TABLE "public"."customer"
|
|
||||||
(
|
|
||||||
"name" VARCHAR(64) PRIMARY KEY,
|
|
||||||
"id" INTEGER,
|
|
||||||
"id2" INTEGER
|
|
||||||
)
|
|
||||||
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
|
|
||||||
NOCOMPRESS
|
|
||||||
DISTRIBUTE BY HASH ("name");
|
|
||||||
|
|
||||||
CREATE INDEX "part_of_name" ON "public"."customer" USING BTREE ("name");</pre>
|
|
||||||
</li></ol>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="familylinks">
|
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_sct_0013.html">MySQL Syntax Migration</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,84 +0,0 @@
|
|||||||
<a name="EN-US_TOPIC_0000001188521058"></a><a name="EN-US_TOPIC_0000001188521058"></a>
|
|
||||||
|
|
||||||
<h1 class="topictitle1">Hash Indexes</h1>
|
|
||||||
<div id="body8662426"><p id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_p330274862511"><span id="EN-US_TOPIC_0000001188521058__text10892754124514">GaussDB(DWS)</span> does not support hash indexes. DSC will replace these indexes with normal indexes based on GaussDB features.</p>
|
|
||||||
<ol id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_ol12553123692615"><li id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_li15553183615265">Inline hash index<p id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_p135691921172717"><a name="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_li15553183615265"></a><a name="en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_li15553183615265"></a><strong id="EN-US_TOPIC_0000001188521058__en-us_topic_0237712407_b1981334164712">Input</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_screen182799185276">CREATE TABLE `public`.`test_create_table03` (
|
|
||||||
`DEMAND_ID` INT(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`DEMAND_NAME` CHAR(100) NOT NULL,
|
|
||||||
`THEME` VARCHAR(200) NULL DEFAULT NULL,
|
|
||||||
`SEND_ID` INT(11) NULL DEFAULT NULL,
|
|
||||||
`SEND_NAME` CHAR(20) NULL DEFAULT NULL,
|
|
||||||
`SEND_TIME` DATETIME NULL DEFAULT NULL,
|
|
||||||
`DEMAND_CONTENT` TEXT NOT NULL,
|
|
||||||
PRIMARY KEY(`DEMAND_ID`),
|
|
||||||
INDEX CON_INDEX(DEMAND_CONTENT(100)) USING HASH ,
|
|
||||||
INDEX SEND_INFO_INDEX USING HASH (SEND_ID,SEND_NAME(10),SEND_TIME)
|
|
||||||
);</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_p77858251279"><strong id="EN-US_TOPIC_0000001188521058__en-us_topic_0237712407_b1981304204719">Output</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_screen71919285272">CREATE TABLE "public"."test_create_table03"
|
|
||||||
(
|
|
||||||
"demand_id" SERIAL NOT NULL,
|
|
||||||
"demand_name" CHAR(100) NOT NULL,
|
|
||||||
"theme" VARCHAR(200) DEFAULT NULL,
|
|
||||||
"send_id" INTEGER(11) DEFAULT NULL,
|
|
||||||
"send_name" CHAR(20) DEFAULT NULL,
|
|
||||||
"send_time" TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL,
|
|
||||||
"demand_content" TEXT NOT NULL,
|
|
||||||
PRIMARY KEY ("demand_id")
|
|
||||||
)
|
|
||||||
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
|
|
||||||
NOCOMPRESS
|
|
||||||
DISTRIBUTE BY HASH ("demand_id");
|
|
||||||
CREATE INDEX "con_index" ON "public"."test_create_table03" ("demand_content");
|
|
||||||
CREATE INDEX "send_info_index" ON "public"."test_create_table03" ("send_id","send_name","send_time");</pre>
|
|
||||||
</li><li id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_li19672194516269">Hash index created by <strong id="EN-US_TOPIC_0000001188521058__en-us_topic_0237712407_b981334124712">ALTER TABLE</strong><p id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_p1287443289"><strong id="EN-US_TOPIC_0000001188521058__en-us_topic_0237712407_b581334154713">Input</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_screen9287164132817">CREATE TABLE IF NOT EXISTS `public`.`runoob_alter_test`(
|
|
||||||
`dataType1` int NOT NULL AUTO_INCREMENT,
|
|
||||||
`dataType2` FLOAT(10,2),
|
|
||||||
PRIMARY KEY(`dataType1`)
|
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
||||||
|
|
||||||
ALTER TABLE runoob_alter_test ADD KEY alterTable_addKey_indexType(dataType1) USING HASH;</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_p142870442811"><strong id="EN-US_TOPIC_0000001188521058__en-us_topic_0237712407_b4814104194710">Output</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_screen19288648288">CREATE TABLE "public"."runoob_alter_test"
|
|
||||||
(
|
|
||||||
"datatype1" SERIAL NOT NULL,
|
|
||||||
"datatype2" FLOAT(10),
|
|
||||||
PRIMARY KEY ("datatype1")
|
|
||||||
)
|
|
||||||
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
|
|
||||||
NOCOMPRESS
|
|
||||||
DISTRIBUTE BY HASH ("datatype1");
|
|
||||||
|
|
||||||
CREATE INDEX "altertable_addkey_indextype" ON "public"."runoob_alter_test" ("datatype1");</pre>
|
|
||||||
</li><li id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_li1937655815268">Hash index created by <strong id="EN-US_TOPIC_0000001188521058__en-us_topic_0237712407_b381417474711">CREATE INDEX</strong><p id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_p15863552819"><strong id="EN-US_TOPIC_0000001188521058__en-us_topic_0237712407_b8814347473">Input</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_screen758620572815">CREATE TABLE `public`.`test_index_table06` (
|
|
||||||
`ID` INT(11) NOT NULL AUTO_INCREMENT,
|
|
||||||
`FNAME` VARCHAR(30) NOT NULL,
|
|
||||||
`INAME` VARCHAR(30) NOT NULL,
|
|
||||||
PRIMARY KEY (`ID`)
|
|
||||||
);
|
|
||||||
CREATE INDEX FNAME_INDEX ON TEST_INDEX_TABLE06(FNAME(10)) USING HASH;
|
|
||||||
CREATE INDEX NAME_01 ON TEST_INDEX_TABLE06(FNAME(10),INAME(10)) USING HASH;</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_p35869514281"><strong id="EN-US_TOPIC_0000001188521058__en-us_topic_0237712407_b7814154154717">Output</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188521058__en-us_topic_0238518444_en-us_topic_0237362453_en-us_topic_0214164771_screen8586145162813">CREATE TABLE "public"."test_index_table06"
|
|
||||||
(
|
|
||||||
"id" SERIAL NOT NULL,
|
|
||||||
"fname" VARCHAR(30) NOT NULL,
|
|
||||||
"iname" VARCHAR(30) NOT NULL,
|
|
||||||
PRIMARY KEY ("id")
|
|
||||||
)
|
|
||||||
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
|
|
||||||
NOCOMPRESS
|
|
||||||
DISTRIBUTE BY HASH ("id");
|
|
||||||
CREATE INDEX "fname_index" ON "public"."test_index_table06" ("fname");
|
|
||||||
CREATE INDEX "name_01" ON "public"."test_index_table06" ("fname","iname");</pre>
|
|
||||||
</li></ol>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="familylinks">
|
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_sct_0013.html">MySQL Syntax Migration</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,50 +0,0 @@
|
|||||||
<a name="EN-US_TOPIC_0000001188202554"></a><a name="EN-US_TOPIC_0000001188202554"></a>
|
|
||||||
|
|
||||||
<h1 class="topictitle1">Index Migration (DB2)</h1>
|
|
||||||
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_section15598165217561"><h4 class="sectiontitle">Reverse Scans</h4><p id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_p1364505217567">Reverse Scans</p>
|
|
||||||
|
|
||||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_table2059911525563" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_row20645115220563"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.3.1.3.1.1"><p id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_p96451152135618"><strong id="EN-US_TOPIC_0000001188202554__en-us_topic_0237712599_b1017212444475">DB2 Syntax</strong></p>
|
|
||||||
</th>
|
|
||||||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.3.1.3.1.2"><p id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_p9646852165614"><strong id="EN-US_TOPIC_0000001188202554__en-us_topic_0237712599_b81851635102616">Syntax After Migration</strong></p>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody><tr id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_row8646175215617"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.1.3.1.1 "><pre class="screen" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_screen5646175265619">CREATE INDEX IDX_1 ON EMP
|
|
||||||
(ID ASC) ALLOW REVERSE SCANS;
|
|
||||||
CREATE INDEX IDX_1 ON EMP
|
|
||||||
(ID ASC) DISALLOW REVERSE SCANS;</pre>
|
|
||||||
</td>
|
|
||||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.1.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_screen66462523568">CREATE INDEX IDX_1 ON EMP
|
|
||||||
(ID ASC) /*ALLOW REVERSE SCANS*/;
|
|
||||||
CREATE INDEX IDX_1 ON EMP
|
|
||||||
(ID ASC) /*DISALLOW REVERSE SCANS*/;</pre>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="section" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_section961045213566"><h4 class="sectiontitle">Schema</h4><p id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_p96461352125614">index's schema is different from its table's schema.</p>
|
|
||||||
|
|
||||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_table7611135211562" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_row206461952115614"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.3.1.3.1.1"><p id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_p56461752125617"><strong id="EN-US_TOPIC_0000001188202554__en-us_topic_0237712599_b97012022536">DB2 Syntax</strong></p>
|
|
||||||
</th>
|
|
||||||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.3.1.3.1.2"><p id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_p146461052175613"><strong id="EN-US_TOPIC_0000001188202554__en-us_topic_0237712599_b1319784312303">Syntax After Migration</strong></p>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody><tr id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_row364645211566"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.1.3.1.1 "><pre class="screen" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_screen6646652125614">CREATE INDEX IDXSC.IDX_1 ON EMP (ID ASC);</pre>
|
|
||||||
</td>
|
|
||||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.3.1.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001188202554__en-us_topic_0238518456_en-us_topic_0237362426_en-us_topic_0213529184_screen164617529560">CREATE INDEX IDX_1 ON EMP (ID ASC);</pre>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="familylinks">
|
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_07_0684.html">DB2 Syntax Migration</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
|||||||
<a name="EN-US_TOPIC_0000001233922135"></a><a name="EN-US_TOPIC_0000001233922135"></a>
|
|
||||||
|
|
||||||
<h1 class="topictitle1">NICKNAME</h1>
|
|
||||||
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001233922135__en-us_topic_0238518457_en-us_topic_0237362377_en-us_topic_0213529185_section8622152920574"><h4 class="sectiontitle">NICKNAME</h4><p id="EN-US_TOPIC_0000001233922135__en-us_topic_0238518457_en-us_topic_0237362377_en-us_topic_0213529185_p12648102945714">Synonym is referred to <strong id="EN-US_TOPIC_0000001233922135__b2252115313463">Nickname</strong> in DB2.</p>
|
|
||||||
|
|
||||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001233922135__en-us_topic_0238518457_en-us_topic_0237362377_en-us_topic_0213529185_table562332995719" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001233922135__en-us_topic_0238518457_en-us_topic_0237362377_en-us_topic_0213529185_row16480299579"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.3.1.3.1.1"><p id="EN-US_TOPIC_0000001233922135__en-us_topic_0238518457_en-us_topic_0237362377_en-us_topic_0213529185_p14648112916570"><strong id="EN-US_TOPIC_0000001233922135__en-us_topic_0237712259_b97012022536">DB2 Syntax</strong></p>
|
|
||||||
</th>
|
|
||||||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.3.1.3.1.2"><p id="EN-US_TOPIC_0000001233922135__en-us_topic_0238518457_en-us_topic_0237362377_en-us_topic_0213529185_p1564802912572"><strong id="EN-US_TOPIC_0000001233922135__en-us_topic_0237712259_b81851635102616">Syntax After Migration</strong></p>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody><tr id="EN-US_TOPIC_0000001233922135__en-us_topic_0238518457_en-us_topic_0237362377_en-us_topic_0213529185_row46481829145719"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.1.3.1.1 "><pre class="screen" id="EN-US_TOPIC_0000001233922135__en-us_topic_0238518457_en-us_topic_0237362377_en-us_topic_0213529185_screen12648202917573">CREATE NICKNAME sc2.emp FOR sc.emp;</pre>
|
|
||||||
</td>
|
|
||||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.1.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001233922135__en-us_topic_0238518457_en-us_topic_0237362377_en-us_topic_0213529185_screen20648629195712">CREATE SYNONYM sc2.emp FOR sc.emp;</pre>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="familylinks">
|
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_07_0684.html">DB2 Syntax Migration</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,57 +0,0 @@
|
|||||||
<a name="EN-US_TOPIC_0000001188202564"></a><a name="EN-US_TOPIC_0000001188202564"></a>
|
|
||||||
|
|
||||||
<h1 class="topictitle1">Statement</h1>
|
|
||||||
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_section3296175312579"><h4 class="sectiontitle">CURRENT SCHEMA</h4><p id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_p173215532575">SET CURRENT SCHEMA</p>
|
|
||||||
|
|
||||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_table1329725317573" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_row20321105312570"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.3.1.3.1.1"><p id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_p17321853185715"><strong id="EN-US_TOPIC_0000001188202564__b6940164224710">DB2 Syntax</strong></p>
|
|
||||||
</th>
|
|
||||||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.3.1.3.1.2"><p id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_p532155318571"><strong id="EN-US_TOPIC_0000001188202564__b20452104613477">Syntax After Migration</strong></p>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody><tr id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_row1032114539575"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.1.3.1.1 "><pre class="screen" id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_screen113212534578">CREATE NICKNAME sc2.emp FOR sc.emp;</pre>
|
|
||||||
</td>
|
|
||||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.1.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_screen14321145315570">CREATE SYNONYM sc2.emp FOR sc.emp;</pre>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="section" id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_section16187102695218"><h4 class="sectiontitle">GET DIAGNOSTICS with ROW_COUNT</h4>
|
|
||||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_table16190202645220" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_row1523322665215"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.2.1.3.1.1"><p id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_p2233182616526"><strong id="EN-US_TOPIC_0000001188202564__b1016625894719">DB2 Syntax</strong></p>
|
|
||||||
</th>
|
|
||||||
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.2.2.1.3.1.2"><p id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_p9233122612529"><strong id="EN-US_TOPIC_0000001188202564__b71445120483">Syntax After Migration</strong></p>
|
|
||||||
</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody><tr id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_row123312615528"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.1.3.1.1 "><pre class="screen" id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_screen1234112611524">CC_ORDER_HY_CUSTORCOUNT SET '
|
|
||||||
||STR_CUST_COUNT||'_COUNT='||char(CUST_COUNT)||' ,'
|
|
||||||
||'SELF_UPDATE_TIME ='||''''||STR_DATE||''''||' ,'
|
|
||||||
||'SUB_UPDATE_TIME ='||''''||STR_DATE1||''''||','
|
|
||||||
||'REPORT_STATE ='||''''|| STR_CHAR ||''''
|
|
||||||
||' WHERE ORG_CODE ='||''''||TEMP_ORG_CODE||''''
|
|
||||||
||' AND Y='||char(TEMP_YEAR)||' AND HY='||char(TEMP_HY)
|
|
||||||
||' AND REGION_CODE='||''''||TEMP_SALE_REG_CODE||''''||' AND BRAND_CODE='||''''||TEMP_BRAND_CODE||''''
|
|
||||||
||' AND exists (select 1 from CC_ORDER_HY_CUSTORCOUNT'
|
|
||||||
||' where ORG_CODE ='||''''||TEMP_ORG_CODE||''''
|
|
||||||
||' AND Y='||char(TEMP_YEAR)||' AND HY='||char(TEMP_HY)
|
|
||||||
||' AND REGION_CODE='||''''||TEMP_SALE_REG_CODE||''''||' AND BRAND_CODE='||''''||TEMP_BRAND_CODE||''''||')';--
|
|
||||||
PREPARE S1 FROM STR_UPDATE1;
|
|
||||||
EXECUTE S1; --
|
|
||||||
GET DIAGNOSTICS V_NUMRECORDS = ROW_COUNT; </pre>
|
|
||||||
</td>
|
|
||||||
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.2.2.1.3.1.2 "><pre class="screen" id="EN-US_TOPIC_0000001188202564__en-us_topic_0238518458_en-us_topic_0237362128_en-us_topic_0213529186_screen523452618521">V_NUMRECORDS = SQL%ROWCOUNT;</pre>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="familylinks">
|
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_07_0684.html">DB2 Syntax Migration</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,15 +0,0 @@
|
|||||||
<a name="EN-US_TOPIC_0000001234200685"></a><a name="EN-US_TOPIC_0000001234200685"></a>
|
|
||||||
|
|
||||||
<h1 class="topictitle1">SHOW STATS VALUES SEQUENCED</h1>
|
|
||||||
<div id="body8662426"><p id="EN-US_TOPIC_0000001234200685__en-us_topic_0238518362_en-us_topic_0237362336_p142784454131">This command displays the COLLECT STATISTICS statement with statistics. Gauss does not have an equivalent for this. Since it does not affect the functionality, this command can be commented.</p>
|
|
||||||
<p id="EN-US_TOPIC_0000001234200685__en-us_topic_0238518362_en-us_topic_0237362336_p96229961411"><strong id="EN-US_TOPIC_0000001234200685__en-us_topic_0237712421_b730117195141">Input</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001234200685__en-us_topic_0238518362_en-us_topic_0237362336_screen065082520145">SHOW STATS VALUES SEQUENCED on "temp"."table"</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001234200685__en-us_topic_0238518362_en-us_topic_0237362336_p1214991319144"><strong id="EN-US_TOPIC_0000001234200685__en-us_topic_0237712421_b748611217148">Output</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001234200685__en-us_topic_0238518362_en-us_topic_0237362336_screen2084815301141">/*SHOW STATS VALUES SEQUENCED on "temp"."table"*/</pre>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="familylinks">
|
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_mt_0044.html">Teradata Syntax Migration</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,82 +0,0 @@
|
|||||||
<a name="EN-US_TOPIC_0000001233922193"></a><a name="EN-US_TOPIC_0000001233922193"></a>
|
|
||||||
|
|
||||||
<h1 class="topictitle1">Delete an Index</h1>
|
|
||||||
<div id="body8662426"><p id="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_p11532411115112">MySQL supports both <strong id="EN-US_TOPIC_0000001233922193__en-us_topic_0237712416_b2027031512543">DROP INDEX</strong> and <strong id="EN-US_TOPIC_0000001233922193__en-us_topic_0237712416_b1227061518544">ALTER TABLE DROP INDEX</strong> for deleting indexes. DSC will perform adaptation based on GaussDB features during migration.</p>
|
|
||||||
<ol id="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_ol9597141171115"><li id="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_li1359714141114">DROP INDEX<p id="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_p6923191441210"><a name="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_li1359714141114"></a><a name="en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_li1359714141114"></a><strong id="EN-US_TOPIC_0000001233922193__en-us_topic_0237712416_b172711153541">Input</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_screen2075817255126">CREATE TABLE `test_create_table03` (
|
|
||||||
`DEMAND_ID` INT(11) NOT NULL,
|
|
||||||
`DEMAND_NAME` CHAR(100) NOT NULL,
|
|
||||||
`THEME` VARCHAR(200) NULL DEFAULT NULL,
|
|
||||||
`SEND_ID` INT(11) NULL DEFAULT NULL,
|
|
||||||
`SEND_NAME` CHAR(20) NULL DEFAULT NULL,
|
|
||||||
`SEND_TIME` DATETIME NULL DEFAULT NULL,
|
|
||||||
`DEMAND_CONTENT` TEXT NOT NULL
|
|
||||||
)
|
|
||||||
COLLATE='utf8_general_ci'
|
|
||||||
ENGINE=InnoDB;
|
|
||||||
|
|
||||||
CREATE UNIQUE INDEX DEMAND_NAME_INDEX ON TEST_CREATE_TABLE03(DEMAND_NAME);
|
|
||||||
DROP INDEX DEMAND_NAME_INDEX ON TEST_CREATE_TABLE03;
|
|
||||||
|
|
||||||
CREATE INDEX SEND_ID_INDEX ON TEST_CREATE_TABLE03(SEND_ID);
|
|
||||||
DROP INDEX SEND_ID_INDEX ON TEST_CREATE_TABLE03;</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_p18349428171219"><strong id="EN-US_TOPIC_0000001233922193__en-us_topic_0237712416_b1327110154546">Output</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_screen1227033412127">CREATE TABLE "public"."test_create_table03"
|
|
||||||
(
|
|
||||||
"demand_id" INTEGER(11) NOT NULL,
|
|
||||||
"demand_name" CHAR(100) NOT NULL,
|
|
||||||
"theme" VARCHAR(200) DEFAULT NULL,
|
|
||||||
"send_id" INTEGER(11) DEFAULT NULL,
|
|
||||||
"send_name" CHAR(20) DEFAULT NULL,
|
|
||||||
"send_time" TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL,
|
|
||||||
"demand_content" TEXT NOT NULL
|
|
||||||
)
|
|
||||||
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
|
|
||||||
NOCOMPRESS
|
|
||||||
DISTRIBUTE BY HASH ("demand_id");
|
|
||||||
|
|
||||||
CREATE INDEX "demand_name_index" ON "public"."test_create_table03" ("demand_name");
|
|
||||||
DROP INDEX "demand_name_index" RESTRICT;
|
|
||||||
|
|
||||||
CREATE INDEX "send_id_index" ON "public"."test_create_table03" USING BTREE ("send_id");
|
|
||||||
DROP INDEX "send_id_index" RESTRICT;</pre>
|
|
||||||
</li><li id="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_li99313585112">ALTER TABLE DROP INDEX<p id="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_p636619384129"><a name="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_li99313585112"></a><a name="en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_li99313585112"></a><strong id="EN-US_TOPIC_0000001233922193__en-us_topic_0237712416_b32711156544">Input</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_screen123668384128">CREATE TABLE `test_create_table03` (
|
|
||||||
`DEMAND_ID` INT(11) NOT NULL,
|
|
||||||
`DEMAND_NAME` CHAR(100) NOT NULL,
|
|
||||||
`THEME` VARCHAR(200) NULL DEFAULT NULL,
|
|
||||||
`SEND_ID` INT(11) NULL DEFAULT NULL,
|
|
||||||
`SEND_NAME` CHAR(20) NULL DEFAULT NULL,
|
|
||||||
`SEND_TIME` DATETIME NULL DEFAULT NULL,
|
|
||||||
`DEMAND_CONTENT` TEXT NOT NULL
|
|
||||||
)
|
|
||||||
COLLATE='utf8_general_ci'
|
|
||||||
ENGINE=InnoDB;
|
|
||||||
|
|
||||||
ALTER TABLE TEST_CREATE_TABLE03 ADD UNIQUE INDEX TEST_CREATE_TABLE03_NAME_INDEX(DEMAND_NAME(50));
|
|
||||||
ALTER TABLE TEST_CREATE_TABLE03 DROP INDEX TEST_CREATE_TABLE03_NAME_INDEX;</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_p17366193816128"><strong id="EN-US_TOPIC_0000001233922193__en-us_topic_0237712416_b14272115165410">Output</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001233922193__en-us_topic_0238518448_en-us_topic_0237362258_en-us_topic_0214164733_screen936612384127">CREATE TABLE "public"."test_create_table03"
|
|
||||||
(
|
|
||||||
"demand_id" INTEGER(11) NOT NULL,
|
|
||||||
"demand_name" CHAR(100) NOT NULL,
|
|
||||||
"theme" VARCHAR(200) DEFAULT NULL,
|
|
||||||
"send_id" INTEGER(11) DEFAULT NULL,
|
|
||||||
"send_name" CHAR(20) DEFAULT NULL,
|
|
||||||
"send_time" TIMESTAMP WITHOUT TIME ZONE DEFAULT NULL,
|
|
||||||
"demand_content" TEXT NOT NULL
|
|
||||||
)
|
|
||||||
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
|
|
||||||
NOCOMPRESS
|
|
||||||
DISTRIBUTE BY HASH ("demand_id");
|
|
||||||
|
|
||||||
CREATE INDEX "test_create_table03_name_index" ON "public"."test_create_table03" ("demand_name");
|
|
||||||
DROP INDEX "test_create_table03_name_index" RESTRICT;</pre>
|
|
||||||
</li></ol>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="familylinks">
|
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_sct_0013.html">MySQL Syntax Migration</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,31 +0,0 @@
|
|||||||
<a name="EN-US_TOPIC_0000001234042131"></a><a name="EN-US_TOPIC_0000001234042131"></a>
|
|
||||||
|
|
||||||
<h1 class="topictitle1">Comments</h1>
|
|
||||||
<div id="body8662426"><p id="EN-US_TOPIC_0000001234042131__en-us_topic_0238518449_en-us_topic_0237362444_en-us_topic_0214164389_p8060118">To comment out a single line, MySQL uses # or --, and <span id="EN-US_TOPIC_0000001234042131__text10892754124514">GaussDB(DWS)</span> uses --. DSC will replace # with -- for commenting out a single line during migration.</p>
|
|
||||||
<p id="EN-US_TOPIC_0000001234042131__en-us_topic_0238518449_en-us_topic_0237362444_en-us_topic_0214164389_p81991901721"><strong id="EN-US_TOPIC_0000001234042131__en-us_topic_0237712298_b177711568547">Input</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001234042131__en-us_topic_0238518449_en-us_topic_0237362444_en-us_topic_0214164389_screen82007491711">## comment sample create a table
|
|
||||||
CREATE TABLE IF NOT EXISTS `public`.`runoob_tbl`(
|
|
||||||
`runoob_id` VARCHAR,
|
|
||||||
`runoob_title` VARCHAR(100) NOT NULL,
|
|
||||||
`runoob_author` VARCHAR(40) NOT NULL,
|
|
||||||
`submission_date` VARCHAR
|
|
||||||
)ENGINE=InnoDB DEFAULT CHARSET=utf8;</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001234042131__en-us_topic_0238518449_en-us_topic_0237362444_en-us_topic_0214164389_p07251520113"><strong id="EN-US_TOPIC_0000001234042131__en-us_topic_0237712298_b1278175617543">Output</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001234042131__en-us_topic_0238518449_en-us_topic_0237362444_en-us_topic_0214164389_screen1069516547110">-- comment sample create a table
|
|
||||||
CREATE TABLE "public"."runoob_tbl"
|
|
||||||
(
|
|
||||||
"runoob_id" VARCHAR,
|
|
||||||
"runoob_title" VARCHAR(100) NOT NULL,
|
|
||||||
"runoob_author" VARCHAR(40) NOT NULL,
|
|
||||||
"submission_date" VARCHAR
|
|
||||||
)
|
|
||||||
WITH ( ORIENTATION = ROW, COMPRESSION = NO )
|
|
||||||
NOCOMPRESS
|
|
||||||
DISTRIBUTE BY HASH ("runoob_id");</pre>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="familylinks">
|
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_sct_0013.html">MySQL Syntax Migration</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
@ -1,32 +0,0 @@
|
|||||||
<a name="EN-US_TOPIC_0000001188681086"></a><a name="EN-US_TOPIC_0000001188681086"></a>
|
|
||||||
|
|
||||||
<h1 class="topictitle1">Databases</h1>
|
|
||||||
<div id="body8662426"><p id="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_p8060118">In MySQL, <strong id="EN-US_TOPIC_0000001188681086__en-us_topic_0237712327_b528616615552">DATABASE</strong> is a schema object, which is equivalent to the <strong id="EN-US_TOPIC_0000001188681086__en-us_topic_0237712327_b172861761554">SCHEMA</strong> of Oracle and <span id="EN-US_TOPIC_0000001188681086__text10892754124514">GaussDB(DWS)</span>. DSC supports the following two scenarios:</p>
|
|
||||||
<ol id="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_ol1736417294121"><li id="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_li183641029171215">Database creation<p id="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_p1855594731211"><a name="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_li183641029171215"></a><a name="en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_li183641029171215"></a><strong id="EN-US_TOPIC_0000001188681086__en-us_topic_0237712327_b1728786125519">Input</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_screen169591514151515">create database IF NOT EXISTS dbname1 CHARACTER SET=utf8 COLLATE=utf8_unicode_ci;
|
|
||||||
create database IF NOT EXISTS dbname2;
|
|
||||||
|
|
||||||
drop database if exists dbname1;
|
|
||||||
drop database if exists dbname2;</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_p11379175171517"><strong id="EN-US_TOPIC_0000001188681086__en-us_topic_0237712327_b1628717615515">Output</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_screen15279195812187">CREATE SCHEMA "dbname1";
|
|
||||||
CREATE SCHEMA "dbname2";
|
|
||||||
|
|
||||||
DROP SCHEMA IF EXISTS "dbname1";
|
|
||||||
DROP SCHEMA IF EXISTS "dbname2";</pre>
|
|
||||||
</li><li id="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_li432033715120">Database use<p id="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_p14618341205"><a name="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_li432033715120"></a><a name="en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_li432033715120"></a><strong id="EN-US_TOPIC_0000001188681086__b1200422904">Input</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_screen448564592010">drop database if exists test;
|
|
||||||
create database if not exists test;
|
|
||||||
use test;</pre>
|
|
||||||
<p id="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_p1179214391201"><strong id="EN-US_TOPIC_0000001188681086__b384713661">Output</strong></p>
|
|
||||||
<pre class="screen" id="EN-US_TOPIC_0000001188681086__en-us_topic_0238518450_en-us_topic_0237362328_en-us_topic_0214164420_screen1339248152014">DROP SCHEMA IF EXISTS "test";
|
|
||||||
CREATE SCHEMA "test";
|
|
||||||
SET CURRENT_SCHEMA = "test";</pre>
|
|
||||||
</li></ol>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<div class="familylinks">
|
|
||||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_sct_0013.html">MySQL Syntax Migration</a></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user