简体   繁体   中英

What is the fastest way to bulk insert fixed width flat-file data into Oracle 11g r2?

I am tasked with inserting ~1 million rows from a fixed width format flat-file on a daily basis. I do not have the privilege of direct access to the database file system. The file system also cannot be accessed by any external mounts or samba shares.

Some suggestions that i've been given on accomplishing this are:

  • Use some type of ETL application such as Scriptella
  • Convert the file to XML first and insert it that way
  • Use SQL*Loader
  • Use some type of PL/SQL script to accomplish this

The system which is available to run any of these types of solutions is Windows Server. If something can be written programmatically to accomplish this it would also have to be in C#.

What would be the most desired method for accomplishing this given the access limitations presented? Are there other solutions besides the suggestions above?

没有什么比直接加载SQL * Loader更好的了(也许外部表除外-但是由于无法访问服务器上的文件系统,因此无法使用它们)。

You could try array binding. I don't know if this will help your issue or not but it is worth checking out.

http://www.devart.com/dotconnect/oracle/articles/arraybind.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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