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

Home -> Community -> Usenet -> c.d.o.server -> Re: autocommit behaviour

Re: autocommit behaviour

From: Thomas Kyte <tkyte_at_oracle.com>
Date: 14 Mar 2002 12:55:56 -0800
Message-ID: <a6r2os0ceu@drn.newsguy.com>


In article <8193246.0203140907.6267f247_at_posting.google.com>, nandagopalj_at_hotmail.com says...
>
>Hello:
>
>I am executing the following statement from sqlplus on Oracle V8
>
>SET AUTOCOMMIT 15000;
>delete from emp where join_dt < '20000101';
>
>Would it be a true statement to say that the rollback segment grows
>only by 15000 rows, because of the autocommit being set to 15000 ?
>
>I think that the autocommit is implemented by sqlplus in this case. It
>commits only after all rows (as per where clause) are deleted. So
>autocommit may not help to minimize the rollback segments from growing
>during a delete. Any info on this is appreciated.
>
>Thanks,
>Nan.

that would autocommit every 15,000 statements:

ops$tkyte_at_ORA817DEV.US.ORACLE.COM> set autocommit 50 ops$tkyte_at_ORA817DEV.US.ORACLE.COM> show autocommit AUTOCOMMIT ON for every 50 DML statements

it does NOT autocommit every "n rows".

--
Thomas Kyte (tkyte@us.oracle.com)             http://asktom.oracle.com/ 
Expert one on one Oracle, programming techniques and solutions for Oracle.
http://www.amazon.com/exec/obidos/ASIN/1861004826/  
Opinions are mine and do not necessarily reflect those of Oracle Corp 
Received on Thu Mar 14 2002 - 14:55:56 CST

Original text of this message

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