473,385 Members | 1,863 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,385 software developers and data experts.

SQL7962 Error When Selecting From AS400 DB2 Database

Hello.

I have a curious problem.

Occasionally executing a simple select against an AS400 DB2 database
through JDBC fails with the following error: (SQLState = 57014) -
java.sql.SQLException: [SQL7962] Cursor CRSR0002 opened.

Does anyone know what might be causing this error?

Thanks.

- Mat

May 4 '06 #1
6 7215

<mp******@forzani.com> wrote in message
news:11**********************@i39g2000cwa.googlegr oups.com...
Hello.

I have a curious problem.

Occasionally executing a simple select against an AS400 DB2 database
through JDBC fails with the following error: (SQLState = 57014) -
java.sql.SQLException: [SQL7962] Cursor CRSR0002 opened.

Does anyone know what might be causing this error?

You haven't given us a lot of clues to unravel this mystery - particularly
the source code for your program - so this is strictly a wild guess: maybe
the cursor is already open and you are trying to open it a second time?

--
Rhino
May 4 '06 #2
mp******@forzani.com wrote:
Hello.

I have a curious problem.

Occasionally executing a simple select against an AS400 DB2 database
through JDBC fails with the following error: (SQLState = 57014) -
java.sql.SQLException: [SQL7962] Cursor CRSR0002 opened.

Does anyone know what might be causing this error?

SQLSTATE 57014 normally yields SQLCODE -952, which indicates some type
of abnormal end of processing (see below). SQL7962 is an info message
(not an error) and should not be related to SQLSTATE 57014.

Your best bet is probably examining the job log of the job associated
with the JDBC client (often a QSQSRVR or QZDASOINIT prestart job). Find
the SQL0952 message and look for any messages in the job log previous to
that. Often another message will explain the root cause.
wrkmsgd sql0952 qsqlmsg


Message ID . . . . . . . . . : SQL0952

Message file . . . . . . . . : QSQLMSG

Library . . . . . . . . . : QSYS

Message . . . . : Processing of the SQL statement ended. Reason code
&1.
Cause . . . . . : The SQL operation was ended before normal
completion. The
reason code is &1. Reason codes and their meanings are:

1 -- An SQLCancel API request has been processed, for example from
ODBC.
2 -- SQL processing was ended by sending an exception.

3 -- Abnormal termination.

4 -- Activation group termination.

5 -- Reclaim activation group or reclaim resources.

6 -- Process termination.

7 -- An EXIT function was called.

8 -- Unhandled exception.

9 -- A Long Jump was processed.

10 -- A cancel reply to an inquiry message was received.

11 -- Open Database File Exit Program (QIBM_QDB_OPEN).

0 -- Unknown cause.

Recovery . . . : If the reason code is 1, a client request was made
to cancel SQL processing. For all other reason codes, see previous
messages to determine why SQL processing was ended.
--
Karl Hanson
May 5 '06 #3
I appreciate the fact that the information I have provided much
information. The reason no JDBC or SQL code has been posted is because
it is actually burried in a third-party component which seems to work
fine except for this one case. I'm actually starting to suspect some
kind of incompatability between the driver and the back-end. Thank you
for taking the time to reply. I appreciate it.

May 5 '06 #4
Thank you very much for the advice. The reason code we came up with is
0 -- Unknown cause, which seems odd. I'm starting to suspect some kind
of incompatability between the driver and the back-end. What do you
think?

May 5 '06 #5
mp******@forzani.com wrote:
Thank you very much for the advice. The reason code we came up with is
0 -- Unknown cause, which seems odd. I'm starting to suspect some kind
of incompatability between the driver and the back-end. What do you
think?


(re-posting, since it appears the previous attempt failed)

The 0 reason code does sound odd. If there are no previous messages in
the job log related to the failure, and you know the client isn't
initiating the cancel, you could:
1) Check that your (AS/400 | iSeries | i5) server has the latest group
PTFs (fixpacks) installed:
http://www.ibm.com/servers/eserver/s...xes/index.html
2) If the latest group PTFs are installed and the problem persists, work
with your IBM service provider to further diagnose the problem.

--
Karl Hanson
May 8 '06 #6
Karl.

We are using a third party driver right now and we have just switched
to the corresponding driver from IBM to see if that improves our
situation. That way, if we get the same problem we'll be able to go to
IBM for support.

Thank you so much for your help.

May 8 '06 #7

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

Similar topics

6
by: Rowan | last post by:
Hello, I have been trying to solve this problem for a couple of weeks now with no progress. I created a package that works when it runs from my computer but when it runs as a scheduled job, it...
3
by: fn | last post by:
Can anyone help me understand what it takes to define a Linked Server connection to an IBM eSeries (AS400)? Do I need Microsoft's SNA Server or some other product or can I simply do it with the...
6
by: Martin Marques | last post by:
When running initdb on a fresh 7.4 install I get this error: postgres@bugs:~$ /usr/local/pgsql/bin/initdb -D /usr/local/pgsql/data -E latin1 The files belonging to this database system will be...
0
by: gman | last post by:
I am getting the following error while trying to connect to a DB2 database on the as400.It worked fine at first then I started getting this err message. Non-NULL controlling IUnknown was...
3
by: StephenRichter | last post by:
I have installed the trial of db2 enterprise server on my w2k PC. Have also installed fix pack 8 of that product. I am using it to connect from an asp.net web page to an IBM as400. the 400 is...
1
by: Norma | last post by:
I am trying to split a database that I created at work. It has local tables, linked tables to other Access databases on our server and also linked tables to an AS400 database in another state....
0
by: D.Saravanan | last post by:
I am using asp.net to connect to the DB2/400 database on the AS400. When I connect through windows forms or console application, the connection works fine. But when I connect through asp.net I get...
5
by: Amaryllis | last post by:
I'm trying to call a CL which is located on our AS400 from a Windows application. I've tried to code it in different ways, but I seem to get the same error every time. Does anyone have any clue...
1
Curtis Rutland
by: Curtis Rutland | last post by:
How To Use A Database In Your Program Part II This article is intended to extend Frinny’s excellent article: How to Use a Database in Your Program. Frinny’s article defines the basic concepts...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.