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

Db2cmd error

Hi,

I'm using DB2v8.1.7 on window XP. I got

DB2CMD.EXE -> 5
SQL1042C An unexpected system error occurred.

when try to execute DB2 command on CLP.

Is there any solution for this problem ? Thank you very much in advance.

Regards
Azahary
Nov 5 '09 #1
2 4481
vijay2082
112 100+
Question
Starting the DB2 UDB Command Line Processer (CLP) results in a SQL1042C message and the db2diag.log has a message indicating the CLP is not a valid Windows 32-bit application.



Cause
Starting the DB2 UDB Command Line Processor (CLP) returns a SQL1042C message and the db2diag.log shows error messages from Windows:



2005-03-09-18.00.34.382000-300 E302497H340 LEVEL: Error (OS)
PID : 2572 TID : 2772 PROC : db2.exe
INSTANCE: DB2 NODE : 000
FUNCTION: DB2 UDB, oper system services, sqloexec2, probe:46
CALLED : OS, -, unspecified_system_function
OSERR : 193 "%1 is not a valid Win32 application."
There is a directory named \Program on the disk that prevents Windows from resolving search paths for the DB2 UDB CLP.



Answer
Remove or rename the directory \Program to resolve the issue. DB2 services may also hit this problem during startup. You can find more details and a resolution to this issue in the Microsoft Knowledge Base article at the following URL:
http://support.microsoft.com/default...b;en-us;812486
Nov 5 '09 #2
Hi Vijay2082,

Thank you for the reply. I'm not sure whether this error is related or not. For information, I go to the DB2 directory, i.e .......IBM\SQLLIB\BIN and then double click the db2cmd.exe and nothing happen. If I issue db2cmd using window prompt I got error mentioned above.

Also I did tried to activate CLP using DB2 panel i.e START -> ALL PROGRAMS -> IBM DB2 -> COMMAND LINE TOOLS -> COMMAND LINE PROCESSOR............ but noting appear at my PC. meaning that the CLP command prompt panel doesn't appear in order for me to keyin the db2 command.

Any idea or workaround regarding this problem ?

Thank you and regards
Azahary
Nov 6 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
4
by: Peter Postlbauer | last post by:
hi newsgroup, is there a way to pass a parameter (e.g. password) to a db2script? Example: db2cmd /c db2 -t -fscript.clp script.clp: ---------- connect to mydatabase user myself using...
7
by: rhjaisingh | last post by:
Folks, I need to create a batch file that will do the following - Establish a DB2 instance Connect to a certain database Get data using an sql and output it to a file So, this is what I...
0
by: wb5plj | last post by:
Hi I am having a problem passing some sql to the db2cmd via ant. This is very confusing as I am doing this exact thing elseware with no problem (just differant sql, and I have verified the sql is...
1
by: udbadmin | last post by:
Where do you get examples for running db2 udb commands from db2cmd command line editor. Any good sites ...? Need help with db2cmd commands - How to connect to the database using db2cmd? How to...
6
by: Mesan | last post by:
Does anyone have an idea what it takes to administer DB2 through PowerShell? I want to write some scripts to automate my common DB2 management tasks and I'd really like to be able to use...
0
by: DeepthiSem | last post by:
Hi Everyone I have an issue in running the DB2 command script using Batch file from Windows application. From my application i am calling the batch file which inturn runs the Db2cmd prompt . ...
1
by: Cragu | last post by:
Hi Gurus, I'm trying to extract the data from DB2 datas. I used DB2CMD to connect from the CMD prompt from there I'm running a batch file. In that batch file, I will connect to the database...
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...
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
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.