The consequences of the database system log file does not automatically increase

           Yesterday afternoon suddenly unable to save production systems sales bill of lading, and it is full-blown, all users can not save a sales document type. Things are more urgent, so the company's operation and maintenance department phone will soon be ringing off the hook.

We'll check the network status database servers and application servers and memory, cpu usage, etc., found that these are normal, so we went to check whether the file size and enough disk space for the database, log

File growth, etc., is also clueless.

         At this time we think of a few days ago to take a full backup to restore the database to the test server from the line and set up a test environment, inventory documents can not be found to save the test. At that time, the testing service

Service is limited space, the urgent need to clean up part of the test data library, so we will be all the large amount of data tables listed, and the first inventory documents list and the main part of the data table to clear, and then test the system

The inventory documents and can be saved.

         So we must conclude that the initial size of the database file and spatial relationship, after viewing the system log log found there really an error message, database logs grow automatically log space allocation failure. We are now

Log files have 80G, the database log file growth for each increase of 10%, and does not limit the size. So we try the DBA will be changed in accordance with the proportional increase in constant growth every 512MB, the results of this distribution system log

File space can be successful.

         Such sales documents can be re-saved, so business operations are ok. But why in proportion to the growth of log space will fail, according to a fixed size and growth would be no problem then, we excluded disk bad sectors,

Lack of space, network transmission failure, IO bottlenecks and other reasons, have been unable to give a reasonable answer. Colleagues help infrastructure no results, Baidu and google but could not find a reasonable explanation.

         However, due to the log files grow automatically allocate space for the consequences of failure are very serious indeed, let us truly feel the importance of database maintenance.

 

Reproduced in: https: //www.cnblogs.com/kevinGao/p/3589944.html

Guess you like

Origin blog.csdn.net/weixin_34197488/article/details/93188048