472,958 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 3870
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.