更新时间:2024-04-18 GMT+08:00
分享

Oracle SQL配置

设置Oracle配置参数可在迁移Oracle数据库脚本时自定义迁移工具的行为。

打开config文件夹中的features-oracle.properties文件,并根据实际需要设置表1中的参数。

表1 features-oracle.properties文件中的配置参数

参数

说明

取值范围

默认值

样例

  • exceptionHandler

指定PL/SQL中的异常块是否必须被注释掉。

设为True,表示必须被注释掉。

设为False,表示保留原样。

说明:

V100R002C60版本不支持exceptionHandler。

  • true
  • false

false

exceptionHandler=TRUE

  • TxHandler

指定PL/SQL中的提交或回退操作是否必须被注释掉。

设为True,表示必须被注释掉。

设为False,表示保留原样。

  • True
  • False

True

TxHandler=True

  • foreignKeyHandler

设置DSC对Foreign Key约束的处理方法。

设为true,可在迁移时将语句注释掉。

设为false,可跳过迁移,原样复制语句。

  • true
  • false

true

foreignKeyHandler=true

  • globalTempTable

该参数的值支持GLOBAL和LOCAL。目标数据库当前不支GLOBAL。

  • GLOBAL
  • LOCAL

LOCAL

encodingFormat=LOCAL

  • onCommitDeleteRows

该参数的值支持DELETE和PRESERVE。当前版本V100R008

  • DELETE
  • PRESERVE

DELETE

onCommitDeleteRows=DELETE

  • maxValInSequence

设置数据库可以支持的最大序列值。目前,数据库支持的最大值是9223372036854775807。

1-9223372036854775807

9223372036854775807

maxValInSequence=9223372036854775807

  • mergeImplementation

设置merge语句迁移方法。

SPLIT:通过将merge语句拆分为单个查询进行优化。

WITH:使用WITH子句来迁移整个merge语句。

  • WITH
  • SPLIT
  • None

WITH

mergeImplementation=None

  • RemoveHashPartition

设置DSC对HASH PARTITION语句的处理方法。

设为true,可在迁移时将语句注释掉。

设为false,可跳过迁移,原样复制语句。

  • true
  • false

true

RemoveHashPartition=false

  • RemoveHashSubPartition

设置DSC对HASH SUBPARTITION语句的处理方法。

设为true,可在迁移时将语句注释掉。

设为false,可跳过迁移,原样复制语句。

  • true
  • false

true

RemoveHashSubPartition=false

  • RemoveListPartition

设置DSC对LIST PARTITION语句的处理方法。

设为true,可在迁移时将语句注释掉。

设为false,可跳过迁移,原样复制语句。

  • true
  • false

true

RemoveListPartition=false

  • RemoveListSubPartition

设置DSC对LIST SUBPARTITION语句的处理方法。

设为true,可在迁移时将语句注释掉。

设为false,可跳过迁移,原样复制语句。

  • true
  • false

true

RemoveListSubPartition=false

  • RemoveRangeSubPartition

设置DSC对RANGESUBPARTITION语句的处理方法。

设为true,可在迁移时将语句注释掉。

设为false,可跳过迁移,原样复制语句。

  • true
  • false

true

RemoveRangeSubPartition=false

  • MigSupportSequence

设置DSC对SEQUENCE语句的处理方法。

设为true,可将CREATE脚本转换为INSERT脚本。

设为false,则无法迁移CREATE脚本。

  • true
  • false

true

MigSupportSequence=false

  • RemovePartitionTS

设置是否注释掉 PartitionTS 语句。

设为true,注释 PartitionTS 语句。

设为false,原样保留PartitionTS 语句。

  • true
  • false

true

RemovePartitionTS=true

  • BitmapIndexSupport

设置是否注释掉 BitmapIndex。

设为COMMENT,注释BitmapIndex。设为BTREE,原样保留BitmapIndex。

  • comment
  • btree

comment

BitmapIndexSupport=comment

  • pkgSchemaNaming

支持以下参数值:

设为true,将schema1.package1#procedure1 迁移为package1.procedure1。

设为false,保留schema1.package1#procedure1。

  • true
  • false

true

pkgSchemaNaming=true

  • plsqlCollection

支持以下参数值:

  • varray
  • localtable
  • none
  • varray
  • localtable
  • none

varray

plsqlCollection=varray

  • commentstorageparameter

是否注释掉表或索引中的存储参数。

设为true,注释存储参数。

设为false,原样保留存储参数。

  • true
  • false

true

commentStorageParameter=true

  • MigSupportForListAgg

是否迁移ListAgg语句。

设为true,迁移ListAgg语句。

设为false,不迁移ListAgg语句。

  • true
  • false

true

MigSupportForListAgg=false

  • MigSupportForRegexReplace

是否迁移RegexReplace语句。

设为true,迁移RegexReplace语句。

设为false,不迁移RegexReplace语句。

  • true
  • false

true

MigSupportForRegexReplace=false

  • commentPragmaAutomationTrans

是否注释掉表或索引中的AutomationTrans。

设为true,注释掉 AutomationTrans。设为false,原样保留 AutomationTrans。

  • true
  • false

true

commentPragmaAutomationTrans=true

  • supportJoinOperator

是否支持左/右外连接操作符(+)。

支持以下参数值:

  • true
  • false
  • true
  • false

false

supportJoinOperator=false

  • migInsertWithTableAlias

支持以下参数值:

  • true
  • false
  • true
  • false

true

migInsertWithTableAlias=true

  • varraySize

设置Varray数据类型的大小。

NA

1024

varraySize=1024

  • varrayObjectSize

设置Varray对象数据类型的大小。

NA

10240

varrayObjectSize= 10240

  • migrationScope

设置迁移方法:分包或整体迁移。

  • pkgSplit
  • completeMigration

completeMigration

migrationScope=completeMigration

  • migSupportConnectBy

支持以下参数值:

  • true
  • false

设为true,迁移connectBy。

  • true
  • false

true

migSupportConnectBy = true

  • migrate_ConnectBy_Unnest

是否迁移 migrate_ConnectBy_Unnest。

设为true,迁移connectBy和 Unnest。

设为false,原样保留。

  • true
  • false

true

migrate_ConnectBy_Unnest=true

  • extendedGroupByClause

是否迁移以下GROUP BY扩展功能:

  • grouping sets
  • cube
  • rollup
  • true
  • false

false

extendedGroupByClause=false

  • supportDupValOnIndex

是否迁移DUP_VAL_ON_INDEX。

  • UNIQUE_VIOLATION(V1R8)
  • OTHERS(older versions)

UNIQUE_VIOLATION

supportDupValOnIndex=UNIQUE_VIOLATION

  • pkgvariable

是否迁移pkgvariable。

  • localtable
  • sys_set_context
  • none

localtable

pkgvariable = localtable

  • addPackageNameList

支持以下参数值:

  • true
  • false

设置package_name_list=<schema_name>,然后调用该模式。

  • true
  • false

false

addPackageNameList = false

  • addPackageTag

支持以下参数值:

  • true
  • false

设为true,会在存储过程/函数声明中的AS|IS前面增加PACKAGE。

  • true
  • false

false

addPackageTag = true

  • addGrantLine

支持以下参数值:

  • true
  • false

设为true,会在文件末尾的每个存储过程/函数前面增加GRANT行。

  • true
  • false

false

addGrantLine = true

  • MigDbmsLob

支持以下参数值:

  • true
  • false

设为true,迁移DBMS_LOB。

设为false,不迁移DBMS_LOB。

  • true
  • false

false

MigDbmsLob=false

  • uniqueConsForPartitonedTable

设置分区表的unique或主键约束。

  • comment_partition
  • comment_unique
  • none

comment_partition

uniqueConsForPartitonedTable = comment_partition

  • MigSupportForRegexFunc

MigSupportForRegexReplace参数的可能取值。

  • true
  • false

false

MigSupportForRegexFunc=false

  • migSupportUnnest

migSupportUnnest的可能取值。

  • true
  • false

true

migSupportUnnest = true

  • MDSYS.MBRCOORDLIST

将不支持的数据类型MDSYS.MBRCOORDLIST替换为用户定义的数据类型。

  • None
  • Can enter any free text

None

MDSYS.MBRCOORDLIST=None

  • MDSYS.SDO_GEOMETRY

将不支持的数据类型MDSYS.SDO_GEOMETRY替换为用户定义的数据类型。

  • None
  • Can enter any free text

None

MDSYS.SDO_GEOMETRY=None

  • GEOMETRY

将不支持的数据类型GEOMETRY替换为用户定义的数据类型。

  • None
  • Can enter any free text

None

Input should not migrate.

GEOMETRY=None

  • tdMigrateAddMonth

DSC支持addMonth.可能的值。

  • true
  • false

None

tdMigrateAddMonth=false

IF TRUE THEN mig_ORA_ext.ADD_MONTHS (APPENDING mig_ORA_ext) OTHERWISE NOT APPEND.

tdMigrateAddMonth=false

DSC提供了用于删除PARTITIONS和SUBPARTITIONS的参数,因为该工具暂时无法完全支持这些关键词。用户可以选择在迁移脚本时将这些参数注释掉,也可以选择原样保留。

分享:

    相关文档

    相关产品