BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SQL Server Error during dbExpress Oracle transaction

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Jerry Greene
Guest





PostPosted: Tue May 08, 2007 12:57 am    Post subject: SQL Server Error during dbExpress Oracle transaction Reply with quote



Often users of my application (written in Delphi 7) get error message "SQL Server Error: ORA-00000: normal, successful completion.", and transaction rolls back.

It happens during execution of the transaction for Oracle 9i database using dbExpress.

Here is the code:

if not SQLConnection1.InTransaction then begin
td.TransactionID := 1;
td.IsolationLevel := xilREADCOMMITTED;
SQLConnection1.StartTransaction(td);

try
// … chores for SQLQuery1
SQLQuery1.ExecSQL;

// … chores for SimpleDataSet1
SimpleDataSet1. ApplyUpdates(-1);

SQLConnection1.Commit(td);
MessageBox(0, 'Success!', PChar(Application.Title), MB_OK);
except
on E: Exception do begin
SQLConnection1.Rollback(td);
MessageBox(0, PChar(E.Message), PChar(Application.Title), MB_OK);
end;
end;
end; { if not SQLConnection1.InTransaction }

Thank you for any suggestions.
Back to top
Dmitry Arefiev
Guest





PostPosted: Tue May 08, 2007 6:47 am    Post subject: Re: SQL Server Error during dbExpress Oracle transaction Reply with quote



Hello

1) What is your exact Oracle client version number ?
2) Which line of your code raises an exception ?
3) Could you provide dbExpress trace output ?

Regards,
Dmitry

--
Dmitry Arefiev - www.da-soft.com
AnyDAC - Oracle, MySQL, MSSQL, MSAccess, IBM DB2, Sybase
ASA, DbExpress, ODBC freeware data access engine
ThinDAC - multitier data access engine
Back to top
Jerry Greene
Guest





PostPosted: Tue May 08, 2007 7:49 pm    Post subject: Re: SQL Server Error during dbExpress Oracle transaction Reply with quote



1) 9.2.0.1.0
2) I have never had this error, but the clients report that they often get this error. Because all errors are captured and marked, I see that the error is generated during execution of the "SQLConnection1.Commit(td);" statement.

The weird thing is that it says "SQL Server Error", but the Oracle database connection is used.

Thank you.
Jerry

"Dmitry Arefiev" <darefiev@da-soft.com> wrote:
Quote:
Hello

1) What is your exact Oracle client version number ?
2) Which line of your code raises an exception ?
3) Could you provide dbExpress trace output ?

Regards,
Dmitry
Back to top
Martijn Tonies
Guest





PostPosted: Wed May 09, 2007 2:03 am    Post subject: Re: SQL Server Error during dbExpress Oracle transaction Reply with quote

Quote:
The weird thing is that it says "SQL Server Error", but the Oracle
database connection is used.


SQL Server -> as in, the SQL-based database server.

Not the product "Microsoft SQL Server".


--
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, NexusDB, Oracle &
MS SQL Server
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com
Back to top
Dmitry Arefiev
Guest





PostPosted: Thu May 10, 2007 2:55 pm    Post subject: Re: SQL Server Error during dbExpress Oracle transaction Reply with quote

Quote:
1) 9.2.0.1.0

1) Try to update your Oracle client to the latest 9.2 update.
It looks like a bug in Oracle client.
2) Add your issue to QC.

Regards,
Dmitry

--
Dmitry Arefiev - www.da-soft.com
AnyDAC - Oracle, MySQL, MSSQL, MSAccess, IBM DB2, Sybase
ASA, DbExpress, ODBC freeware data access engine
ThinDAC - multitier data access engine
Back to top
Jerry Greene
Guest





PostPosted: Fri May 11, 2007 12:16 am    Post subject: Re: SQL Server Error during dbExpress Oracle transaction Reply with quote

Thank you.

"Dmitry Arefiev" <darefiev@da-soft.com> wrote:
Quote:

1) Try to update your Oracle client to the latest 9.2 update.
It looks like a bug in Oracle client.
2) Add your issue to QC.

Regards,
Dmitry
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.