The whole connection process is defined through three files located in %USERPROFILE%\AppData\Roaming\Quest Software\Toad for Oracle\11.6\User Files\, where "11.6" is Toad version and may vary in your cases:
- CONNECTIONS.INI
- CONNECTIONACTIONS.INI
- CONNECTIONPWDS.INI
The solution
The trick is based on another Toad for Oracle feature-get SQL for any kind of DDL action, which was performed through GUI, in this case creating db link. Here is what you have to do to retrieve scott password:- Connect in Toad as any user for which you DO NOT WANT TO RETRIEVE password (in mine case this is vadas user)
- Choose Database|Create|DB Link menu item
- Fill data as shown in the picture:
As you can see I have chosen scott user and password is automatically retrieved from saved passwords file. - Choose Show SQL as shown in the picture and you'll get pure SQL which contains password
The trick is working for every user's password. In next case I'm showing how to retrieve sys password, retrieved through scott connection.
The End
Someone might say this is security issue, but I do strongly think it is not! Mentioned file with stored passwords is encrypted with two keys:- Domain user name
- Some kind of workstation unique hash value
Keep in mind that newer releases of Toad do not use "workstation unique hash value", but only domain username as a pattern for hashing. Check and test before dropping old laptop data. For the end let me tell that if someone find storing password as a security issue regardless motioned, he/she can always disable that option and live with shorter
Hope this helps someone.
Cheers!
Very nice hint. Keep on sharing things dude.
ReplyDeleteThank you.
ReplyDeleteGlad to help you guys.
ReplyDeleteRight now I'm asking Dell technical stuff to leave that "hidden" feature in future versions ...
Great thanks brother
ReplyDeleteNo prob...
DeleteWooow..simple and on point
ReplyDeleteI'm not sure, now when I left genie out of the bottle, Dell's management might shutdown this feature if they found out ....
Delete8(
woow. simple yet a gr8 trick.
ReplyDeleteWow, great work!!!
ReplyDeleteThanks very much!
Thanks!! this saved a ton of trouble...
ReplyDeleteThank you for sharing this very good job.
ReplyDeleteWhen I searched for solution of lost password problem (and found your great solution), I found one online web service which get you all your toad passwords as html document, you just need have access to connectionpwds.ini file on your hard drive:
http://www.talkingbyte.com/index.php?page=connectionpwds
Radovan,
DeleteTHX for your post.
Your link shocked me. I thought things are little more complicated.
Brg
Damir
Did you consider a security issue posting the passwords file to a third party?
Deletedo not follow you!?
DeletePlease explain.
Thank you very much, I was in a dilemma on how to deal with this issue as I wanted to login into the database to resolve something quickly.
ReplyDeleteYour resolution came to the rescue and made my day :) ...My sincere thanks to you....
You're welcome!
DeleteExcelente!!! Muchas gracias!!! :D
ReplyDeleteGr8 Trick. Hvala:)
ReplyDeleteThanks a lot for the trick
ReplyDeleteGenie was left out of the bottle...
ReplyDeletethis is the best way to retrive password from Toad
ReplyDeletethis really works!!! THANKS
ReplyDelete
ReplyDeletethis is a best blog all recovery service provide in this blog other information our site recoveryourpassword
Best blog...thank you.
ReplyDeleterecovered my password..very useful info for those who are using TOAD...thanks!!
ReplyDeletewooow... this trick is working, thanks a lot
ReplyDeleteExcellent - Thank you so very much!!
ReplyDeleteWhat about TOAD for MySQL ? any trick ?
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThank You so much
ReplyDeleteThank for your Good work.
ReplyDeleteThank you very much for the post... Saved me a days of time
ReplyDeleteWorked with 10.6
ReplyDeletemanyyy thanks
good job
ReplyDeleteNo more works with Toad 13.1 Genie is locked in bottle again :)
ReplyDeletei know...already took message that I have loose ghost from the bottle.
Deleteman that helped me like more than you can think
ReplyDeleteGlad to hear that
DeleteThis comment has been removed by a blog administrator.
ReplyDelete