Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

DB2 and cygwin ...

 
   Database Forums (Home) -> DB2 RSS
Next:  db_owner member execute problems  
Author Message
Dirk Deimeke

External


Since: Jul 15, 2005
Posts: 10



(Msg. 1) Posted: Fri Jul 15, 2005 7:55 am
Post subject: DB2 and cygwin ...
Archived from groups: comp>databases>ibm-db2 (more info?)

Hi,

I am running the newest Adminclient with Cygwin as shell.

db2cmd /c /w /i "bash --login -i"

In two of thre cases, I cannot connect to a database using

db2 connect to <database> user <user>

I get the question for a password, the password is typed in and I see
the last letter of the password (the other part is hidden) and the
connect goes fail.

If I try another conenct, I can see the whole password.

db2 connect to <database> user <user> using <password>

works in all cases. But it is bad to see the cleartext password.

Any ideas?

Thanks in advance

Dirk

 >> Stay informed about: DB2 and cygwin ... 
Back to top
Login to vote
Larry3

External


Since: Dec 09, 2003
Posts: 113



(Msg. 2) Posted: Fri Jul 15, 2005 7:55 am
Post subject: Re: DB2 and cygwin ... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What is the complete error msg?

Larry Edelstein

Dirk Deimeke wrote:
> Hi,
>
> I am running the newest Adminclient with Cygwin as shell.
>
> db2cmd /c /w /i "bash --login -i"
>
> In two of thre cases, I cannot connect to a database using
>
> db2 connect to <database> user <user>
>
> I get the question for a password, the password is typed in and I see
> the last letter of the password (the other part is hidden) and the
> connect goes fail.
>
> If I try another conenct, I can see the whole password.
>
> db2 connect to <database> user <user> using <password>
>
> works in all cases. But it is bad to see the cleartext password.
>
> Any ideas?
>
> Thanks in advance
>
> Dirk

 >> Stay informed about: DB2 and cygwin ... 
Back to top
Login to vote
Dave Hughes

External


Since: Apr 09, 2004
Posts: 11



(Msg. 3) Posted: Fri Jul 15, 2005 1:55 pm
Post subject: Re: DB2 and cygwin ... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-07-15, Dirk Deimeke scribbled:

>Hi,
>
>I am running the newest Adminclient with Cygwin as shell.
>
>db2cmd /c /w /i "bash --login -i"
>
>In two of thre cases, I cannot connect to a database using
>
>db2 connect to <database> user <user>
>
>I get the question for a password, the password is typed in and I see
>the last letter of the password (the other part is hidden) and the
>connect goes fail.
>
>If I try another conenct, I can see the whole password.
>
>db2 connect to <database> user <user> using <password>
>
>works in all cases. But it is bad to see the cleartext password.
>
>Any ideas?

Strange, I just tried this and it seems to work fine for me.
Traditionally, I've used the latter method (including the USING clause
for the password) as I seem to remember running into the problem with
entering the password interactively in the past. But, as mentioned
above, it seems to work fine now.

Are you running a reasonably recent version of Cygwin / DB2? For
reference, the versions I'm running are:

Cygwin DLL: 1.5.17-1
Bash: 2.05b-17
DB2: 8.1.0.36 (DB2 Connect client)

The other thing to check is your CYGWIN environment variable. I seem to
remember including "tty" in the variable causes problems (for
reference, mine doesn't include tty).

HTH, Dave.

--
Dave (remove _nospam for e-mail)
"Cogito cogito ergo cogito sum" - Ambrose Bierce
 >> Stay informed about: DB2 and cygwin ... 
Back to top
Login to vote
Dirk Deimeke

External


Since: Jul 15, 2005
Posts: 10



(Msg. 4) Posted: Tue Jul 19, 2005 5:55 am
Post subject: Re: DB2 and cygwin ... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Larry schrieb:

> What is the complete error msg?

SQL30082N Attempt to establish connection failed with security reason
"24"
("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001

Greetings

Dirk
 >> Stay informed about: DB2 and cygwin ... 
Back to top
Login to vote
Dirk Deimeke

External


Since: Jul 15, 2005
Posts: 10



(Msg. 5) Posted: Tue Jul 19, 2005 5:55 am
Post subject: Re: DB2 and cygwin ... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Dave Hughes schrieb:

> Strange, I just tried this and it seems to work fine for me.
> Traditionally, I've used the latter method (including the USING clause
> for the password) as I seem to remember running into the problem with
> entering the password interactively in the past. But, as mentioned
> above, it seems to work fine now.

The "using-clause" works fine for me too. Unfortunately I sometimes have
someone looking over my back ...

> Are you running a reasonably recent version of Cygwin / DB2? For
> reference, the versions I'm running are:

Your versions are pretty old ...

> Cygwin DLL: 1.5.17-1

Cygwin DLL: 1.5.18-1

> Bash: 2.05b-17

Bash: 3.00.16(7)-release

> DB2: 8.1.0.36 (DB2 Connect client)

DB2 v8.1.9.917 (recent Adminclient for windows)

> The other thing to check is your CYGWIN environment variable. I seem to
> remember including "tty" in the variable causes problems (for
> reference, mine doesn't include tty).

Direct hit!

I tried setting CYGWIN environment to 'ntsec' (formerly 'ntsec tty') and
now it seems to work.

Many thanks for your help.

Dirk
 >> Stay informed about: DB2 and cygwin ... 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
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 ...

can't create database cause access failure in db2spcat - Hello! I set up DB2 Personal Edition on Fedora C4 Linux. During the Installprocess everything looks fine. But if I try to create a Database DB2 says: "Routine "db2spcat" (specific name SQL050805133333590) is implemented with code in libra...

Running the same script across multiple DB2 databases, ins.. - We have a requirement to run a query on all of the DB2 databses on a regular basis. Obviously, doing this manually is going to be a waste of several people's time. The ideal solution would be to run a process from a workstation. If this was a Sybase..

DB2 V8 Client / DB2 for z/OS Upgrade Path - We have a question about the 'correct' procedure for upgrading our DB2 Run-time clients to V8. These client machines are currently running V7 FP13 and are used to connect to a mainframe DB2 database on z/OS. Based on the DB2 LUW documentation, we..

Setting nulls in Development Center for SQL Functions - I am working with SQL Functions in DB2 for Windows/Linux/UNIX (V8.2.1) and am having a problem setting input parameters for SQL Functions to null in the Development Center. My simple function, called Half, has a single integer input parameter and divide...
   Database Forums (Home) -> DB2 All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]