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

cygwin - db2 v9 on windows

Hello,
I would like to execute bash scripts under windows calling db2* stuff.
Some time ago there was thread on cygwin and db2, and some solutions
presented there and tested by me worked on db2 v8. Unfortunatelly in
db2 v9 I cant find any db2ntclp. When I run bash within db2cmd, after
establishing connection consecutive calls of db2 cause error "SQL1024N
A database connection does not exist.".
Has anyone tested succesfully differenct strategy with cygwin and db2
v9 on wintel?

Thanks,
Bart

Oct 11 '06 #1
3 3881
I have the same issue of cygwin bash not working with DB2 V9. DB2 V9,
unlike V8, resets connection after each bash command. This made all my
shell scripts unusable. Please post a message to the group if you have
figured out a work-around.

Thanks

P Adhia.

On Oct 11, 7:41 am, "bart111111" <bartn...@gmail.comwrote:
Hello,
I would like to execute bash scripts under windows calling db2* stuff.
Some time ago there was thread oncygwinand db2, and some solutions
presented there and tested by me worked on db2 v8. Unfortunatelly in
db2 v9 I cant find any db2ntclp. When I run bash within db2cmd, after
establishing connection consecutive calls of db2 cause error "SQL1024N
A database connection does not exist.".
Has anyone tested succesfully differenct strategy withcygwinand db2
v9 on wintel?

Thanks,
Bart
Nov 30 '06 #2
In article <11**********************@n67g2000cwd.googlegroups .com>,
pa****@yahoo.com says...
I have the same issue of cygwin bash not working with DB2 V9. DB2 V9,
unlike V8, resets connection after each bash command. This made all my
shell scripts unusable. Please post a message to the group if you have
figured out a work-around.

Thanks

P Adhia.
I've had a problem with Viper on Windows XP using Object REXX which
looks like the same kind of problem.
You can find the discussion in the DB2 V9 forum at developersworks at he
wrapped link:
http://www-128.ibm.com/developerwork....jsp?forum=842
&thread=114450&cat=19

or http://tinyurl.com/fwf66

For Rexx on windows a workaround is available as you can see in the
above link but I don't know if it also works for the bash shell.

Nov 30 '06 #3
You can find the discussion in the DB2 V9 forum at developersworks at he
wrapped link:http://www-128.ibm.com/developerwork....jsp?forum=842
&thread=114450&cat=19
You nailed it!! Thank you. I just tested it and it worked after setting
the DB2CLP variable. Now I am in the same boat as you are in. Modify
all my shell scripts to make this change. Even worse, now I cannot
share shell scripts between windows and unix any more without some
fancy environment check.

I agree with you completely, scripting languages don't call C APIs,
they call commands and parse the output. If IBM's position is that DB2
CLP is an "application" rather than "interface", then I'd say, it's a
pretty useless application. Very few real life scenarios involve
writing application as a sequence of SQLs to be run unconditionally one
after another -- which is about the most CLP can do.

P Adhia

Nov 30 '06 #4

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

Similar topics

2
by: AdSR | last post by:
Hello, Nothing relevant found on Google for this, so I'm asking here. I wrote a short script that launches several threads (parallel download using urllib.urlretrieve in this case). Sometimes...
0
by: dw | last post by:
Pehaba, does anyone knows how to install MySQLdb on cygwin? - test device: MySQLdb 0.9.2.0 targz + cygwin 1.5.7-cr-0x9e + python 2.3.3 on cygwin + mysql 4.0.17 win32 - modified setup.py's...
2
by: Simon Faulkner | last post by:
Hi All, I am new to Cygwin and am hoping that someone here will be able to tell me how to get ODBC running in Python on Cygwin. Maximum gratefullness... Simon
3
by: Abby | last post by:
I'm now using Cygwin as my compiler for C code. I use Dev-c++ as my editor. The reason why I chose Cygwin compiler instead of the compiler that came with Dev-C++ is that I believe it uses the same...
2
by: 63q2o4i02 | last post by:
Hi, I'm using python 2.4 and windows XP. I have two packages in the windows version of python in site-packages. They are PyVisa and ctypes, and both live in c:\python24\lib\site-packages ...
4
by: reachsamdurai | last post by:
Hello, Can you please let me know the procedure to reach db2 command prompt from a cygwin window (hence without using Start-> Run -> db2cmd method). I'm planning to write shell scripts which...
0
by: SwampFoetus | last post by:
Hi, I was wondering if anyone can shed any light on this problem. When I configured and built PHP4 on Cygwin with gd, jpeg, and zlib it makes fine but I get the following error when I try to...
0
by: dot | last post by:
I spent a few headache filled days trying to use GMP on windows (XP pro) I finally got it to work and since I found little help on the Web I thought someone might find what i did useful. ...
8
by: Ale | last post by:
Hi! I need to compile with "Make" a source written for linux that I need to execute under a Win32 system. I tried to launch Make under cygwin, and it works fine, but it doesn't run under Win32...
2
myusernotyours
by: myusernotyours | last post by:
Hi All, Am working on a Java application in which I have to use the JNI to Interface with some native code for both windows and unix. Am using netbeans IDE with the C/C++ pack installed. Am also...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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,...
0
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...

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.