doc-exports/docs/dws/tool/dws_16_0029.html
Lu, Huayi 27019c2991 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>
2024-05-16 07:35:25 +00:00

55 lines
7.1 KiB
HTML

<a name="EN-US_TOPIC_0000001772536408"></a><a name="EN-US_TOPIC_0000001772536408"></a>
<h1 class="topictitle1">Verification</h1>
<div id="body8662426"><div class="section" id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_section1169331364218"><h4 class="sectiontitle">Verification After Migration</h4><p id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_p19830759163419">After DSC converts the source sql files, execute the converted files on target GaussDB(DWS) and provide a report with details of number of statements succeeded and failed.</p>
<p id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_p483017591347">After the DSC finishes the translation, it will invoke (controlled through a configuration item) post migration verification script. The verification script (for details about the configuration, see the configuration file) is connected to the target GaussDB database and executed.</p>
<p id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_p6830859163414">The post migration verification script will connect to the target gauss database (details are configured in a configuration file) and executes the scripts.</p>
<ol id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_ol1983055993416"><li id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_li9830125943412"><strong id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_b153807303332211">application.properties</strong> in config folder<p id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_p483055983411">Execute migrated script on Gauss DB: true/false, default value = false</p>
<p id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_p15830115913411">executesqlingauss=true</p>
<p id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_p98301159163417">true: It will execute the migrated script on gaussdb</p>
</li><li id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_li1983015923415"><strong id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_b174843945832211">gaussdb.properties</strong> in config folder<p id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_p1483015910348">#Target Database configurations</p>
<pre class="screen" id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_screen07451149133520">#gauss database user with all privileges
gaussdb-user=
gaussdb-port=
#Database name for GaussDBA
gaussdb-name=
#gaussdb ip
gaussdb-ip=</pre>
<p id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_p88306599342"><strong id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_b18830105917346"><u id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_u118307594349">Dependency on the gsql client:</u></strong></p>
<ol type="a" id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_ol138306595346"><li id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_li583075919342">gsql (GaussDB(DWS)) is required for executing scripts on GaussDB(DWS). Therefore, to ensure the smooth running of DSC, DSC is required to run on a node installed with a GaussDB(DWS) instance or client (gsql), and the user that performs verification must have the permission for executing commands using gsql.</li><li id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_li28301059153418">Since the Gauss DB Instance/Client can be installed on a Linux OS only, this can be used to verify functionality only on a Linux environment.</li><li id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_li583055993417">To execute the gsql command on a remote GaussDB instance, it is advised to add the client system IP/hostname in the following configuration file of Gauss DB instance.<pre class="screen" id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_screen3666458309">/home/gsmig/database/coordinator
---pg_hba.conf</pre>
</li></ol>
</li></ol>
<p id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_p2830175917349"><strong id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_b108301959133419"><u id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_u1830459183415">Response</u></strong></p>
<p id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_p9830175903418"><strong id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_b1483095918348">GaussDB(DWS)</strong></p>
<pre class="screen" id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_screen1483014593342">********************** Verification Started ******************************
Sql script execution on Gauss DB start time : Wed Jan 22 17:27:07 CST 2020
Sql script execution on Gauss DB end time : Wed Jan 22 17:27:44 CST 2020
Summary of Verification :
==================================================================================================================================
Statement | Total | Passed | Failed | Success Rate(%)
-----------------------------------------------------------------------------------------------------------------------------------
COMMENT | 15 | 15 | 0 | 100
CREATE VIEW | 4 | 3 | 1 | 75
CREATE INDEX | 4 | 3 | 1 | 75
CREATE TABLE | 6 | 6 | 0 | 100
ALTER TABLE | 3 | 3 | 0 | 100
---------------------------------------------------------------------------------------------------------------------------------
Total | 32 | 30 | 2 | 93
Gauss Execution Log file : /home/gsmig/18Jan/DSC/DSC/log/gaussexecutionlog.log
Gauss Execution Error Log file : /home/gsmig/18Jan/DSC/DSC/log/gaussexecutionerror.log
Verification finished in 38 seconds
********************** Verification Completed ****************************</pre>
<p id="EN-US_TOPIC_0000001772536408__en-us_topic_0000001657865230_en-us_topic_0000001396721496_p593018256347"></p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_16_0024.html">Database Schema Conversion</a></div>
</div>
</div>