SQL Server log file Growth reason location

Source: Internet
Author: User

Method 1, sys.databases;

--------------------------------------------------------------------------------------------------------------- -------------------------------------------

Log file Growth reason:

1, the database recovery is not simple, but for a long time no backup.

2. There is a transaction in the database that has not been committed for a long time.

3, the database has a large transaction is running.

4. There is a problem with database mirroring.

5. There is a problem with database replication.

Method 1,

By sys.databases the reasons for the problem.

Select Db_name (db.database_id) as Nbname, Db.log_reuse_wait_desc
From sys.databases DB

1. Nothing has multiple reusable log files.

2. Checkpoint has not been checkpoint since the last log truncation.

3, log_backup to show log backup.

4. Backup or restore of the Active_backup_or_restore database is in progress.

5, active_transaction transaction is active.

6, database_mirroring database in the mirror.

7. The replication transaction is in the process of copying.

8. The Database_snapshot_creation database is creating a snapshot.

9, Log_scan is logging scanning.

SQL Server log file Growth reason location

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.