0

如何在 Oracle 中加载 .txt 文件这是 VB6 中的代码

Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile(controlFilePath, ForWriting, True)
Set l = fso.OpenTextFile(sLog, ForWriting, True)
f.WriteLine sCtlEntry
TimeDelay (10)
vParameters = "sqlldr datasource control=" & controlFilePath& " log=" & sLog
success = Shell(vParameters, vbHide)

如何在 C# 中将其转换为 .txt 文件包含数百万条记录。在 Oracle 中加载数据的最佳程序是什么?

4

1 回答 1

0

As I see, the process use Oracle Loader, this is a program of Oracle to load massive amounts of data, What you need to do is launch this app from c# with the parameters it accept, Here Is a Q/A of stackoveerflow about launching process in c#. In the link for Oracle Loader you can see the parameters it use. And you can see and example is this link.

于 2013-02-12T12:59:34.743 回答