I have a place.file text file;
place.file
- New Hampshire
- New Jersey
- New Mexico
- Nevada
- New York
- Ohio
- Oklahoma ....
There are 4000 place names in this file. I will match my my_place table in oracle and place.file . So I want to insert the place.file into the Oracle . Maybe I should use bulk insert, how can I do bulk insert ?
No mention of an Oracle version. (For the best possible answer, always include Oracle version, Oracle edition, OS, and OS version.)
However, you should investigate using an external table for this purpose. Once you have that set up correctly, you can do:
Optionally, you could use the
APPEND
hint on theINSERT
statement, to use direct load. Also,optionally, you could set theNOLOGGING
attribute on the table you're loading the data into, for best performance. But, consider the recovery implications before you enableNOLOGGING
.Hope that helps,
-Mark
You can use SQL Loader from Oracle.
The syntax is:
The control file contains: