Got it

Viewing Database Inspection Items

192 0 0 0 0

This topic describes how to view database inspection items, expected results, and handling suggestions on the OMU portal.

Log in to the OMU portal and click the Preventive Maintenance tab. On the page that is displayed, click the arrows next to Basic Information of DB and Running Status of DB. The page shown in Figure 1 is displayed when the inspection is complete. Table 1 lists the inspection items, expected results, and handling suggestions for the basic information about the database. Table 2 lists the inspection items, expected results, and handling suggestions for the running status of the database.

Figure 1 Database inspection items
en-us_image_0096960363.png
Table 1 Basic database information inspection items

Inspection Item

Expected Result

Handling Suggestion

Check the database version

The version is V100R003.

Collect database installation information and contact Huawei engineers.

Check the database character set

The database character set is UTF8.

Check the environment variables of the current database user

Environment variables of the current database user are correctly configured.

Table 2 Database running status inspection items

Inspection Item

Expected Result

Handling Suggestion

Check whether the database has started

The database has started.

If the item does not pass the check, collect database logs and /var/log/messages logs and attempt to restart the database. If the fault persists, contact Huawei technical support engineers.

To collect database logs, perform the following operations:

  1. Log in to the server as the admin user and run the su - root command to switch to the root user.
  2. Collect logs under /home/postgres/logs and /var/log/messages.

To restart the database, perform the following operations:

  1. Log in to the server as the admin user and run the su - root command to switch to the root user.
  2. Run the cd /home/ivstool/bincommand.
  3. Run the ./service.sh restart pgdbcommand to restart the database.

Check the postmaster.pid file

The /DB_DATA/data/postmaster.pid file exists.

If the check fails, contact Huawei engineers.

Check whether the system table structure can be modified

The value of allow_system_table_mods is off.

Check the integrity of data written to disks

The value of fsync is on.

Check the size of the shared memory buffer

The value of shared_buffers is 2MB.

Check whether the query optimization function is enabled

The value of geqo is on.

Check the number of connected clients

The number of connected clients is less than 90% of the maximum.

If the check fails, disable unnecessary connections.

Check the maximum number of connections

The maximum number of connected clients is greater than or equal to 1000.

If the check fails, contact Huawei engineers.

Check the SQL that occupies CPU resources

The CPU usage of all SQL statements is within 40%.

NOTE:

If the CPU usage exceeds 40%, complex SQL statements may have been invoked, or deadlock files may have been generated.

  • If the CPU resources are released after a while and services are restored to normal, complex SQL statements may have been invoked.
  • If the CPU resources are not released for a long time, deadlock files may have been generated.

If the item does not pass the check, collect top command information and contact Huawei technical support engineers.

To collect top command information, perform the following operations:

  1. Log in to the server as the admin user and run the su - root command to switch to the root user.
  2. Run the top command and provide the top command information for the Huawei engineers to fault locating.


Comment

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

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.