已开启
[任务]: SQL Server迁移功能优化 #236
段国强创建于 1月30日
1月30日 添加了label:sig/Tools
opengauss_bot
1月30日 评论:
1月30日 评论:
Welcome To openGauss Community
Hey @duanguoqiang4 , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.
Contact Guide
If you have any questions, please contact the SIG: Tools ,
and any of the maintainers: @xiong_xjun ,
and any of the committers: @hw_hbj, @justbk, @shenzheng4, @totaj, @wang4721, @wang_xingmiao, @ywzq1161327784 .


opengauss_bot
1月30日 评论:
1月30日 评论:
This issue requires an assignee. Since you haven't specified one, we've assigned TestManager as the default assignee for this issue.


1月30日 将 TestManager 设为负责人
1月30日 将 duanguoqiang4 设为负责人,移除负责人 TestManager
1月30日 关联了pull request:优化迁移并发线程异常处理逻辑
1月30日 关联了pull request:优化csv分片逻辑,避免csv可能过大的情况
2月27日 关联了pull request:处理csv可能重复迁移问题
3月2日 关联了pull request:优化进度上报逻辑,避免迁移完成,迁移进度卡在迁移中的问题
3月3日 关联了pull request:修改csv拷贝失败时,进行逐行insert的逻辑问题
3月16日 修改了issue 的描述
感谢您为项目贡献新任务!请按照以下提示提供详细信息,以便我们更好地理解并跟进。
任务标题
SQL Server迁移功能优化
任务描述
1.解决迁移过程中异常卡顿问题
2.优化迁移进度上报逻辑,避免进度文件中表对象字段信息不完整的问题
3.优化迁移日志,增加对并发线程内部发生异常的捕获能力
issue 中的建议
3.对于带大写字母的表名,转换后还是带""保留大小写的,建议全改为全小写。因为从SQL Servce迁移过来,绝大多数都是数据库名,表名,视图名,存储过程名等对象名大小写不敏感。
4.因为迁移后,带大写字母的字段名全转换成小写的,这个本身是没问题的。但是会导致迁移主键,索引等一系列操作都会报在目标数据库表中找不到字段的错误,原因应该是迁移这些对象的时候,用了大小写敏感去完全匹配。
5.迁移存储过程,视图等操作,基本全部失败,因为数据库中存储过程或者视图一般都带有[],将数据库名,存储过程名包含起来。会报:ERROR: syntax error at or near "["
位置:20, so translate it according to sql-translator.
6.迁移存储过程的过程中,还会报: Method 1 directly execute create procedure dbo.ChangeBaseInfo has occurred an exception, detail:[..0.1:50658/..0.1:5432] ERROR: syntax error at or near "@"
位置:37, so translate it according to sql-translator.这个是不是不支持@参数?
优先级
中
相关资源或参考
补充说明