Essay on the use of domestic magical data

1. Download and install 

Download the version corresponding to the system  from Shentong’s official website Shenzhou Universal . The one chosen here is ShenTong7.0.8_342.139_win64.zip

A complete installation is used. There is a corresponding interface after installation. The main use is dba and sql interactive tools. 

 2. Use dba to connect to the corresponding database, 

The default password for OSRDB is szoscar55

3. Use the data migration tool to migrate the data in the original pg database

  After selecting the source and destination database addresses and entering the correct username and password, you can proceed with the migration.

Note that when migrating here, the table name will be changed to uppercase after being checked. You need to configure the following parameters on the url connection to ignore case.

&COMPATABLE_DBMS=1&LOWER_CASE_TABLE_NAMES=0&NAME_CASE_SENSITIVE=false

If there is a string default value in the migrated table, the length needs to be adjusted manually. 

The automatically generated statement is

  TENANT_ID character varying(255) DEFAULT ('01b93ddbb36b4fe69c789595ab686597')::character varying(1) 

This will report an error 

String overflow, value too long for type character varying(1)
needs to be manually adjusted to:

TENANT_ID character varying(255) DEFAULT '01b93ddbb36b4fe69c789595ab686597'

 

The problems encountered so far will be recorded if there are any problems in the future.

Guess you like

Origin blog.csdn.net/u012440725/article/details/131570351