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: ORA-12838 please : Is possible to append two times to the same table before doing a commit

Re: ORA-12838 please : Is possible to append two times to the same table before doing a commit

From: Tanel Põder <tanel.poder.003_at_mail.ee>
Date: Fri, 2 Apr 2004 11:36:13 +0300
Message-ID: <09e701c4188d$8ea9e210$6df923d5@porgand>


Hi!

> I believe Oracle is enforcing this to guarantee consistency of the
> database. I realise you are probably using the APPEND hint for
performance
> reasons but is it really necessary?

Yes, when you're doing an insert in append mode, Oracle takes an exclusive lock on the table and inserts rows above high-water-mark, without raising the highwatermark itself. HWM is risen to appropriate position when you commit, so when you rollback, the HWM is just left where it was before.

I don't see a reason why the same session shouldn't be able to do several consecutive direct load inserts on a table, but I might have missed something, or Oracle just hasn't implemented this improvement yet...

Tanel.



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Fri Apr 02 2004 - 02:32:43 CST

Original text of this message

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