Changing database passwords
You can change database user passwords (DBUserPwd) and database administrator passwords
(DBAPwd) by updating the HCL Commerce configuration file and updating properties in the
WebSphere Application Server administrative console.
Before you begin
Procedure
-
Change the DBUserPwd or DBAPwd:
- Use the wcs_encrypt utility in the utility docker without a merchant key to encrypt the new password.
- Open the configuration file, wc-server.xml.
- Update the DBUserPwd or DBAPwd with the new encrypted password.
- Save and close the file.
-
If you changed the database user password (DBUserPwd), you must update the
WebSphere Application Server data source. You do not have to update the WebSphere Application Server
data source for database administrator password (DBAPwd)changes.
- Open the WebSphere Application Server Administrative Console.
- Expand Data sources. . Click
- Click your HCL Commerce data source (for example, WCDataSource).
- Record the value for the Component-managed authentication alias field. The default name for this alias is WCDataSource_alias.
- In the Related Items section, click JAAS - J2C authentication data.
- Click the alias that is associated with your data source.
- Confirm that the user ID value is correct and update your user password information.
- Click OK and save your changes to the master configuration.
Results
The preceding steps used WebSphere Application Server to change database passwords.
To complete permanent configuration changes, you might need to customize the docker file to execute Run Engine commands to preserve the WebSphere Application Server configurations. For more information, see Run Engine commands.