从 TSQL 到 PL/SQL 的迁移工具?

发布于 2024-09-07 15:27:21 字数 1491 浏览 4 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

2024-09-14 15:27:21
  1. SwisSQL - SQL Server 到 Oracle 迁移工具 3.5< /a>;
  2. tsql 到 pl sql;
  3. 将 SQL Server T-SQL 转换为 Oracle PL/SQL(语法和等效项)

但是,转换完成后可能需要执行一些优化。因此,您应该考虑在完成转换后对其进行修改。

编辑 #1

另一个有趣的工具是:

Spectral Core 的 Full Convert Enterprise

您有使用其中任何一个的经验吗?

不幸的是没有。我刚刚使用 SSIS 执行了到 SQL Server 的转换。

编辑 #2

似乎有一个直接来自 Oracle 的更合适的工具,我最好相信它。

直接来自 Oracle:从 Microsoft SQL Server 迁移到 Oracle

并且核心特点:

从 Microsoft SQL Server 迁移时,SQL Developer 迁移技术支持以下核心功能:

  • 自动将列数据类型转换为适当的 Oracle 数据类型。
  • 自动解决对象名称冲突,例如与Oracle保留字的冲突。
  • 将 T-SQL 存储过程、函数、触发器和视图解析并转换为 Oracle PL/SQL。
  • 提供高级自定义功能,例如更改数据类型映射、删除和重命名对象的能力。
  • 生成有关迁移状态的报告。
  • 生成用于创建目标 Oracle 数据库的 DDL 脚本。
  • 生成数据移动脚本
  • 在进度窗口中显示有关迁移的信息、错误和警告消息。

    1. 因此,我建议您仔细查看上面未提及的所有细节;
    2. 仔细查看该工具提供的信息详细信息;
    3. 转换后测试您的存储过程。

如果你看看 SQL Server 与 Oracle 相比没有提供什么,我会首先考虑这些。要了解这些差异,请遵循3。将 SQL Server T-SQL 转换为 Oracle PL/SQL(语法和等效项) 链接。

  1. SwisSQL - SQL Server to Oracle Migration Tool 3.5;
  2. tsql to pl sql;
  3. Convert SQL Server T-SQL to Oracle PL/SQL (syntax and equivalences);

However, there are some optimisation that may be required to perform after the conversion is done. So, you should consider revising the conversion after it is done.

EDIT #1

Another interesting tool would be:

Spectral Core's Full Convert Enterprise

Do you have experience with any of them?

Unfortunately not. I have just performed conversions to SQL Server using SSIS.

EDIT #2

There seems to be a more appropriate tool directly from Oracle that I would better trust.

Directly from Oracle: Migrating from Microsoft SQL Server to Oracle

And the core features:

SQL Developer Migration technology supports the following core features when migrating from Microsoft SQL Server:

  • Automatically converts column data types to appropriate Oracle data types.
  • Automatically resolves object name conflicts, such as conflicts with Oracle reserved words.
  • Parses and transforms T-SQL stored procedures, functions, triggers, and views to Oracle PL/SQL.
  • Provides advanced customization capabilities such as the ability to change data type mappings, delete and rename objects.
  • Generates reports about the status of the migration.
  • Generates the DDL scripts for the creation of the destination Oracle database.
  • Generates scripts for data movement
  • Displays informational, error, and warning messages about the migration in a progress window.

    1. So, I would suggest that you look out everything in details that is not above-mentionned;
    2. Take a good look to the information details provided by the tool;
    3. Test your stored procedures after they are converted.

If you take a look as what SQL Server doesn't offer in comparison to Oracle, these are points where I would look first. In order to know these differences, follow the 3. Convert SQL Server T-SQL to Oracle PL/SQL (syntax and equivalences) link above.

万劫不复 2024-09-14 15:27:21

我建议用手做。首先,就我个人而言,100 分听起来并不算太糟糕。我敢打赌,您的开发遵循模式 - 使用 getutcdate() 而不是 current_timestamp 等。这意味着,您和您的团队将能够从中学习一些非常重复的问题。对我来说,这将带来教您 PL/SQL 细微差别/扩展的额外好处,您可能需要学习这些才能维护/扩展新系统。

祝你好运!

I would suggest doing it by hand. First, to me, personally, a 100 doesn't sound too bad at all. I'd bet that your development follows patterns - using getutcdate() instead of current_timestamp, etc. This means, there probably are a few very repetitive problems that you and your team will be able to learn from. To me, this will hold the added benefit of teaching you PL/SQL nuances/extensions, which you'll probably need to learn in order to maintain / expand the new system.

Good luck!

柒七 2024-09-14 15:27:21

过去我尝试过相反的做法,但恐怕没有100%可靠的方法。某些功能对于每个 RDBMS 都是唯一的,无法通过工具复制(例如 SQL Server 中的 IDENTITY 字段与 Oracle 中的序列)。考虑到最后我必须检查每个存储过程以确保它执行其应做的操作,我意识到最好计划一个手动端口并在执行过程中学习一些 PL/SQL。

In the past I tried to do the opposite, but I'm afraid there's no 100% reliable way. Some features are unique to each RDBMS and can't be replicated by a tool (for example IDENTITY fields in SQL Server vs Sequences in Oracle). Considering that, at the end, I had to review each Stored Procedure to ensure it does what it's supposed to do, I realized it was better to plan a manual port and learn some PL/SQL while doing it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文