If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2 connect errror

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-09-04, 12:28
deepakatfre deepakatfre is offline
Registered User
 
Join Date: Jun 2004
Posts: 32
db2 connect errror

UDB version 8.01.005

db2 connect to database user userid using password
gives me
SQL30082N Attempt to establish connection failed with security reason "24"
("USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001

But
if I do
db2 connect to database user userid
and then enter the password it works fine

what could be the error ?

Urgent Help needed.
Reply With Quote
  #2 (permalink)  
Old 11-09-04, 13:40
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
try enclosing the db2 command in quotes:
Code:
db2 "connect to database user userid using password"
May be your password contains characters that have special meaning to the shell.
Reply With Quote
  #3 (permalink)  
Old 11-09-04, 15:36
bmujeeb bmujeeb is offline
Registered User
 
Join Date: Mar 2004
Posts: 448
n_i is right. I have this same problem , despite using double quotes.
The password contains the $ sign. Try to use single quote

regards

Mujeeb
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On