Got it

Database User omm Is Locked After Its Password Is Changed

116 0 0 0 0

Symptom:

After the password of user omm for logging in to the database is changed, log in to DeviceManager immediately to query events and alarms immediately. However, the query times out.


Diagnosis:

View the /var/log/oam/oam-u/oam-gaussdb/run/gaussdb.log file. The log content is as follows:

1_en-us_image_0310243600.jpg

If the GaussDB log shows that user omm fails to log in using the new password, the possible cause is that a service user is using the old password. As a result, user omm is locked.


Cause:

User omm of GaussDB is locked. As a result, services are abnormal.


Solution:

Perform the following operations on the active node:

  1. Change the value of failed_login_attempts in the /opt/dfv/oam/oam-u/oam-gaussdb/data/postgresql.conf file to 0, as shown in the following figure.

    1_en-us_image_0310243601.jpg

  2. Run the su - ommdba -s /bin/bash command to switch to user su - ommdba -s /bin/bash, as shown in the following figure.

    1_en-us_image_0310243602.jpg

  3. Run the gs_ctl reload command to reload the configuration file.

  4. Run the gsql -d postgres -p 21600 -h 127.0.0.1 -U ommdba command, enter the password of user ommdba to access the database, and run the ALTER USER omm ACCOUNT UNLOCK command to unlock user omm.

    1_en-us_image_0310243603.jpg


Check After Recovery:

Check whether services are running properly. Use the new password to log in to the omm database and check whether the login is successful.


Comment

You need to log in to comment to the post Login | Register

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.