0

I would like to copy parts of an Oracle DB to a SQL Server DB. I need to move the data because the Oracle box is being decommissioned. I only need the data for reference purposes so don't need indexes or stored procedures or contstaints, etc. All I need is the data.

I have a link to the Oracle DB in SQL Server. I have tested the following query, which seemed to work just fine:

select * into NewTableName
from linkedserver.OracleTable

I was wondering if there are any potential issues with using this approach?

4

4 回答 4

3

使用 SSIS(sql 集成服务)可能是一个不错的选择,尤其是当您的表名在两台服务器上相同时。通过使用导入向导,它应该为您创建目标表并让您编辑任何映射。

于 2009-09-29T13:27:46.960 回答
2

我看到的唯一问题是您当然需要为您需要的每个表执行该操作。很高兴您正在停用 oracle 服务器 :-)。否则,如果您不关心索引或任何现有的存储过程,我认为您正在做的事情没有任何问题。

于 2009-09-28T23:35:32.083 回答
1

如果表很大,“选择”方法可能会非常慢。在这种情况下考虑编写 pro*C 或使用 Fastreader http://www.wisdomforce.com/products-FastReader.html

于 2009-12-31T05:02:28.163 回答
0

一种更快、更简单的方法可能是使用数据转换服务,具体取决于您尝试复制的对象数量。

于 2009-09-29T14:41:59.197 回答