Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: autocommit behaviour
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 CorpReceived on Thu Mar 14 2002 - 14:55:56 CST