Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Stored Procs within a Transaction?
Mike Ross wrote:
> "Valentin Minzatu" <valentinminzatu_at_yahoo.com> wrote in message > news:1170712850.520519.190770_at_l53g2000cwa.googlegroups.com...
> > I'm not explicitly setting an auto-commit mode. Is it set on by default in > stored procs?
No!
SQL*Plus: Release 10.2.0.2.0 - Production on Tue Feb 6 09:09:41 2007
Copyright (c) 1982, 2005, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> CREATE TABLE t (
2 col1 VARCHAR2(3));
Table created.
SQL> CREATE OR REPLACE PROCEDURE tproc AS
2 BEGIN
3 INSERT INTO t VALUES ('ZZZ');
4 END tproc;
5 /
Procedure created.
SQL> exec tproc
PL/SQL procedure successfully completed.
SQL> SELECT * FROM t;
COL
--- ZZZ SQL> rollback; Rollback complete. SQL> SELECT * FROM t; no rows selected SQL> There is no such thing in Oracle. -- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Tue Feb 06 2007 - 11:11:18 CST
![]() |
![]() |