HomeMogDBMogDB StackUqbar

Documentation:v2.0

Supported Versions:

MogDB as a Source Database

Supported Version

Database version: 505.2.0 or later version

Note: GaussDB is the source database and does not support incremental synchronization. Please set migrationStage to 结构同步,全量迁移 as the advanced parameter of the channel.

Database Configuration

Modify the HBA Configuration of the Source Database

In the data directory, find the gs_hba.conf configuration file, add the following content to add the replication permission.

Note: mdb_user indicates the user for using the replication function. It needs to be modified based on actual requirement.

# Replace <data_directory> with the actual data directory. 
cat >> <data_directory>/gs_hba.conf <"EOF"

# Add for MDB replication
host  all          mdb_user   0.0.0.0/0  sha256
host  replication  mdb_user   0.0.0.0/0  sha256
EOF

Set User Permission

Create the mdb_user user for logging in to and replicate source MogDB data. The username and password need to be modified based on the actual requirement.

  • The login permission is used for logging in to the database.
  • The replication permission is used for synchronizing incremental data.
  • The sysadmin permission is used for initializing objects and synchronizing full data.
create user mdb_user with login replication sysadmin PASSWORD 'Enmo@123';

Character Set Mapping

Source Database Target Database Character Set of the Source Database Character Set of the Target Database
GaussDB Oracle BIG5 ZHT16BIG5
GaussDB Oracle EUC_JP JA16EUC
GaussDB Oracle EUC_JIS_2004 JA16EUCTILDE
GaussDB Oracle EUC_TW ZHT32EUC
GaussDB Oracle GB18030 ZHS32GB18030
GaussDB Oracle GBK ZHS16GBK
GaussDB Oracle ISO_8859_5 CL8ISO8859P5
GaussDB Oracle ISO_8859_6 AR8ISO8859P6
GaussDB Oracle ISO_8859_7 EL8ISO8859P7
GaussDB Oracle ISO_8859_8 IW8ISO8859P8
GaussDB Oracle JOHAB KO16KSCCS
GaussDB Oracle KOI8R CL8KOI8R
GaussDB Oracle KOI8U CL8KOI8U
GaussDB Oracle LATIN1 WE8ISO8859P1
GaussDB Oracle LATIN2 EE8ISO8859P2
GaussDB Oracle LATIN3 SE8ISO8859P3
GaussDB Oracle LATIN4 NEE8ISO8859P4
GaussDB Oracle LATIN5 WE8ISO8859P9
GaussDB Oracle LATIN6 NE8ISO8859P10
GaussDB Oracle LATIN7 BLT8ISO8859P13
GaussDB Oracle LATIN8 CEL8ISO8859P14
GaussDB Oracle LATIN9 WE8ISO8859P15
GaussDB Oracle SJIS JA16SJIS
GaussDB Oracle SHIFT_JIS_2004 JA16SJISTILDE
GaussDB Oracle SQL_ASCII US7ASCII
GaussDB Oracle UHC KO16MSWIN949
GaussDB Oracle UTF8 AL32UTF8
GaussDB Oracle WIN866 RU8PC866
GaussDB Oracle WIN1250 EE8MSWIN1250
GaussDB Oracle WIN1251 CL8MSWIN1251
GaussDB Oracle WIN1252 WE8MSWIN1252
GaussDB Oracle WIN1253 EL8MSWIN1253
GaussDB Oracle WIN1254 TR8MSWIN1254
GaussDB Oracle WIN1255 IW8MSWIN1255
GaussDB Oracle WIN1256 AR8MSWIN1256
GaussDB Oracle WIN1257 BLT8MSWIN1257
GaussDB Oracle WIN1258 VN8MSWIN1258
GaussDB MySQL UTF8 UTF8
GaussDB MySQL GBK GBK
GaussDB MySQL BIG5 BIG5
GaussDB MySQL LATIN1 LATIN1
GaussDB MySQL LATIN2 LATIN2
GaussDB MySQL SJIS SJIS
GaussDB MySQL EUC_KR EUCKR
GaussDB MySQL KOI8U KOI8U
GaussDB MySQL LATIN5 LATIN5
GaussDB MySQL LATIN7 LATIN7
GaussDB MySQL GB18030 GB2312
GaussDB postgresql BIG5 BIG5
GaussDB postgresql EUC_CN EUC_CN
GaussDB postgresql EUC_JP EUC_JP
GaussDB postgresql EUC_JIS_2004 EUC_JIS_2004
GaussDB postgresql EUC_KR EUC_KR
GaussDB postgresql EUC_TW EUC_TW
GaussDB postgresql GB18030 GB18030
GaussDB postgresql GBK GBK
GaussDB postgresql Windows936 Windows936
GaussDB postgresql ISO_8859_5 ISO_8859_5
GaussDB postgresql ISO_8859_6 ISO_8859_6
GaussDB postgresql ISO_8859_7 ISO_8859_7
GaussDB postgresql ISO_8859_8 ISO_8859_8
GaussDB postgresql JOHAB JOHAB
GaussDB postgresql KOI8R KOI8R
GaussDB postgresql KOI8U KOI8U
GaussDB postgresql LATIN1 LATIN1
GaussDB postgresql LATIN2 LATIN2
GaussDB postgresql LATIN3 LATIN3
GaussDB postgresql LATIN4 LATIN4
GaussDB postgresql LATIN5 LATIN5
GaussDB postgresql LATIN6 LATIN6
GaussDB postgresql LATIN7 LATIN7
GaussDB postgresql LATIN8 LATIN8
GaussDB postgresql LATIN9 LATIN9
GaussDB postgresql LATIN10 LATIN10
GaussDB postgresql MULE_INTERNAL MULE_INTERNAL
GaussDB postgresql SJIS SJIS
GaussDB postgresql SHIFT_JIS_2004 SHIFT_JIS_2004
GaussDB postgresql SQL_ASCII SQL_ASCII
GaussDB postgresql UHC UHC
GaussDB postgresql UTF8 UTF8
GaussDB postgresql WIN866 WIN866
GaussDB postgresql WIN874 WIN874
GaussDB postgresql WIN1250 WIN1250
GaussDB postgresql WIN1251 WIN1251
GaussDB postgresql WIN1252 WIN1252
GaussDB postgresql WIN1253 WIN1253
GaussDB postgresql WIN1254 WIN1254
GaussDB postgresql WIN1255 WIN1255
GaussDB postgresql WIN1256 WIN1256
GaussDB postgresql WIN1257 WIN1257
GaussDB postgresql WIN1258 WIN1258
Copyright © 2011-2025 www.enmotech.com All rights reserved.