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 > db2look statement -no password in test.sql

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-05-07, 09:36
toette toette is offline
Registered User
 
Join Date: Nov 2004
Posts: 15
db2look statement -no password in test.sql

Hello everybody,

I try export the structure of the following table with the db2look statement:

db2look -e -d sample -t table -i xx -w yy -o x:\test.sql

In the output file test.sql the password is missing.

There only stands: connect to sample user xx;

But I want the following output: connect to sample user xx using yy;

Can anyone tell what is wrong in this export statement.

Thanks for help toette
Reply With Quote
  #2 (permalink)  
Old 03-05-07, 10:02
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
I do not think that db2look can supply the password. This is because the password is maintained by the OS and is usually encrypted with an algorithm that is basically one way. This means that the password that is stored cannot be decrypted easily. Password checking is done by encrypting the inputted values and checking the result against what is stored.

Besides having the password in an uncrypted format in some script file is not a good idea anyway. It is a big security risk.

Andy
Reply With Quote
Reply

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