Setting up a Db2 Password
Using a Db2 Encrypted Password
Jopaz for Db2 provides a password encryption mechanism to safely encrypt your password using encryption keys. It is recommended that you use this form of password authentication.
To encrypt the password, you need to generate an encryption key. You can generate the key and encrypt the password using the script /jpz/jpz-scripts/jpz-db2-pass.sh. When you execute the script, a prompt asks you to enter a Db2 connection password.
Use the option -g when you execute the script for the first time to generate an encryption keyfile.
jpz-db2-pass.sh -g
You can also use the option -g to change an existing encryption key. If you want to change the password without changing the keyfile, execute the script without -g.
If your Db2 connection password is encrypted, the password parameter in db2.properties is ignored.
Note:
You must use this password independently of the use of a trusted context. When setting up Jopaz for Db2, you need the password to customize and bind the serialized profile.
Using a Db2 Non-Encrypted Password
As an alternative to the encrypted password, you can also specify the password as an additional property in the db2.properties file.
To specify the password, open the db2.properties file in /jpz/jpz-compiler/conf and add your Db2 password under the property password=.