?
Solved

Can sql loader update existing records in a table ??

Posted on 2009-04-12
1
Medium Priority
?
1,525 Views
Last Modified: 2013-12-19
I'm new to the bulk utilities of oracle.  I need to import records from a flat file.  Somtimes this file can contain records that may already exist in the database.  How do I deal with this ?
0
Comment
Question by:buckrodger
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 25

Accepted Solution

by:
lwadwell earned 500 total points
ID: 24126940
Hi buckrodger,

No, SQL Loader just does inserts.  It supports four methods INSERT/APPEND/REPLACE/TRUNCATE:
The default is INSERT - which does just that, inserts the data, but expects the table to be empty first.
You can APPEND to the end of the table;
The final two are REPLACE and TRUNCATE.  With these the entire table will be erased before loading.

If you need to update existing data in a table from a file you can load the data into a another table first and then update the target table using a custom script or merge statement.

lwadwell
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Your data is at risk. Probably more today that at any other time in history. There are simply more people with more access to the Web with bad intentions.
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question