我是界面新手,现在写我完成了一些任务。我有一个问题是:
我非常熟悉使用 putty(使用 sqlldr)将 .dat 文件(和 .ctl)中的数据加载到临时表中的方法,但我需要完成相同的任务(即将 .dat 文件中的数据加载到临时表中) ) 通过一些 pl/sql 程序。所以请提出逻辑......
Normally, you would use external tables. The syntax is going to be very similar to a SQL*Loader control file but it is an object defined in the database that allows you to expose the file as if it were a relational table. You can then do your load simply by querying the external table.
This does require, though, that the data file is present on the database server's file system.