jdbc commit issue - JDBC JAVA

This is a discussion on jdbc commit issue - JDBC JAVA ; Hi, I'm facing some problems with the JDBC connection commit. I'm using an Oracle8i client and server. The jdbc library is classes12.jar My application uses eclipse3.1 as an IDE and the jdk version is jdk1.5.0_01 The flow of logic is ...

+ Reply to Thread
Results 1 to 2 of 2

jdbc commit issue

  1. Default jdbc commit issue

    Hi,

    I'm facing some problems with the JDBC connection commit.
    I'm using an Oracle8i client and server.
    The jdbc library is classes12.jar

    My application uses eclipse3.1 as an IDE and the jdk version is
    jdk1.5.0_01

    The flow of logic is such that I acquire 2 to 3 connections to my
    database repository. On each of these connections some update/insert
    statements
    are executed (through jdbc PrepareStatement->executeUpdate())
    After the update statements I issue a connection.commit() on each of
    the connections where update statements are fired.

    I have noticed sometimes that although connection.commit has been
    issued, my DB does not have any data.

    If anyone has any clue to this please let me know.


    Thanks for your time.
    Arti


  2. Default Re: jdbc commit issue

    Arti wrote:
    > I'm facing some problems with the JDBC connection commit.
    > I'm using an Oracle8i client and server.
    > The jdbc library is classes12.jar
    >
    > My application uses eclipse3.1 as an IDE and the jdk version is
    > jdk1.5.0_01
    >
    > The flow of logic is such that I acquire 2 to 3 connections to my
    > database repository. On each of these connections some update/insert
    > statements
    > are executed (through jdbc PrepareStatement->executeUpdate())
    > After the update statements I issue a connection.commit() on each of
    > the connections where update statements are fired.
    >
    > I have noticed sometimes that although connection.commit has been
    > issued, my DB does not have any data.


    1) It sounds very weird that you do not get an exception and data
    are not there.

    You are not eating exceptions ?

    2) Sounds as if you could use a transaction manager.

    Arne

+ Reply to Thread

Similar Threads

  1. CLOB issue with JDBC, IBATIS and Oracle 10g
    By Application Development in forum JDBC JAVA
    Replies: 9
    Last Post: 09-24-2007, 01:32 PM
  2. CLOB issue with JDBC, IBATIS and Oracle 10g
    By Application Development in forum Java
    Replies: 1
    Last Post: 09-21-2007, 06:06 AM
  3. JDBC commit problem
    By Application Development in forum JDBC JAVA
    Replies: 1
    Last Post: 06-12-2007, 09:31 AM
  4. jdbc commit issue
    By Application Development in forum JDBC JAVA
    Replies: 0
    Last Post: 03-13-2007, 01:05 AM
  5. jdbc commit issue
    By Application Development in forum JDBC JAVA
    Replies: 0
    Last Post: 03-13-2007, 12:49 AM