diff --git a/internal/dms/pkg/constant/const.go b/internal/dms/pkg/constant/const.go index 3bf4b9056..f39fe9a9f 100644 --- a/internal/dms/pkg/constant/const.go +++ b/internal/dms/pkg/constant/const.go @@ -252,6 +252,10 @@ func ParseDBType(s string) (DBType, error) { return DBTypeGaussDB, nil case "HANA": return DBTypeHANA, nil + case "PolarDB For MySQL": + return DBTypePolarDBForMySQL, nil + case "OceanBase For Oracle": + return DBTypeOceanBaseOracle, nil default: return "", fmt.Errorf("invalid db type: %s", s) @@ -272,7 +276,9 @@ const ( DBTypeHive DBType = "Hive" DBTypeDM DBType = "达梦(DM)" DBTypeGaussDB DBType = "GaussDB / openGauss" - DBTypeHANA DBType = "HANA" + DBTypeHANA DBType = "HANA" + DBTypePolarDBForMySQL DBType = "PolarDB For MySQL" + DBTypeOceanBaseOracle DBType = "OceanBase For Oracle" ) var supportedDataExportDBTypes = map[DBType]struct{}{ @@ -290,7 +296,9 @@ var supportedDataExportDBTypes = map[DBType]struct{}{ DBTypeTBase: {}, DBTypeGaussDB: {}, DBTypeDB2: {}, - DBTypeHANA: {}, + DBTypeHANA: {}, + DBTypePolarDBForMySQL: {}, + DBTypeOceanBaseOracle: {}, } func CheckDBTypeIfDataExportSupported(dbtype string) bool {