473,938 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 14637
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.a tt.ne.jp> schrieb im Newsbeitrag
news:2e******** *************** **@posting.goog le.com...
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
3182
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() ---> <cffunction name="validate" access="remote" returnType="numeric"> <cfargument name="username" required="yes" type="string" /> <cfargument name="password" required="yes" type="string" /> <cfquery name="validate" datasource="#request.dsn#">
13
2296
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). When I first create the SQL connection in VS.NET 2003, I test the connection and everything works fine. However, when I attempt to run the first stage of the app (the bound datagrid), I receive an error stating: login failed for user...
3
2447
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 object :(((( Anyone pls help me to solve this problem!!! thanks in advance,
3
2627
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 userid and password found correct in the database, it must return the address of the person in the XML format. Can any one please give me the code, so that I can modify it to fit to my project. Thanks in Advance..
7
4413
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 was told that i could and even must not use it. GOD KNOWS WHY So i created a custom login form with userID and password which validates with a table containing all the users and their passwords. Then, i thought it would be easier to allow the...
12
6603
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 have added the new user to the database and have given the user access to the database for the app. But everytime I try and login using this users ID, I always get the error: Login failed for user Christian.Gaut If I login using my userid and...
2
522
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 specify password it fails with the dreaded SQL30082N. I have checked all parameters, there is the servicename registered in /etc/services the dbm cfg is set (pasted below). this is a Workgroup Edition, I have tried everything, also note that I can only...
3
9465
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 undefined: 'OpenConn' /customer/authenticate.asp, line 17
0
9963
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11103
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11284
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10653
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9854
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8214
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6290
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3496
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.