Summary of routine maintenance of SQL Server database (db)

Source: Internet
Author: User

The following is my daily maintenance summary, reference for attack, and constant improvement:

1. Check the CPU occupied by SQL Server. Check whether the server CPU is stable. Use the Windows Task Manager to check the CPU usage.

2. Check whether the memory used by the database is suddenly increased and whether the memory is used by the database. Check whether the maximum memory settings are reasonable.

3. Check whether the backup file is normal and whether the last backup file exists.

4. Check the disk size of the backup file to prevent excessive backup and insufficient disk space.

5. Check the space occupied by each table in the DB and dB, and monitor whether there are exceptions, such as sudden increase in the size of a table. The report function is convenient and intuitive.

6. Check whether the SQL Server Agent is normal and whether the job is executed normally. It is important because jobs usually clean up data or summarize reports.

7. Every week, you need to use the profile to capture the SQL statements executed for 15 minutes and put them into the table to optimize SQL statements for time-consuming, io-consuming, CPU-consuming, and other operations.

8. Check whether the growth mode of data files and log files is reasonable and whether the maximum growth value is set. We recommend that you increase the variable by 300 M. We recommend that you do not use the percentage.

9. Check the error logs to check whether an error has occurred. The record is comprehensive. It is also a good choice for troubleshooting.

10. Regularly contract the database, update statistics, contract the database, and reorganize the index

Adding .............

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.