Re: Merge command

  • From: genegurevich@xxxxxxxxxxxx
  • To: "'oracle-l'" <oracle-l@xxxxxxxxxxxxx>
  • Date: Thu, 10 Jan 2008 14:39:45 -0600

Thank you , Louis, Jonathan, Greg and sol beach . Really appreciate your

I don't think I will be able to use the external tables due to the fact
that the input files are located on a
remote server.   Regarding the Merge command itself, are there any specific
tuning actions I need to
do? Usually for an insert I try to drop the indices , do the insert,
rebuild the indices. For an update,
I do keep the indices. Merge is a combination of the two, so I am leaning
towards keeping the indices
on , is that reasonable?

thank you

Gene Gurevich

             "Jonathan Lewis"                                              
   >                                               To 
             Sent by:                  "'oracle-l'"                        
             oracle-l-bounce@f         <oracle-l@xxxxxxxxxxxxx>            
             01/10/2008 01:13          Re: Merge command                   
             Please respond to                                             

If you have any uniqueness constraints on the table
then you need to be sure that the merge command
will not try to break those constraints, or the whole
merge will fail and rollback.

The obvious example is where you might have two
rows with the same primary key in the flat file that
needs to be inserted - but if you have other unique
keys declared the problem becomes a little more


Jonathan Lewis

Author: Cost Based Oracle: Fundamentals

The Co-operative Oracle Users' FAQ

----- Original Message -----
From: <genegurevich@xxxxxxxxxxxx>
To: "'oracle-l'" <oracle-l@xxxxxxxxxxxxx>
Sent: Wednesday, January 09, 2008 11:01 PM
Subject: Merge command

> Hi all:
> I am running v and looking to using the MERGE command to load
> from a flat file. Some of the rows
> in the flat file are new and needs to be inserted into a fact table,
> - need to replace existing ones.
> I am planinng to have the application team load their file into a staging
> table via SQL*Loader and then load
> the data into the fact table via MERGE command. I have not used this
> command before; are there any issues
> that I should be aware of in terms of performance or bugs?
> thank you
> Gene Gurevich
> --
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.17.13/1214 - Release Date:
> 13:38



Other related posts: