OracleSync2MySQL icon indicating copy to clipboard operation
OracleSync2MySQL copied to clipboard

number(16,0)

Open chenjianke-code opened this issue 2 years ago • 1 comments

number(16,0)无法转成mysql8的bigint,但是number(12,0)可以转bigint

chenjianke-code avatar Nov 04 '23 11:11 chenjianke-code

我是根据oracle数据字典中的avg_col_len进行判断的,此列信息又是由oracle表统计信息决定,很可能某些表的统计信息不是最新导致avg_col_len没有获取到最新的长度值。你不妨对迁移失败的表手动在oracle收集统计信息,再单独迁移表即可 手动收集统计信息命令:

analyze table 表名 compute statistics ;

analyze table number_16 compute statistics ;

iverycd avatar Nov 06 '23 02:11 iverycd