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 -> Implied commit in dbms_sql...?

Implied commit in dbms_sql...?

From: <devjnr_at_gmail.com>
Date: 29 Aug 2006 08:34:41 -0700
Message-ID: <1156865681.763321.81770@p79g2000cwp.googlegroups.com>


I'm using pl/sql developer and trying to test implied commit that dbms_sql should do.

I copied a proc from ora docs like this:

CREATE OR REPLACE PROCEDURE exec(STRING IN varchar2) AS

    cursor_name INTEGER;
    ret INTEGER;
BEGIN
   cursor_name := DBMS_SQL.OPEN_CURSOR;

DBMS_SQL.PARSE(cursor_name, string, DBMS_SQL.NATIVE);

   ret := DBMS_SQL.EXECUTE(cursor_name);    DBMS_SQL.CLOSE_CURSOR(cursor_name);
END; then I try to execute a delete statement on a test table:

begin
exec('delete from t');
end;

When I try to select data from table t from another session I still can see data...

If I "commit;" from window where I previously executed the proc...rows go.

Shouldn't instead be implied this commit?

Is there something that escape to me...

Thx to all. Received on Tue Aug 29 2006 - 10:34:41 CDT

Original text of this message

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