Oracle to MySQL conversion settings
The following settings apply when the source is Oracle and the target is Amazon RDS for MySQL or Amazon Aurora MySQL. You can configure these settings using the Amazon Web Services Management Console or the ModifyConversionConfiguration API operation.
This topic covers settings specific to the Oracle to MySQL conversion path. In addition to these settings, DMS Schema Conversion provides settings that apply to all source and target pairs, such as the severity level for action-item comments in converted SQL and the option to use generative AI for conversion. For those settings, see Common conversion settings.
When you use the API or Amazon CLI, specify conversion path settings under the
section name ORACLE_TO_MYSQL. To confirm the section names that your
project uses, call DescribeConversionConfiguration first and update only
the sections present in the response.
Each setting shows the Amazon Web Services Management Console label followed by the API and Amazon CLI parameter name in parentheses. Use the parameter name when configuring settings with the API or Amazon CLI.
- Generate row id
(
GenerateRowId) -
Your source Oracle database can use the
ROWIDpseudocolumn. MySQL doesn't support similar functionality. This setting specifies whether DMS Schema Conversion emulates theROWIDpseudocolumn in the converted code.Console label API/CLI value Behavior Don't generate falseDMS Schema Conversion doesn't emulate the ROWIDpseudocolumn and leaves references as action items. Use this when your source Oracle code doesn't useROWID. The converted code runs faster.Use the bigint data type to emulate the ROWID pseudocolumn trueDMS Schema Conversion emulates the ROWIDpseudocolumn in the converted code by using thebigintdata type.Type: Boolean (
true|false)Default:
falseNote
For the Oracle to MySQL conversion path,
GenerateRowIdis a Boolean (true|false) and emulates theROWIDpseudocolumn by using thebigintdata type only. For the Oracle to PostgreSQL conversion path, the same setting is a string enumeration that also offers acharacter varyingemulation option (GENERATE_AS_CHARACTER_DOMAIN_TYPE). For more information, see Oracle to PostgreSQL conversion settings.
Function conversion settings
By default, DMS Schema Conversion emulates Oracle conversion functions in the converted code so
that the result matches the Oracle behavior. If your source code doesn't rely on
Oracle-specific formatting, you can convert these functions to the native MySQL
equivalents instead. Native functions run faster, so set these options to
true only after you verify that your usage is compatible with
MySQL.
- Use a native MySQL TO_CHAR function
(
ToCharFunctionOracle) -
Specifies whether DMS Schema Conversion converts Oracle
TO_CHARfunction calls to the native MySQL function instead of emulating the Oracle-specific formatting.-
false— DMS Schema Conversion emulates the Oracle-specific formatting ofTO_CHARin the converted code. -
true— Calls are converted to the native MySQLTO_CHARfunction. Use this when your source code doesn't use Oracle-specific format strings.
Type: Boolean (
true|false)Default:
false -
- Use a native MySQL TO_DATE function
(
ToDateFunctionOracle) -
Specifies whether DMS Schema Conversion converts Oracle
TO_DATEfunction calls to the native MySQL function instead of emulating the Oracle-specific formatting.-
false— DMS Schema Conversion emulates the Oracle-specific formatting ofTO_DATEin the converted code. -
true— Calls are converted to the native MySQLTO_DATEfunction. Use this when your source code doesn't use Oracle-specific format strings.
Type: Boolean (
true|false)Default:
false -
- Use a native MySQL TO_NUMBER function
(
ToNumber) -
Specifies whether DMS Schema Conversion converts Oracle
TO_NUMBERfunction calls to the native MySQL function instead of emulating the Oracle-specific formatting.-
false— DMS Schema Conversion emulates the Oracle-specific formatting ofTO_NUMBERin the converted code. -
true— Calls are converted to the native MySQLTO_NUMBERfunction. Use this when your source code doesn't use Oracle-specific format strings.
Type: Boolean (
true|false)Default:
false -
- Improve the performance of the converted code where the
database and applications use the same time zone
(
ToTimeZone) -
Specifies whether DMS Schema Conversion emulates time zones in the converted code.
-
true— DMS Schema Conversion doesn't emulate time zones. Use this when your database and applications use the same time zone. The converted code runs faster. -
false— DMS Schema Conversion emulates time zones in the converted code.
Type: Boolean (
true|false)Default:
false -
Example: Configure Oracle to MySQL settings
The following example converts Oracle conversion functions to their native
MySQL equivalents for the ORACLE_TO_MYSQL section.
{ "ORACLE_TO_MYSQL": { "ToCharFunctionOracle": true, "ToDateFunctionOracle": true, "ToNumber": true } }