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 UDB Password Recovery

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-23-11, 11:18
dawson_davis dawson_davis is offline
Registered User
 
Join Date: Jun 2011
Posts: 4
DB2 UDB Password Recovery

Greetings,

I have recently taken over the System Administrator role for a DB2 UDB database (Version 8.1 FP18) running on Linux. Our primary use of this server is to integrate data environments, allowing our DB2 databases to connect our Oracle Databases.

My predecessor's predecessor setup an Oracle account (on an 8i server) called "db2joiner" which is linked to the db2inst1 account inside the UDB. In the past, whenever I needed to create a new nickname, I could re-use the existing AuthID and Password.

Long story short, I don't know the password that is saved in the system. Nor does my predecessor. DB2 UDB does.

My question is: Is there any way to recover a password for an AuthID which is linking a DB2 Account to an Oracle Account?

Edit: Re-reading, I fear I may not have cleary communicated my question. Specifically, my question pertains to the Remote_AuthID & Remote_Password stored within a particular "User Mapping." IBM has detailed how to alter the information, but I need to recover the Remote_Password. The Oracle DBA's tell me they can't do it from their end. They can change the "db2joiner" password for me, but not recover it.

DB2 UDB obviously "knows" the password. I just want her to tell me so I can re-use it on a new Server Mapping. Any assistance you can provide will be most greatly appreciated.

Last edited by dawson_davis; 06-23-11 at 11:40.
Reply With Quote
  #2 (permalink)  
Old 06-23-11, 11:53
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
The password is encrypted in the database, so there is no way to query for it. Why not just have the Oracle DBA change the password for db2joiner and you change all of the user mappings as well as add the new one using the new password?

Andy
Reply With Quote
  #3 (permalink)  
Old 06-23-11, 11:55
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
The default in DB2 is to use server authentication, which means that DB2 uses the accounts and passwords of the server OS (Linux in your case). DB2 does not have passwords of its own.

It is possible that in your case that you are using Client Authentication, but not sure from your post. However, passwords are not stored in DB2 for client authentication either.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #4 (permalink)  
Old 06-23-11, 12:54
dawson_davis dawson_davis is offline
Registered User
 
Join Date: Jun 2011
Posts: 4
Quote:
Originally Posted by ARWinner View Post
The password is encrypted in the database, so there is no way to query for it. Why not just have the Oracle DBA change the password for db2joiner and you change all of the user mappings as well as add the new one using the new password?

Andy
Thanks Andy. That may be my only option. I'm trying to avoid it due to the production impact.

If nobody can provide me with a way to recover the password, I think what I'll do is setup a new Oracle account ("db2joiner2"), and start moving things over one at a time.
Reply With Quote
  #5 (permalink)  
Old 06-23-11, 12:57
dawson_davis dawson_davis is offline
Registered User
 
Join Date: Jun 2011
Posts: 4
Quote:
Originally Posted by Marcus_A View Post
The default in DB2 is to use server authentication, which means that DB2 uses the accounts and passwords of the server OS (Linux in your case). DB2 does not have passwords of its own.

It is possible that in your case that you are using Client Authentication, but not sure from your post. However, passwords are not stored in DB2 for client authentication either.
Marcus, thanks very much for your reply. What you say is true of course.

The db2inst1 account is a Linux OS account. Fortunately, I have the db2inst1 password. The password I am trying to recover is not a db2 account, but rather a USER_MAPPING REMOTE_AUTHID REMOTE_PASSWORD. Essentially, I'm trying to recover the Oracle Account password which is presently stored on my DB2 UDB.
Reply With Quote
  #6 (permalink)  
Old 06-23-11, 13:28
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Quote:
Originally Posted by dawson_davis View Post
Marcus, thanks very much for your reply. What you say is true of course.

The db2inst1 account is a Linux OS account. Fortunately, I have the db2inst1 password. The password I am trying to recover is not a db2 account, but rather a USER_MAPPING REMOTE_AUTHID REMOTE_PASSWORD. Essentially, I'm trying to recover the Oracle Account password which is presently stored on my DB2 UDB.
My mistake. I started typing my response before ARWinner posted an explanation of what it was.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #7 (permalink)  
Old 06-24-11, 06:55
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
The REMOTE_PASSWORD is indeed stored encrypted - pretty much in the same way as any decent operating system is doing it today. So either you change the password as suggested, or you try to brute-force/crack it. Unless it is a simple password, you're probably much better off with changing it.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #8 (permalink)  
Old 06-24-11, 10:08
dawson_davis dawson_davis is offline
Registered User
 
Join Date: Jun 2011
Posts: 4
Knut and Marcus, thanks very much for your replies.
Reply With Quote
Reply

Tags
password, recovery, udb

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