简体   繁体   English

如何将SQL Server转换为Oracle?

[英]How to Convert SQL server to Oracle?

I have a SQL server database (Tables, Views, SP...). 我有一个SQL服务器数据库(Tables,Views,SP ...)。 I need to convert this database to Oracle 10g. 我需要将此数据库转换为Oracle 10g。 How can I do it? 我该怎么做?

Transferring the data will be easy; 传输数据很容易; SQL Server integration services can do that, or Oracle's SQL Developer. SQL Server集成服务可以做到这一点,或Oracle的SQL Developer。

However, views and stored procedures are different between Oracle and SQL Server. 但是,Oracle和SQL Server之间的视图和存储过程是不同的。 SQL Server uses T-SQL, Oracle uses PL/SQL. SQL Server使用T-SQL,Oracle使用PL / SQL。 These are not very compatible and I don't know a tool can automatically convert between the two. 这些不是很兼容,我不知道一个工具可以自动在两者之间转换。 If your database relies on specific T-SQL features, you will need a developer to do the conversion. 如果您的数据库依赖于特定的T-SQL功能,则需要开发人员进行转换。

Get the jTDS jdbc driver from sourceforge . 从sourceforge获取jTDS jdbc驱动程序

Add it to Oracle SQL Developer . 将其添加到Oracle SQL Developer

Tools > Migration > Migrate 工具>迁移>迁移

在此输入图像描述

Create a migration repository in your new Oracle database. 在新的Oracle数据库中创建迁移存储库。

Create a new migration project. 创建一个新的迁移项目。

Point it to your SQL Server database. 将其指向您的SQL Server数据库。

Convert it - mind the data types. 转换它 - 介意数据类型。

Migrate the data: 迁移数据:

  1. online row-by-row inserts over JDBC. 通过JDBC在线逐行插入。 Fine for SMALL/test boxes. 适合小型/测试盒。
  2. offline - use micrsosoft's unload utility to pull the sql server down to flat files. 离线 - 使用micrsosoft的卸载实用程序将sql server拉到平面文件。 SQL Developer will create SQL*Loader scripts to put them over into Oracle. SQL Developer将创建SQL * Loader脚本以将它们放入Oracle。
  3. If you have GoldenGate licensed, use that to move the data over and to synch changes from one system to the other in case you need to keep both up and going. 如果您已获得GoldenGate许可,请使用该数据移动数据并将更改从一个系统同步到另一个系统,以防您需要保持正常运行。

Start looking at the migrated T-SQL procs and functions. 开始查看迁移的T-SQL过程和函数。 SQL Developer will leave comments for code blocks it wasn't able to translate...but you will need to TEST and VERIFY every single translation. SQL Developer将为无法翻译的代码块留下评论......但是您需要对每个翻译进行测试和验证。 Customers can see upwards to 80-90% translation rates for their T-SQL, but it could be as low as 50%...it just depends on the nature of your code. 客户可以看到他们的T-SQL的翻译率高达80-90%,但它可能低至50%......这只取决于代码的性质。

The entire process is described here. 这里描述了整个过程。

I wrote a white paper , with Sybase ASE as the example source platform, here. 我写了一篇白皮书 ,以Sybase ASE作为示例源平台,在这里。 The process is identical for SQL Server. SQL Server的过程完全相同。 It has step-by-step guidance with screenshots. 它有截图的分步指导。

If you have an Oracle account manager, reach out for help. 如果您有Oracle客户经理,请寻求帮助。 We have specialists that deal exclusively with migrations such as yours. 我们的专家专门处理您的迁移。 They have lots of practical advice and can recommend 3rd party partners if you lack the expertise. 他们有很多实用的建议,如果你缺乏专业知识,可以推荐第三方合作伙伴。

There is step by step documentation including videos on how to migrate SQL Server to Oracle DB. 有一步一步的文档,包括有关如何将SQL Server迁移到Oracle DB的视频。 You find it here: Migrating from Microsoft SQL Server to Oracle 您可以在此处找到它: 从Microsoft SQL Server迁移到Oracle

Or you can use a tool to do the job for you like Ispirer - Migrate Microsoft SQL Server to Oracle 或者您可以使用工具为您完成工作,如Ispirer - 将Microsoft SQL Server迁移到Oracle

sql developer can help. sql developer可以提供帮助。 You can download it here , it is free. 你可以在这里下载,它是免费的。 http://www.oracle.com/technology/software/products/sql/index.html http://www.oracle.com/technology/software/products/sql/index.html

You basicaly setup an Oracle Server, once its ready you migrate your tables using a software made for that. 您基本上设置了Oracle Server,一旦准备就绪,您就可以使用为此制作的软件来迁移表。 I guess this script can do the job: m2o 我想这个脚本可以完成这项工作: m2o

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM