SQL SERVER operation and maintenance inspection series two - database

foreword

  Doing a good job in daily inspection is an important step in database management and maintenance, and it is necessary to register the date and results of each inspection, and may need to issue an inspection report.

  This series aims to address some common pitfalls:

  • I don't know what to check
  • I don't know how to check easily
  • Too many machines, check up trouble
  • Difficulty in generating reports and inability to visualize results

 

  After hardware inspection, inspection of database status is undoubtedly the second step of daily operation and maintenance inspection. The inspection of the database mainly includes objects such as file size, configuration information, and space allocation.

database size

  1. On the [Overview] page of SQL Expert Cloud, you can view the database file size graphically. As an operation and maintenance personnel, we must first know how big the database is? How big is the data file? How big is the log file?

  Note: Compared with the previous collection, the increment of the database in the two collection time periods can be known.

  Note: If the log file is too large, is it in full backup mode, and log backups are missing or unreasonably frequent.

  

 

   2. On the [Database]-[Overview] page of SQL Expert Cloud, the database file size and detailed information are displayed.

  Note: In addition, you can know the number of tables, views, functions, and stored procedures in the system, and compare with the last collection to know how many new objects the developer or maintainer has done during this period.

  

 

Database configuration

  1. Check the configuration information of each database in [Check Items] - [All]. When the database configuration fails the regular check, the platform will prompt a warning.

  Note: Improper configuration of any database may cause performance or security issues. In each inspection, you need to pay attention to whether some affected configurations have been opened by mistake, or the optimized configuration has not been done in the initial stage. (For database configuration recommendations, see: Best Configuration in the Platform)

  

  2. View the configuration information of the database in the [Database]-[Configuration] page. The information mainly includes the database size, recovery mode, compatibility level, collation, and the time of the last checkdb.

  

 

file information

  View the database file allocation, file size, growth configuration, path and other information on the [Database] - [File] page.

  

 

space allocation

  On the [Database] - [Space] page, you can view information such as the number of rows and allocated space of table objects in the database.

  Note: System administrators or operation and maintenance personnel should pay more attention to the large tables in the system, and give suggestions and plans based on the changes in the number of rows and occupied space of large tables, such as whether to create a partition table, whether to archive historical data, etc.

  

 

Summarize

  对数据库的文件分配、文件大小进行巡检,可以总体看出数据的量级及每天的增长情况,只有了解这些才能让管理者在方案决策中更有依据。

  数据库配置对于性能、安全等方面有很大的影响,当数据库配置被无意修改而又没有察觉的时候,当出现问题,可能很难排查。

  对于系统中的大表,每个管理员都应该提高关注,大表的增量、大表的设计是否合理等,对系统的稳定和性能有着很大的影响。

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326522811&siteId=291194637