Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

commit and rollback in sqlplus session

599269Aug 15 2009 — edited Aug 16 2009
Hi All,

I have observed that whenever i do exit after an uncommited transaction say ( insert or update or delete ) statement , sqlplus commits by its on .
Why its so ?? is it a configuration in oracle ??
How can we control this behaviour ??


Eg :

$ sqlplus scott/tiger@orcl
SQL> sho autocommit
autocommit OFF

SQL>select * from foo;
A B
---------- -------
100 200
200 300

SQL>insert into foo values ( 300,200) ;
1 row created.
SQL>exit;

$ sqlplus scott/tiger@orcl
SQL > select * from x ;
A B
---------- -------
100 200
200 300
300 200

From above example :
auto commit is off . But still when session ends , its commits . Please explain .


DB : 10gR2

Thanks in Advance .
This post has been answered by Surachart Opun on Aug 16 2009
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 13 2009
Added on Aug 15 2009
6 comments
14,432 views