Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8285679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:31:44+00:00 2026-06-08T11:31:44+00:00

I’m trying to connect to a remote IBM DB2 9.7 database from a java

  • 0

I’m trying to connect to a remote IBM DB2 9.7 database from a java application.
The connect fails with the following error:

SQL30082N Security processing failed with reason “24” (“USERNAME
AND/OR PASSWORD INVALID”). SQLSTATE=08001

This says that there’s something wrong with the username and password.
However, I am quite sure that I used the correct username and the correct password.

I’ve already tried the following things in order to solve this problem:

  • I’m on HP-UX and the user account for db2 is called “db2inst1”. This should work according to the naming rules I found.
  • SSH connect to the machine with exactly the same username and password works fine.
  • Once logged in over SSH as user db2inst1, “db2 connect to SAMPLE” works.
    However, “db2 connect to SAMPLE user db2inst1” produces the error above, even with the correct password.
  • Through google I found that “Database manager authentication” in the dbm cfg has to be set to SERVER. It was already set to SERVER all this time.
  • “db2 get dbm cfg | grep -i auth” produces this result:
 GSS Plugin for Local Authorization    (LOCAL_GSSPLUGIN) = 
 Server Connection Authentication          (SRVCON_AUTH) = SERVER   
 Database manager authentication        (AUTHENTICATION) = SERVER   
 Alternate authentication           (ALTERNATE_AUTH_ENC) = NOT_SPECIFIED 
 Cataloging allowed without authority   (CATALOG_NOAUTH) = NO   
 Trusted client authentication          (TRUST_CLNTAUTH) = CLIENT   
 Bypass federated authentication            (FED_NOAUTH) = NO

Edit: The problem still isn’t solved, but I have found out more about it:

Db2diag contains the following warnings:

2012-07-20-06.18.24.445983-360 I122110A443 LEVEL: Warning PID
: 24470 TID : 223 PROC : db2sysc 0 INSTANCE:
db2inst1 NODE : 000 DB : SAMPLE APPHDL :
0-25775 EDUID : 223 EDUNAME: db2agent (SAMPLE) 0
FUNCTION: DB2 UDB, bsu security, sqlexLogPluginMessage, probe:20 DATA
1 : String with size, 67 bytes Password validation for user db2inst1 failed with rc = -2146500507

2012-07-20-06.18.24.446251-360 I122554A436 LEVEL: Warning PID
: 24470 TID : 223 PROC : db2sysc 0 INSTANCE:
db2inst1 NODE : 000 DB : SAMPLE APPHDL :
0-25775 EDUID : 223 EDUNAME: db2agent (SAMPLE) 0
FUNCTION: DB2 UDB, bsu security, sqlexSlsSystemAuthenticate, probe:150
MESSAGE : application id: DATA #1 : String with size, 26 bytes
C0A8150A.D350.120720121824

Also, some queries to the SYSPROC generate the error as well. For example this one:

db2 “values SYSPROC.AUTH_GET_INSTANCE_AUTHID()”

I am now guessing it has to do with the access rights.
I can see some rights by using the query

“SELECT * FROM TABLE (SYSPROC.AUTH_LIST_AUTHORITIES_FOR_AUTHID
(‘db2inst1’, ‘U’) ) AS T ORDER BY AUTHORITY”

The result of this is, CONNECT is on “N” for D_USER, but on “Y” for D_GROUP.

I’m guessing D_USER should be on “Y”, so that db2inst1 is allowed to connect.
Therefore, I’ve tried to grant the rights for this by using

db2 “GRANT CONNECT ON DATABASE TO USER db2inst1”

but no luck, D_USER is still on “N”, and the error still occurs.

Any more ideas what I can do?

I’d very much appreciate help on this issue!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T11:31:45+00:00Added an answer on June 8, 2026 at 11:31 am

    Everyone, thank you so much for your ideas and suggestions!
    I finally managed to solve this problem today.
    The solution is very trivial. The password was indeed wrong.
    My instance as well as the database was set up automatically by a script.
    It turned out that this script uses different passwords for the db2inst1 user account on the operating system and the db2inst1 user account for the database.
    For the whole time I didn’t understand that these are two different user accounts that can have different passwords. Going through the installation script and comparing it with online db2 installation tutorials made it clear to me.
    Again, thank you very much 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a view passing on information from a database: def serve_article(request, id): served_article
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to render a haml file in a javascript response like so:
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.