473,788 Members | 2,828 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQLCODE -204 using a jdbc-driver to UDB DB2 v8.2


Hi -

I just installed the express-edition of DB2 server (on a Win-XP
machine),
and then I setup a client JDBC driver to access it. The query is a
simple
'select * from EMPLOYEE' against their SAMPLE database.

(This query works fine from within 'Control Center'...there is data in
this table, etc.)

The 'connect' using JDBC works fine. It is just the SQL-query that
gives the error.
(I'm using what appears to be the latest 'type-4' (thin) driver, with
'fix patch 11'.)

So, since I'm a novice at the DB2 server, I have no CLUE where to find
a list
of SQLCODEs. (e.g. to look up value -204). Or, maybe I should be
learning
how to examine the server's log files?!?

Please advise.

TIA...

Dave

May 2 '06
11 9329

Hmmm...not sure if I understand about looking up 'PATH'. Are
you saying the DB2 has a PATH object, that is similar in concept
to the OS 'PATH'?

At any rate, what I NOW think might have happened, is that
back when I installed DB2 (which is somewhat hazy to me now),
is that maybe in ADDITION to creating the DB2ADMIN user/pwd,
it also mentioned that it could create an identity 'yaker' and I
accepted and used the same password for that as I did for
DB2ADMIN. And, that I then authenticated in explicitly under
'yaker' rather than under 'DB2ADMIN' when I created the SAMPLE
database. At least, that might explain how the SAMPLE database
got MY credentials for the name of the 'schema', rather than
the name 'DB2ADMIN'.

Anyway, I think we've beat this horse to death.

Sorry if my comments sound like I'm being over-critical of
DB2's workings. That was NOT my intent.

Cheers...

Dave

May 3 '06 #11
David H. Cook wrote:

Hmmm...not sure if I understand about looking up 'PATH'. Are
you saying the DB2 has a PATH object, that is similar in concept
to the OS 'PATH'?
Exactly. In DB2, this is the "CURRENT PATH" special register:
http://tinyurl.com/k7lxq
Sorry if my comments sound like I'm being over-critical of
DB2's workings. That was NOT my intent.


That's not a problem. We just try to explain the underlying concepts of DB2
and where you might have done a step that caused your confusion. I'm glad
that you accept such explanations. ;-)

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
May 4 '06 #12

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

Similar topics

2
7895
by: Tborn2b | last post by:
DB2 V 7, Z/OS: I receive an SQLCODE -104 for the following trigger : CREATE TRIGGER TRSERED1 NO CASCADE BEFORE INSERT ON SEMINAR REFERENCING NEW AS ZUGANG
5
45917
by: Jean-Marc Blaise | last post by:
Dear all, Could you explain why some SQL messages do not possess a SQLSTATE ? Why not transmitting the SQLSTATE of the original <sqlcode>, for example if you get a -911 on a RUNSTATS ? SQL2310N The utility could not generate statistics. Error "<sqlcode>" was returned.
1
3052
by: Kim Bundgaard | last post by:
Hi I got a sqlcode=-843 (SQL0843N) in my PL/I-program running against DB2 z/OS V7, when I issue RELEASE CURRENT. I can't see why I get this error - and I can't reproduce it. My program only do the implicit connect to local db2 subsystem, but it issue a RELEASE CURRENT and get the SQL0843N/sqlcode=-843.
4
12049
by: prasad | last post by:
I am getting sql error during binding a program which access a temporary table. The temporary table declaration and access methods are given below. EXEC SQL DECLARE GLOBAL TEMPORARY TABLE TEM88 LIKE SYSIBM.SYSDUMMY1 END-EXEC. EXEC SQL INSERT INTO TEM88 SELECT * FROM SYSIBM.SYSDUMMY1 END-EXEC.
1
1787
by: peteh | last post by:
Hi All; We have 2 open PMRs - one for AIX, one for DB2 relating to this problem, but I thought I'd see if I could make any progress in the group. We just upgraded a 4 node/36 processor configuration to AIX 5.2. We are at DB2 v8.1 (FP 5). We upgraded AIX one node at a time and began seeing periodic SQLCode -1225 and swapping issues. All nodes are now upgraded and we get more and more bouts where processes end in sqlcode -1225. Clearly,...
5
14521
by: misterutterbag | last post by:
Stack trace below. Only happens in WebSphere 6.0. DB2 v 8.2. FP12. Only against 1 database. I have other databases in this database instance, but they don't seem to have this problem. Looked up SQLCODE: -805. It said either a) the client and server versions don't match (which doesn't make
1
23796
by: amarhegde | last post by:
When u perform the SELECT operation, Sometimes u get this error Code java.rmi.RemoteException: ; nested exception is: javax.ejb.EJBException: nested exception is: com.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -302, SQLSTATE: 22001, SQLERRMC: null
7
5077
by: Gregor =?UTF-8?B?S292YcSN?= | last post by:
Hi! I was searching through DB2 InfoCenter, but didn't find an answer to my question: When I get an SQLCODE from an SQL command (ADMIN_CMD for example) when I want to know what this code means; is it a warning, error, .... Best regards, Kovi
2
8205
by: APP1MVF | last post by:
Question: I come from a COBOL/DB2 environment so I am use to being able to display the current SQLSTATE or SQLCODE following the issuing of a DB2 command, now I have move over to a LINUX/DB2 shell scripting environment and I am looking to see if it is possible for me to do the same in a shell script. So is it possible to display the current sqlcode or sqlstate and only the sqlcode or sqlstate? Could someone please give me an example? ...
3
7349
by: lenygold via DBMonster.com | last post by:
Thank you very much SERGE for your help. I found example in Graeme Birchall COOKBOOK wich i think exactly what i need for SQL check in triggers: • User query joins to table function - sends DML or DDL statement to be executed. • Table function calls stored procedure - sends statement to be executed. • Stored procedure executes statement. • Stored procedure returns SQLCODE of statement to the table function.
0
9656
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10112
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5536
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4070
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.