简体   繁体   English

从SQL Server批量复制到Oracle

[英]Bulk Copy from SQL Server to Oracle

I have a requirement for a project to move data from SQL Server to Oracle in bulk mode. 我需要一个项目以批量模式将数据从SQL Server迁移到Oracle。 There is OracleBulkCopy from DataDirect and ODP .net but to use that I have to first convert the data reader from SQL server into a CSV file and then can export that using bulk copy.This is a very inefficient process and I was wondering if there is another way.We can't use Linked servers. 有来自DataDirect和ODP .net的OracleBulkCopy,但是要使用它,我必须先将SQL Server的数据读取器转换为CSV文件,然后可以使用批量复制将其导出。这是一个非常低效的过程,我想知道是否有另一种方式。我们不能使用链接服务器。

IF you use SSIS you should be able to directly load data to an ORacle database withouthgoing through the step of creating a text file for the load. 如果使用SSIS,您应该能够直接将数据加载到ORacle数据库,而无需执行创建用于加载的文本文件的步骤。 This assumes the Oracle database is availble in your network. 假设您的网络中有Oracle数据库可用。

You can export your sql server data to a flat file or a comma separated file. 您可以将sql server数据导出到平面文件或逗号分隔的文件中。 You can use that flat file as an external table in Oracle. 您可以将该平面文件用作Oracle中的外部表。

An other solution is to create a database link from Oracle to sql server and to do 'select .. from ssss@db_link'. 另一种解决方案是创建从Oracle到SQL Server的数据库链接,并“从ssss @ db_link中选择..”。

What is your data volume ? 您的数据量是多少?

If its not too huge, then try using Access as a bridge between the two DBs. 如果它不是太大,则尝试使用Access作为两个DB之间的桥梁。

In access, map the source SQLSERVER table, and the destination ORACLE table. 在访问中,映射源SQLSERVER表和目标ORACLE表。

Read from source, and write into destination, using Access. 使用Access从源读取,然后写入目标。

You can configure HS and establish a connection from your ORA db to the sql server. 您可以配置HS并建立从ORA db到sql服务器的连接。 Create a table or MV which will give you what you need. 创建一个表格或MV,它将满足您的需求。

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

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