Changing the App Visibility database password
This topic presents the following sections:
Before you begin
Change the PostgreSQL database authentication method to password authentication. For details, refer to PostgreSQL documentation.
To change the App Visibility database password
After you change the authentication method to password authentication (instead of the default trust authentication) for one or more databases, you must change the database password for the App Visibility component.
At a command line on the App Visibility server, navigate to the following directory:
- Windows
installationDirectory\portal\bin\db
or
installationDirectory\collector\bin\db
The default installationDirectory is C:\Program Files\BMC Software\App Visibility - Linux
installationDirectory/portal/bin/db
or
installationDirectory/collector/bin/db
The default installationDirectory is /opt/bmc/App_Visibility
- Windows
- Enter the following command:
- Windows
change-db-pgsql-password.bat - Linux
change-db-pgsql-password.sh
- Windows
- At the Enter current password prompt, enter the current password.
The default password is avpsql. - At the Enter new password prompt, enter a new password, using a strong password that comprises the following:
- A minimum of 10 characters
- Two of the following nonalphabetic characters that are noncontiguous:
0 1 2 3 4 5 6 7 8 9 ~ ! @ # $ % ^ & * ( ) _ + - =
- At the Confirm new password prompt, enter the new password again.
The new password is set. - Restart the component service.
To change the App Visibility database password in a high-availability environment
If your environment is set for high availability (HA) and you configured your databases to use password authentication (instead of the default trust authentication), you must change the password on the both the active and standby components.
- On the active node, change the App Visibility database password as describe in the earlier procedure, To change the App Visibility database password.
- On the active node, open the component properties file:
- Windows
portal.properties, located in installationDirectory\portal\properties
or
collector.properties, located in installationDirectory\collector\properties - Linux
portal.properties, located in installationDirectory/portal/properties
or
collector.properties, located in installationDirectory/collector/properties
- Windows
- Copy the encrypted value of the database.password.enc property and close the file.
- On the standby node, open the corresponding file and overwrite the copied value of the database.password.enc property.
- Save the file and restart the component service.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*