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

Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL/Plus and autocommit

Re: SQL/Plus and autocommit

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Sat, 06 Jul 2002 00:20:53 +0200
Message-ID: <cq6ciu8le9fu44lqport0mdeortl9f3b65@4ax.com>


On Fri, 5 Jul 2002 22:59:05 +0200, "Matthias Wirtz" <Matthias.Wirtz_at_epost.de> wrote:

>Hy,
>
>i encounter probs with the sql/plus function autocommit.
>
>I set autocommit on and did a lot of inserts like: INSERT INTO EMP
>(col1,col2) VALUES (val1,val2);
>
>I supposed that after each insert statement the sql/plus will do a commit.
>But i received a rollback error saying that my rollback segment is full.
>
>In my oppinion the rollback segement only needs to hold one insert
>statement. Because after each insert statement the rdbm received a commit
>an can reuse the rollback segement.
>
>Can anyone point out my missunderstanding? Thanks.

Without the exact error my assumption is you have a badly configured database, and you are indeed hitting an error after an indivdual INSERT.
Using autocommit is also considered VERY BAD practice, as you are creating mini-transactions.

Hth

Sybrand Bakker, Senior Oracle DBA

To reply remove -verwijderdit from my e-mail address Received on Fri Jul 05 2002 - 17:20:53 CDT

Original text of this message

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