On 2010-05-22 18:00, Peter Headland wrote:
Quote:
On May 21, 8:35 pm, Lennart Jonsson <erik.lennart.jons... (AT) gmail (DOT) com
wrote:
On 2010-05-22 02:14, Peter Headland wrote:
However, when I do that, I get: "REMOTE OPERATION INVALID FOR
APPLICATION EXECUTION ENVIRONMENT"
What exactly is the error message (including sqlstate et al)?
SQLState 25000, SQLCode -30090
This db is running on Windows (locally on my development machine), and
so far all I can find in the documentation is zOS-related stuff which
seems totally unrelated to what I am doing. I'm using DB2 Express
version 9.7 (sorry - should have said that up front). |
you appeared to have solved the problem below, so I'll just add a little
trick for future use. You can ask db2 for more details around a specific
sqlcode like: (this example is from 9.5 so there might be other details
for 9.7)
[....]$ db2 "? SQL30090"
SQL30090N Operation invalid for application execution environment.
Reason code = "<reason-code>".
Explanation:
The operation is invalid for the application execution environment. For
example, an operation might be invalid for applications that have
special restrictions on statements or APIs - applications such as those
that operate in an XA Distributed Transaction Processing environment,
such as CICS; those that operate with CONNECT type 2 connection
settings; or those that use federated system functionality to update
multiple heterogeneous data sources. The operation was rejected.
Possible reason codes are:
01 an SQL request that changes data (such as an INSERT or a
CREATE) was issued against a read-only database; or, a stored
procedure was invoked against a read-only database. Read-only
databases include the following types:
* Databases accessed using DRDA when operating in a unit of
work which has connection setting SYNCPOINT TWOPHASE and
executing in a non-XA/DTP environment when either a
Synchpoint Manager is not being used or the remote DRDA
database does not support level 2 DRDA protocol.
* Databases accessed by DRDA in an XA/DTP environment when
either a Synchpoint Manager gateway is unavailable or the
remote DRDA database does not support level 2 DRDA protocol.
* Databases which were not the first database updated when the
SYNCPOINT ONEPHASE connection setting is in effect for the
unit of work.
02 an API such as Precompile, Bind, or Reorganize Table which
causes internal commits was issued in an application which has
the setting CONNECT type 2 or is operating in an XA/DTP
environment.
[...]
User response:
Correct the problem by doing one of the following steps:
For reasons 01, 02, 03, 04, 06, 19, or 29,
remove the statement or API which is not supported.
[...]
/Lennart