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

Home -> Community -> Usenet -> c.d.o.misc -> Transactions with Oracle and JDBC Thin - Driver

Transactions with Oracle and JDBC Thin - Driver

From: Dirk Poppke <poppke_at_iug.cs.uni-dortmund.de>
Date: Wed, 2 Feb 2000 14:00:34 +0100
Message-ID: <8799pj$atp$1@fbi-news.cs.uni-dortmund.de>


Hi!

I would like to make a transaction with JDBC and Oracle 8.1.5. The Problem: Rollback doesn't work. The code is like this:

    conn.commit();
    conn.setAutoCommit(false);

    Statement stmt = conn.getStatement();

    stmt.execute("create table testtable (test int)");

    conn.rollback();

    stmt.close();

After running this code, the testtable is created, though it should be rolled back!

Does anyone have got a clue?

Thanks in advance,
Dirk Received on Wed Feb 02 2000 - 07:00:34 CST

Original text of this message

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