Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: ORA-12838 please : Is possible to append two times to the same table before doing a commit
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.
-- 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
![]() |
![]() |