Enabling C2 Audit Logon causes sqlserver to be disabled

Source: Internet
Author: User
Enabling C2 Audit Logon causes sqlserver to be disabled

Previous/next article 10:01:07/personal classification: SQL Server

View (187)/comment (2)/score (10/0)

Always running very stableDatabaseServer(Sqlserver2008), suddenlySQL ServerThe connection fails. Check the server and find that the SQL Server service is stopped because the disk C is full (SQL ServerInstallC :\... \ MSSQL \ data has many files named "audittrace201000502112519_15.trc". The file size is 200 MB. After these files are deleted, many such files will be automatically generated in a short time.

Check the server configuration and find that C2 audit trail is enabled (server properties/Security.

After the C2 audit trail is enabled, SQL Server reviews and checks all access statements and objects, and records them in files under the \ MSSQL \ data directory. if the size of the audit log file reaches the maximum limit (200 MB), SQL Server creates a new file, closes the old file, and records all new audit data to the new file. This process continues until the audit data directory is full or the audit is closed. You can query the SYS. Traces view to determine the C2 trace status.

If the log directory space is insufficient, SQL Server will shut down itself. to restart SQL Server after forced shutdown, use the-F flag to bypass review or release more space for Review logs.

-- Disable or enable C2 audit trail

Exec sp_configure 'c2 audit mode ', <0 or 1>

Go

Reconfigure

.

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.