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

DB2 error using the command with USERID/PASSWORD

NK
Hello,

I am a beginner of DB2 and I am in a trouble that I can't access to
sample database.
Please see below.

ENV : OS AIX-5.2/ DB2 8.1.2

SYMPTOM:
I don't have any DB2 client terminal so far and all the troubles
below are happening on the
AIX 5.2 platform.

When you login to AIX with userid "db2inst1", and try to connect
the sample database
called "sample" which DB2 normally sets up on the system using the
command like,
db2 connect to sample user db2inst1 using xxxxx
I can't access to sample database. The error message is,

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

But instead of the command above, the next one is possible to access
to the sample database,
db2 connect to sample


Why can't I specify the userid and password? What I want to do is
to access the database
using the command with userid/password.

Thanks in advance,
N
Nov 12 '05 #1
3 14555
NK wrote:
Hello,

I am a beginner of DB2 and I am in a trouble that I can't access to
sample database.
Please see below.

ENV : OS AIX-5.2/ DB2 8.1.2

SYMPTOM:
I don't have any DB2 client terminal so far and all the troubles
below are happening on the
AIX 5.2 platform.

When you login to AIX with userid "db2inst1", and try to connect
the sample database
called "sample" which DB2 normally sets up on the system using the
command like,
> db2 connect to sample user db2inst1 using xxxxx
I can't access to sample database. The error message is,

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


Generally speaking, this would be because "xxxxx" isn't actually the
password for the user "db2inst1". (Yes, I realise you're just x-ing
out the password.) On AIX, this could even be because the password is
expired by the operating system. Try using telnet to log in to the AIX
machine as db2inst1 with that password - I would expect that either the
password would fail, or it would immediately ask for a new password
after you log in. Using that new password, retry your connection to
DB2.
But instead of the command above, the next one is possible to access
to the sample database,
> db2 connect to sample


Why can't I specify the userid and password? What I want to do is
to access the database
using the command with userid/password.

Thanks in advance,
N

Nov 12 '05 #2
Try this. This works if password is expired by OS.
connect to sample user db2inst1 using xxxx new xxxxx confirm xxxxxx

Nov 12 '05 #3
Hi,
perhaps you have lost the SUID and GUID bits in ../sqllib/adm.
Create a new instance and compare the module attributes with the previous.

"NK" <nk******@zap.att.ne.jp> schrieb im Newsbeitrag
news:2e*************************@posting.google.co m...
Hello,

I am a beginner of DB2 and I am in a trouble that I can't access to
sample database.
Please see below.

ENV : OS AIX-5.2/ DB2 8.1.2

SYMPTOM:
I don't have any DB2 client terminal so far and all the troubles
below are happening on the
AIX 5.2 platform.

When you login to AIX with userid "db2inst1", and try to connect
the sample database
called "sample" which DB2 normally sets up on the system using the
command like,
> db2 connect to sample user db2inst1 using xxxxx


I can't access to sample database. The error message is,

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

But instead of the command above, the next one is possible to access
to the sample database,
> db2 connect to sample


Why can't I specify the userid and password? What I want to do is
to access the database
using the command with userid/password.

Thanks in advance,
N

Nov 12 '05 #4

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

Similar topics

2
by: Phil Powell | last post by:
I am not sure why this is producing a SQL Server related error, but w/o having an instance of SQL Server on my machine to verify anything further, can you all help me with this? <!--- validate()...
13
by: Edward Mitchell | last post by:
I have a problem that involves the error I receive when attempting to complete the asp.net web application example (Walkthrough: Creating a Web Application Using a Third-Party Business Object). ...
3
by: Adriano | last post by:
Hello, when I try to print something, either DataGrid or from Crystal Report viever the folowing error message appears and cancels printing: Object reference not set to an instance of an...
3
by: Sangeetha Nagaraj | last post by:
Hi Pals, I am a starter to web services. I have a requirement. I want to develop a web service, which accepts userid and password from the user and checks it with the MS Access database. If the...
7
by: Nerrad | last post by:
Hi, i am currently working on a project which requires me to create a form to allow the user to change their password. I know there is a user-level security login which is easier and safer but...
12
by: Michael | last post by:
Please Help me. I've got a .Net 2003 program that attaches to a SQL Server machine and I'm getting the above error when a user tries to log in. The SQL server is setup to use Windows Auth. and I...
2
by: willyd61 | last post by:
Hello Everyone! Newbie here... I can't configure any remote clients to connect to my DB2 server, I am able to run and connect local from the server, but if I try to connect with a user and...
3
by: nitewriter | last post by:
Hi, Can someone help me with this scripts, it works on a different server but gives me error now, This is the error I now get Microsoft VBScript runtime error '800a01f4' Variable is...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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...

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.