Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: merge statemet

Re: merge statemet

From: Dennis Williams <oracledba.williams_at_gmail.com>
Date: Mon, 15 May 2006 09:51:30 -0500
Message-ID: <de807caa0605150751u3a0ef855w42aa4d69b627d740@mail.gmail.com>


Raj,

My understanding is that DBA_TABLE_MODIFICATIONS is based on the "good enough" assumption. Since its purpose is to simply track when statistics need refreshed, blood won't be spilled if the count is slightly off, so it doesn't have the heavy-duty locking requirements like transaction integrity does, but also doesn't have the performance overhead that requires. If you have a "blood will be spilled" situation, then MERGE probably doesn't meet your requirements.

Another idea would be to turn on tracing within your session, then create a program with something like Perl program that would scan the trace file for insert or update counts and get your count there. You would have to experiment to see which trace file options gave you the best results.

Dennis Williams

--
http://www.freelists.org/webpage/oracle-l
Received on Mon May 15 2006 - 09:51:30 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US