Changing database passwords
You can change database user passwords (DBUserPwd) and database administrator passwords (DBAPwd) by updating the WebSphere Commerce configuration file and updating properties in the WebSphere Application Server administrative console.
Before you begin
Procedure
-
Change the DBUserPwd or DBAPwd by using one of the
following methods:
Option Description In Configuration Manager - Start Configuration Manager.
- Expand
- Select the General tab, and then update the database user password or database administrator password.
- Click Apply and exit WebSphere Commerce Configuration Manager.
In the WebSphere Commerce configuration file - Use the wcs_encrypt utility without a merchant key to encrypt the new password.
- Open the configuration file WC_installdir/instances/instance_name/xml/instance_name.xml
- Update the DBUserPwd or DBAPwd with the new encrypted password.
- Save and close the file.
- Update the wc-server.xml file and the master EAR by running the following
command:
WC_installdir/bin/config_ant.sh -DinstanceName=instance_name UpdateEAR
-
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 WebSphere Commerce DB2 Datasource instance_name.
- Record the value for the Component-managed authentication alias field. The default name for this alias in WC_instance_name.
- 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.
- Optional: If you are in a federated or clustered environment, ensure that the changes are synchronized between network deployment manager and individual nodes.
- Restart your WebSphere Commerce instance.