dbTalk Databases Forums  

Row values changing back to old values randomly???

comp.databases.oracle comp.databases.oracle


Discuss Row values changing back to old values randomly??? in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
DG
 
Posts: n/a

Default Row values changing back to old values randomly??? - 05-27-2005 , 09:04 AM






Hello everyone!

Has anyone every seen the following behavior?

Oracle 9.? running on AIX, no problems here
Windows NT machine,
Oracle client installed on the NT machine with ODBC driver v 9.2.0.2

We have set up an ODBC source on the NT machine. An application (app
server) opens a connection pool with e.g. 4 read connections and 4 write
connections.

An application changes e.g. two rows in two different tables and commits.

The changed data is visible in TOAD from another machine.

After about 2 minutes, the data is reverted back to old values without
any activity from the app server whatsoever.

How is this possible? Note, this is definitely not a bug in the app
server code because the app runs without problems on 3 other Oracle
database installations and on many many other installations using
PostgreSQL, SQL Server and DB2. The app doesn't even know what the old
row values were!

Has anyone ever see something like this happening and how to solve it?

Thank you and best regards,

David

Reply With Quote
  #2  
Old   
Jim Kennedy
 
Posts: n/a

Default Re: Row values changing back to old values randomly??? - 05-27-2005 , 02:25 PM







"DG" <info (AT) no-spam-e-resitve (DOT) com> wrote

Quote:
Hello everyone!

Has anyone every seen the following behavior?

Oracle 9.? running on AIX, no problems here
Windows NT machine,
Oracle client installed on the NT machine with ODBC driver v 9.2.0.2

We have set up an ODBC source on the NT machine. An application (app
server) opens a connection pool with e.g. 4 read connections and 4 write
connections.

An application changes e.g. two rows in two different tables and commits.

The changed data is visible in TOAD from another machine.

After about 2 minutes, the data is reverted back to old values without
any activity from the app server whatsoever.

How is this possible? Note, this is definitely not a bug in the app
server code because the app runs without problems on 3 other Oracle
database installations and on many many other installations using
PostgreSQL, SQL Server and DB2. The app doesn't even know what the old
row values were!

Has anyone ever see something like this happening and how to solve it?

Thank you and best regards,

David
Sounds like a rollback is being issued or the connection dies and a rollback
is done.

I would call support.
Jim




Reply With Quote
  #3  
Old   
DG
 
Posts: n/a

Default Re: Row values changing back to old values randomly??? - 05-27-2005 , 04:10 PM



Jim Kennedy wrote:
Quote:
"DG" <info (AT) no-spam-e-resitve (DOT) com> wrote in message
news:d779e901t46 (AT) enews3 (DOT) newsguy.com...

Sounds like a rollback is being issued or the connection dies and a rollback
is done.

I would call support.
Jim


The library commits using this function:

SQLRETURN SQLEndTran(
SQLSMALLINT HandleType,
SQLHANDLE Handle,
SQLSMALLINT CompletionType);

HandleType is SQL_HANDLE_DBC
CompletionType is SQL_COMMIT

Is committing using this function from ODBC lib not durable?

Can it happen that the committed data is visible in a parallel
connection/session and that at the same time the data can be rolled back
to the point before begin of transaction which was committed? If not,
then the changes shouldn't be visible in another transaction. I though
that if MVCC is used then the changed data will be visible only *after*
commit.

Best regards,

David


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.