iverycd / OracleSync2MySQL

Oracle to MySQL, PolarDB, Percona Server MySQL, MariaDB, OceanBase, TiDB, GaussDB for MySQL
MIT License
43 stars 16 forks source link

number(16,0) #2

Open chenjianke-code opened 10 months ago

chenjianke-code commented 10 months ago

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

iverycd commented 10 months ago

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

analyze table 表名 compute statistics ;

analyze table number_16 compute statistics ;