Skip to content
Advertisement

Loading data from CSV file to oracle table using sql loader

i want to load the data from CSV file to oracle table with this below condition.

if the table is empty then only the data should be loaded into table otherwise data should not be loaded.

is this requirement possible with sql loader ? or do i need to use any other ETL tool like informatica ?

Advertisement

Answer

You can use the loading option: INSERT for achieving it.

It requires the table to be empty before loading. SQL*Loader
terminates with an error if the table contains rows.

You can refer: Loading Data into Empty Tables

Cheers!!

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement