SQLSERVER errorlog讲解
很多时候诊断SQLSERVER问题都需要看SQLSERVER的错误日志
日志里面很多内容没有书本专门讲解,今天我就讲一下,可能里面的日志信息是从我个人的机器
里抓出来的,跟大家的机器环境会有所不同,但是SQLSERVER启动部分的日志大家都是一样的
特别的说一下:2013-02-12 17:53:29.29?spid29s
这些spid指的是SQLSERVER内部的进程,因为SQLSERVER内部有SQL OS,所以称呼他自己内部的线程为“进程”
所以在Windows的任务管理器里是看不到这些“进程ID的”的,这些进程ID也会跟会话关联的,例如你在
SSMS里新建一个查询,SQLSERVER就会新建一个会话ID(SPID),这些“进程”可以kill的
?------------------------------------------------------------------------------------------------------------
2013-10-21
附上SQLSERVER2012 启动时候的ERRORLOG
2013-10-21 18:06:18.51 Server Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64) Oct 19 2012 13:38:57 Copyright (c) Microsoft Corporation Developer Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)2013-10-21 18:06:18.53 Server (c) Microsoft Corporation.2013-10-21 18:06:18.53 Server All rights reserved.2013-10-21 18:06:18.53 Server Server process ID is 2364.2013-10-21 18:06:18.53 Server System Manufacturer: 'VMware, Inc.', System Model: 'VMware Virtual Platform'.2013-10-21 18:06:18.53 Server Authentication mode is MIXED.2013-10-21 18:06:18.54 Server Logging SQL Server messages in file 'D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\ERRORLOG'.2013-10-21 18:06:18.54 Server The service account is 'NT Service\MSSQLSERVER'. This is an informational message; no user action is required.2013-10-21 18:06:18.54 Server Registry startup parameters: -d D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\master.mdf -e D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\ERRORLOG -l D:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\mastlog.ldf2013-10-21 18:06:18.54 Server Command Line Startup Parameters: -s "MSSQLSERVER"2013-10-21 18:06:19.24 服务器 SQL Server detected 2 sockets with 2 cores per socket and 2 logical processors per socket, 4 total logical processors; using 4 logical processors based on SQL Server licensing. This is an informational message; no user action is required.2013-10-21 18:06:19.24 服务器 SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.2013-10-21 18:06:19.24 服务器 Detected 2999 MB of RAM. This is an informational message; no user action is required.2013-10-21 18:06:19.26 服务器 Using conventional memory in the memory manager.2013-10-21 18:06:24.37 服务器 This instance of SQL Server last reported using a process ID of 2328 at 2013/10/19 11:13:57 (local) 2013/10/19 3:13:57 (UTC). This is an informational message only; no user action is required.2013-10-21 18:06:24.42 服务器 Node configuration: node 0: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message only. No user action is required.2013-10-21 18:06:24.47 服务器 Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.2013-10-21 18:06:24.53 服务器 Software Usage Metrics is disabled.2013-10-21 18:06:24.61 Server CLR version v4.0.30319 loaded.2013-10-21 18:06:24.65 spid2s Starting up database 'master'.2013-10-21 18:06:25.38 服务器 Common language runtime (CLR) functionality initialized using CLR version v4.0.30319 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.2013-10-21 18:06:30.12 spid2s Resource governor reconfiguration succeeded.2013-10-21 18:06:30.14 spid2s SQL Server Audit is starting the audits. This is an informational message. No user action is required.2013-10-21 18:06:30.16 spid2s SQL Server Audit has started the audits. This is an informational message. No user action is required.<{39B75A24-0837-4CEC-AFDF-B960027AE07E}>RsFxNso initialized. InstanceId = 00000001<{50080099-5EC4-4EAF-A2A2-63C3DA97F8EB}>FsAgent is initialized<{09C4480B-DBA4-49B7-956F-68A8B8B2445D}>FsAgent is up and running2013-10-21 18:06:30.45 spid2s FILESTREAM: effective level = 2 (remote access enabled), configured level = 2, file system access share name = 'MSSQLSERVER'.2013-10-21 18:06:33.25 spid2s SQL Trace ID 1 was started by login "sa".2013-10-21 18:06:33.99 spid2s Server name is 'WIN7U-20130702M'. This is an informational message only. No user action is required.2013-10-21 18:06:34.92 spid18s A self-generated certificate was successfully loaded for encryption.2013-10-21 18:06:35.04 spid18s Server is listening on [ 'any' <ipv6> 1433].2013-10-21 18:06:35.05 spid18s Server is listening on [ 'any' <ipv4> 1433].2013-10-21 18:06:35.05 spid18s Server local connection provider is ready to accept connection on [ \\.\pipe\SQLLocal\MSSQLSERVER ].2013-10-21 18:06:35.06 spid18s Server named pipe provider is ready to accept connection on [ \\.\pipe\sql\query ].2013-10-21 18:06:35.06 服务器 Server is listening on [ ::1 <ipv6> 1434].2013-10-21 18:06:35.06 服务器 Server is listening on [ 127.0.0.1 <ipv4> 1434].2013-10-21 18:06:35.06 服务器 Dedicated admin connection support was established for listening locally on port 1434.2013-10-21 18:06:35.39 服务器 SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This is an informational message. No user action is required.2013-10-21 18:06:35.39 服务器 The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/WIN7U-20130702M ] for the SQL Server service. Windows return code: 0xffffffff, state: 63. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.2013-10-21 18:06:35.39 服务器 The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/WIN7U-20130702M:1433 ] for the SQL Server service. Windows return code: 0xffffffff, state: 63. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.2013-10-21 18:06:35.39 spid18s SQL Server is now ready for client connections. This is an informational message; no user action is required.2013-10-21 18:07:13.64 spid26s Starting up database 'ReportServer'.2013-10-21 18:07:13.65 spid23s Starting up database 'ReportServerTempDB'.2013-10-21 18:07:13.65 spid28s Starting up database 'GPOSDB'.2013-10-21 18:07:13.65 spid24s Starting up database 'msdb'.2013-10-21 18:07:13.66 spid27s Starting up database 'hengshan'.2013-10-21 18:07:13.66 spid25s Starting up database 'pratice'.2013-10-21 18:07:13.66 spid9s Starting up database 'mssqlsystemresource'.2013-10-21 18:07:13.71 spid29s Starting up database 'FileStreamTestDb'.2013-10-21 18:07:13.72 spid30s Starting up database '长铁物业公司资产数据库'.2013-10-21 18:07:13.82 spid9s The resource database build version is 11.00.3000. This is an informational message only. No user action is required.2013-10-21 18:07:16.04 spid9s Starting up database 'model'.2013-10-21 18:07:18.92 spid9s Clearing tempdb database.2013-10-21 18:07:25.96 spid9s Starting up database 'tempdb'.2013-10-21 18:07:27.18 spid11s The Service Broker endpoint is in disabled or stopped state.2013-10-21 18:07:27.37 spid11s The Database Mirroring endpoint is in disabled or stopped state.2013-10-21 18:07:28.82 spid28s CHECKDB for database 'GPOSDB' finished without errors on 2013-06-10 00:00:41.420 (local time). This is an informational message only; no user action is required.2013-10-21 18:07:29.57 spid11s Service Broker manager has started.2013-10-21 18:07:35.01 spid25s CHECKDB for database 'pratice' finished without errors on 2013-06-10 00:00:56.963 (local time). This is an informational message only; no user action is required.2013-10-21 18:07:35.53 spid2s Recovery is complete. This is an informational message only. No user action is required.2013-10-21 18:07:52.84 spid20s A new instance of the full-text filter daemon host process has been successfully started.2013-10-21 18:08:10.24 spid51 Attempting to load library 'xpsqlbot.dll' into memory. This is an informational message only. No user action is required.2013-10-21 18:08:10.64 spid51 Using 'xpsqlbot.dll' version '2011.110.2100' to execute extended stored procedure 'xp_qv'. This is an informational message only; no user action is required.2013-10-21 18:08:14.48 spid51 Attempting to load library 'xpstar.dll' into memory. This is an informational message only. No user action is required.2013-10-21 18:08:15.66 spid51 Using 'xpstar.dll' version '2011.110.3000' to execute extended stored procedure 'xp_instance_regread'. This is an informational message only; no user action is required.2013-10-21 18:08:17.53 spid51 Attempting to load library 'xplog70.dll' into memory. This is an informational message only. No user action is required.2013-10-21 18:08:18.21 spid51 Using 'xplog70.dll' version '2011.110.2100' to execute extended stored procedure 'xp_msver'. This is an informational message only; no user action is required.2013-10-21 19:16:46.09 spid3s Warning: Failure to calculate super-latch promotion threshold.?