473,396 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

UDB v 8.1 on win2000 - SQL0925N SQL COMMIT invalid for application execution

Hi,

I am using UDB v 8.1 on win2000.

I have setup the ODBC datasources.

My application is connecting to the database and performing DML activities.
But I am getting the following error

SQL0925N SQL COMMIT invalid for application execution environment.
SQLSTATE=2D521

My db2cli.ini settings are
[DTPVPD02]
DEFERREDPREPARE=0
CURSORHOLD=0
CURRENTSCHEMA=VIPS
CONNECTTYPE=2
SYNCPOINT=2
AUTOCOMMIT=0
DBALIAS=DTPVPD02

Application works perfectly fine in UDB v7.2

Is the CONNECTTYPE=2 and SYNCPOINT=2 are supported in UDB v8.

If not what is the equivalent settings needs to be in db2cli.ini

Would appreciate your help.

cheers
vijai
Nov 12 '05 #1
6 2704
You're not trying to commit in a stored procedure, right?

I'd guess you need to check your server side settings...one of the
servers doesn't have a tp monitor spm or somthing set up...

vijai kumar via DBMonster.com wrote:
Hi,

I am using UDB v 8.1 on win2000.

I have setup the ODBC datasources.

My application is connecting to the database and performing DML activities.
But I am getting the following error

SQL0925N SQL COMMIT invalid for application execution environment.
SQLSTATE=2D521

My db2cli.ini settings are
[DTPVPD02]
DEFERREDPREPARE=0
CURSORHOLD=0
CURRENTSCHEMA=VIPS
CONNECTTYPE=2
SYNCPOINT=2
AUTOCOMMIT=0
DBALIAS=DTPVPD02

Application works perfectly fine in UDB v7.2

Is the CONNECTTYPE=2 and SYNCPOINT=2 are supported in UDB v8.

If not what is the equivalent settings needs to be in db2cli.ini

Would appreciate your help.

cheers
vijai

Nov 12 '05 #2
"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:42********@news3.prserv.net...
You're not trying to commit in a stored procedure, right?

I'd guess you need to check your server side settings...one of the servers
doesn't have a tp monitor spm or somthing set up...

It is OK to commit is a SP on DB2 for LUW.
Nov 12 '05 #3
From a udb environment command prompt; try:
db2 ? SQL0925N

I'd guess that the second point is your problem:

o A DB2 application precompiled or set to use CONNECT 2 in a
non-TP Monitor environment has issued a dynamic SQL COMMIT
statement, whereas only static SQL COMMITs are allowed.

Methods of fixing this problem are also suggested.
Phil Sherman


vijai kumar via DBMonster.com wrote:
Hi,

I am using UDB v 8.1 on win2000.

I have setup the ODBC datasources.

My application is connecting to the database and performing DML activities.
But I am getting the following error

SQL0925N SQL COMMIT invalid for application execution environment.
SQLSTATE=2D521

My db2cli.ini settings are
[DTPVPD02]
DEFERREDPREPARE=0
CURSORHOLD=0
CURRENTSCHEMA=VIPS
CONNECTTYPE=2
SYNCPOINT=2
AUTOCOMMIT=0
DBALIAS=DTPVPD02

Application works perfectly fine in UDB v7.2

Is the CONNECTTYPE=2 and SYNCPOINT=2 are supported in UDB v8.

If not what is the equivalent settings needs to be in db2cli.ini

Would appreciate your help.

cheers
vijai


Nov 12 '05 #4
Mark A wrote:
"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:42********@news3.prserv.net...
You're not trying to commit in a stored procedure, right?

I'd guess you need to check your server side settings...one of the servers
doesn't have a tp monitor spm or somthing set up...


It is OK to commit is a SP on DB2 for LUW.

...if the proc is called by teh app.
If the proc is aclled by a function or a trigger commit and rollback are
verboten.

Cheers
Serge
--
Serge Rielau
DB2 SQL Compiler Development
IBM Toronto Lab
Nov 12 '05 #5
It's NOT ok for twophase commit.

Mark A wrote:
"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:42********@news3.prserv.net...
You're not trying to commit in a stored procedure, right?

I'd guess you need to check your server side settings...one of the servers
doesn't have a tp monitor spm or somthing set up...


It is OK to commit is a SP on DB2 for LUW.

Nov 12 '05 #6
"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:42********@news3.prserv.net...
It's NOT ok for twophase commit.

Is that what SYNCPOINT=2 means? Is a two-phase commit needed?

I found this in the V8.1 CLI Guide and Reference (pg 336), but not exactly
sure what it means in regard to this question:

SYNCPOINT CLI/ODBC Configuration Keyword

Note: This keyword is not supported in DB2 Version 8, but is available for
backward compatibility only. Refer to the documentation for previous
versions of DB2 for information on this keyword at:
http://www.ibm.com/software/data/db2/library.
Nov 12 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hari Om | last post by:
Here are the details of my error log files: I execute the command and get following message at console: ---------------------------------------------------------------------- ../sqlldr...
0
by: Anup Jishnu | last post by:
Hi, I have installed ASP.Net application on a system. When accessing the Application from within the LAN, it works fine. However, when I access the application from the Internet, some pages...
7
by: Ugrasena via DBMonster.com | last post by:
Hi team i am using DB2 7.2 on Windows2000. We have lot many SQL Procedure Calls, is there any way i can Turn off the Auto Commit on that Database, the Problem i have is many of our Application...
2
by: Grei | last post by:
how can i impersonate from win2000 to WinXP? in MSDN says: (gives example how to implemet it but not with win2000, and it doesn't say what to do on win2000!!!) any ideas? workarounds? Thanx! ...
6
by: Grei | last post by:
how can i impersonate from win2000 to WinXP? MSDN gives example how to implemet impersonation from XP to XP, but not from win2000 to XP, and it doesn't say what to do with win2000!!! any ideas?...
14
by: Ryan | last post by:
We've got as slightly unusual scenario happening whereby a statement is passed to SQL which consists of two parts. BEGIN TRANSACTION DELETE * FROM Whatever BULK INSERT INTO Whatever...(etc)...
0
by: ee_stevek | last post by:
hi guys, here is my problem: i have to maintain a web vb.net application developped some times ago. The application was developped on Windows2000 SP3 with Visual Studio 2003 (7.1). and the...
4
by: Michel Esber | last post by:
Environment: DB2 v8 LUW FP 15 running on Linux. For some reason that I canīt explain, a simple insert statement on a table may run very quickly, or may take forever (20-30mins) to finish....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.