| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Transactions with Oracle and JDBC Thin - Driver
"create table" is a dba command and is automatically commited if
successfull.
there is no chance to "rollback" a successfull dba statement.
Dirk Poppke wrote:
> 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
--
![]() |
![]() |