Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use bcp utility with oracle dB or any other better options

I have a csv file which has to be bulk imported to oracle dB. I was working on other sybase dB engine before so I had a sample script which has the environment setup for it. Right now I have to do the process in a oracle dB so what should be the first line I know about the rest other parameters but want to know the path which has to be defined when I write path/bcp dbtable in data.txt If anyone could help what should be the path for oracle dB

like image 652
Noobster Avatar asked Sep 11 '25 00:09

Noobster


1 Answers

The primary tools for bulk or flat file loading are:

  1. SQL*Loader
  2. External Tables (and here)
  3. GUI Tools like SQL*Developer

It is much more cumbersome, but if necessary you can roll your own solution with the UTL_FILE PL/SQL package.

like image 130
pmdba Avatar answered Sep 13 '25 16:09

pmdba