SqlServer教程

【MSSQL巡检】SQL Server巡检

本文主要是介绍【MSSQL巡检】SQL Server巡检,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=


MSSQL数据库巡检报告




Copyright (c) 2015-2100 (http://blog.itpub.net/26736162) lhrbest. All rights reserved.

巡 检 人:lhr ([blog:http://blog.itpub.net/26736162] [QQ:646634621] [Nickname:小麦苗] [微信公众号:DB宝] [提供OCP、OCM、高可用最实用的培训])
版 本 号:v1.0.0
修改日期:2020-10-07

[转到页底]


目录


总体概况数据库服务器基本信息数据库启动参数所有数据库信息所有数据库文件信息所有数据库备份信息
临时数据库使用情况用户和角色查CPU瓶颈

锁情况锁情况计算资源等待和信号量等待时间用户和进程信息阻塞的会话
SQL部分









索引部分




其它无主键的表表行数top 10查看最近一周执行较慢的作业




总体概况


★ 数据库服务器基本信息


















MSSQL版本当前时间主机名服务名实例名是否集群产品版本认证模式逻辑CPU数量数据库服务器启动时间当前数据库名称当前数据库字符集当前登录用户ServicePackEditionCollationISFullText
Microsoft SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64)   Apr  2 2010 15:48:46   Copyright (c) Microsoft Corporation  Enterprise Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)2020-10-07T21:08:11.597ECS-7D41ECS-7D41MSSQLSERVER010.50.1600.1Mixed Authentication22020-09-18 17:47:18sany1234936saRTMEnterprise Edition (64-bit)Chinese_PRC_CI_AS1

★ 其它服务器信息





IndexNameInternal_ValueCharacter_Value
1ProductName0Microsoft SQL Server
2ProductVersion65541010.50.1600.1
3Language2052中文(简体,中国)
4Platform0NT x64
5Comments0SQL
6CompanyName0Microsoft Corporation
7FileDescription0SQL Server Windows NT - 64 Bit
8FileVersion02009.0100.1600.01 ((KJ_RTM).100402-1539 )
9InternalName0SQLSERVR
10LegalCopyright0Microsoft Corp. All rights reserved.
11LegalTrademarks0Microsoft SQL Server is a registered trademark of Microsoft Corporation.
12OriginalFilename0SQLSERVR.EXE
13PrivateBuild0
14SpecialBuild104857601
15WindowsVersion6029317186.2 (9200)
16ProcessorCount22
17ProcessorActiveMask03
18ProcessorType8664
19PhysicalMemory40954095 (4294037504)
20Product ID0

★ 数据库启动参数(服务器选项)










configuration_idnamevalueminimummaximumvalue_in_usedescriptionis_dynamicis_advanced
1582access check cache bucket count0065536OFFDefault hash bucket count for the access check result security cache11
1583access check cache quota002147483647OFFDefault quota for the access check result security cache11
16391Ad Hoc Distributed Queries101ONEnable or disable Ad Hoc Distributed Queries11
1550affinity I/O mask0-21474836482147483647OFFaffinity I/O mask01
1535affinity mask0-21474836482147483647OFFaffinity mask11
1551affinity64 I/O mask0-21474836482147483647OFFaffinity64 I/O mask01
1549affinity64 mask0-21474836482147483647OFFaffinity64 mask11
16384Agent XPs101ONEnable or disable Agent XPs11
102allow updates101ONAllow updates to system tables10
1548awe enabled001OFFAWE enabled in the server01
1579backup compression default001OFFEnable compression of backups by default10
1569blocked process threshold (s)0086400OFFBlocked process reporting threshold11
544c2 audit mode001OFFc2 audit mode01
1562clr enabled001OFFCLR user code execution enabled in the server10
1577common criteria compliance enabled001OFFCommon Criteria compliance mode enabled01
1538cost threshold for parallelism50327675cost threshold for parallelism11
400cross db ownership chaining001OFFAllow cross db ownership chaining10
1531cursor threshold-1-12147483647-1cursor threshold11
16386Database Mail XPs001OFFEnable or disable Database Mail XPs11
1126default full-text language2052021474836472052default full-text language11
124default language300999930default language10
1568default trace enabled101ONEnable or disable the default trace11
114disallow results from triggers001OFFDisallow returning results from triggers11
1578EKM provider enabled001OFFEnable or disable EKM provider01
1580filestream access level002OFFSets the FILESTREAM access level10
109fill factor (%)00100OFFDefault fill factor percentage01
1567ft crawl bandwidth (max)100032767100Max number of full-text crawl buffers11
1566ft crawl bandwidth (min)0032767OFFNumber of reserved full-text crawl buffers11
1565ft notify bandwidth (max)100032767100Max number of full-text notifications buffers11
1564ft notify bandwidth (min)0032767OFFNumber of reserved full-text notifications buffers11
1505index create memory (KB)07042147483647OFFMemory for index create sorts (kBytes)11
1570in-doubt xact resolution002OFFRecovery policy for DTC transactions with unknown outcome11
1546lightweight pooling001OFFUser mode scheduler uses lightweight pooling01
106locks050002147483647OFFNumber of locks for all users01
1539max degree of parallelism001024OFFmaximum degree of parallelism11
1563max full-text crawl range402564Maximum  crawl ranges allowed in full-text indexing11
1544max server memory (MB)30721621474836473072Maximum size of server memory (MB)11
1536max text repl size (B)65536-1214748364765536Maximum size of a text field in replication.10
503max worker threads012832767OFFMaximum worker threads01
1537media retention00365OFFTape retention period in days11
1540min memory per query (KB)102451221474836471024minimum memory per query (kBytes)11
1543min server memory (MB)00214748364716Minimum size of server memory (MB)11
115nested triggers101ONAllow triggers to be invoked within triggers10
505network packet size (B)4096512327674096Network packet size11
16388Ole Automation Procedures001OFFEnable or disable Ole Automation Procedures11
107open objects002147483647OFFNumber of open database objects01
1581optimize for ad hoc workloads001OFFWhen this option is set, plan cache size is further reduced for single-use adhoc OLTP workload.11
1557PH timeout (s)601360060DB connection timeout for full-text protocol handler (s)11
1556precompute rank001OFFUse precomputed rank for full-text query11
1517priority boost001OFFPriority boost01
1545query governor cost limit002147483647OFFMaximum estimated cost allowed by query governor11
1541query wait (s)-1-12147483647-1maximum time to wait for query memory (s)11
101recovery interval (min)0032767OFFMaximum recovery interval in minutes11
117remote access101ONAllow remote access00
1576remote admin connections101ONDedicated Admin Connections are allowed from remote clients10
1519remote login timeout (s)200214748364720remote login timeout10
542remote proc trans001OFFCreate DTC transaction for remote procedures10
1520remote query timeout (s)60002147483647600remote query timeout10
16392Replication XPs001OFFEnable or disable Replication XPs11
1547scan for startup procs001OFFscan for startup stored procedures01
116server trigger recursion101ONAllow recursion for server level triggers10
1532set working set size001OFFset working set size01
518show advanced options101ONshow advanced options10
16387SMO and DMO XPs101ONEnable or disable SMO and DMO XPs11
16385SQL Mail XPs001OFFEnable or disable SQL Mail XPs11
1555transform noise words001OFFTransform noise words for full-text query11
1127two digit year cutoff2049175399992049two digit year cutoff11
103user connections0032767OFFNumber of user connections allowed01
1534user options0032767OFFuser options10
16390xp_cmdshell101ONEnable or disable command shell11

★ 所有数据库




















数据库ID数据库创建时间恢复模式排序方式用户访问模式数据库状态自动创建统计信息自动更新统计信息自动关闭自动收缩自动异步更新统计信息兼容性级别日志重用等待页检测选项是否cdc数据文件大小(MB)日志大小(MB)数据库大小(MB)
1master2003-04-08T09:13:36.390SIMPLEChinese_PRC_CI_ASMULTI_USERONLINE11000100NOTHINGCHECKSUM04.002.006.00
2tempdb2020-09-18T17:46:54.920SIMPLEChinese_PRC_CI_ASMULTI_USERONLINE11000100NOTHINGCHECKSUM08.000.508.50
3model2003-04-08T09:13:36.390FULLChinese_PRC_CI_ASMULTI_USERONLINE11000100NOTHINGCHECKSUM02.250.753.00
4msdb2010-04-02T17:35:08.970SIMPLEChinese_PRC_CI_ASMULTI_USERONLINE11000100NOTHINGCHECKSUM014.754.1318.88
5ReportServer2020-08-28T09:35:42.397FULLLatin1_General_CI_AS_KS_WSMULTI_USERONLINE11000100NOTHINGCHECKSUM04.256.2510.50
6ReportServerTempDB2020-08-28T09:35:42.660SIMPLELatin1_General_CI_AS_KS_WSMULTI_USERONLINE11000100NOTHINGCHECKSUM02.250.813.06
7testing2020-08-29T09:16:05.590FULL
MULTI_USERONLINE1111080NOTHINGTORN_PAGE_DETECTION1530.502321.382851.88
8htzhang2020-08-28T12:37:20.040SIMPLE
MULTI_USERONLINE1111080NOTHINGTORN_PAGE_DETECTION063.501.0064.50
9zhanght2020-08-28T12:41:22.223SIMPLE
MULTI_USERONLINE1111080NOTHINGTORN_PAGE_DETECTION074.441.0075.44
10zhanghaitian2020-08-28T12:45:06.543SIMPLE
MULTI_USERONLINE1111080NOTHINGTORN_PAGE_DETECTION0192.5099.75292.25
11sany12342020-08-30T00:20:55.920FULLChinese_PRC_CI_ASMULTI_USERONLINE1111080LOG_BACKUPTORN_PAGE_DETECTION164.63622.50687.13
12LHRDB2020-08-31T18:35:37.240FULLChinese_PRC_CI_ASMULTI_USERONLINE11000100NOTHINGCHECKSUM03.001.004.00
13ggsdb2020-09-05T21:36:35.690FULLChinese_PRC_CI_ASMULTI_USERONLINE11000100NOTHINGCHECKSUM03.001.004.00
14kis2020-09-07T10:47:59.643FULLChinese_PRC_CI_ASMULTI_USERONLINE11000100NOTHINGCHECKSUM0515.190.81516.00
15lhrtemp2020-09-28T09:10:48.503FULL
MULTI_USERONLINE1111080NOTHINGTORN_PAGE_DETECTION01125.191.251126.44

★ 所有数据库文件信息
















数据库文件id文件名文件路径文件类型文件状态是否百分比增长增长量大小(MB)avg_readavg_writeio_stall_read_msnum_of_readsio_stall_write_msnum_of_writes
master1masterD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\master.mdfROWSONLINE110%45.20.527452587311009
master2mastlogD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\mastlog.ldfLOGONLINE110%22.60.2391434699168167
tempdb1tempdevD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\tempdb.mdfROWSONLINE110%81.02.11734168335551656
tempdb2templogD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\templog.ldfLOGONLINE110%00.51.12247677638
model1modeldevD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\model.mdfROWSONLINE01MB21.80.71065922
model2modellogD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\modellog.ldfLOGONLINE110%00.02.9054414
msdb1MSDBDataD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\MSDBData.mdfROWSONLINE110%146.10.31139186460214614
msdb2MSDBLogD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\MSDBLog.ldfLOGONLINE110%45.60.31111953969206509
ReportServer1ReportServerD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ReportServer.mdfROWSONLINE01MB44.00.02004901
ReportServer2ReportServer_logD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ReportServer_log.LDFLOGONLINE110%60.70.21826212
ReportServerTempDB1ReportServerTempDBD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ReportServerTempDB.mdfROWSONLINE01MB24.35.010323101
ReportServerTempDB2ReportServerTempDB_logD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ReportServerTempDB_log.LDFLOGONLINE110%01.40.411737
testing1HH91Full_DataD:\MSSQL\data\testing.mdfROWSONLINE110%5300.00.00000
testing2HH91Full_LogD:\MSSQL\data\testing_1.ldfLOGONLINE110%23210.00.00000
htzhang1HH91Full_DataD:\GRASPⅡTOP+\Data\htzhang.mdfROWSONLINE110%630.00.00000
htzhang2HH91Full_LogD:\GRASPⅡTOP+\Data\htzhang.ldfLOGONLINE110%10.00.00000
zhanght1HH91Full_DataD:\GRASPⅡTOP+\Data\zhanght.mdfROWSONLINE110%740.00.00000
zhanght2HH91Full_LogD:\GRASPⅡTOP+\Data\zhanght.ldfLOGONLINE110%10.00.00000
zhanghaitian1HH91Full_DataD:\GRASPⅡTOP+\Data\zhanghaitian.mdfROWSONLINE110%1920.00.00000
zhanghaitian2HH91Full_LogD:\GRASPⅡTOP+\Data\zhanghaitian.ldfLOGONLINE110%990.00.00000
sany12341HH91Full_DataD:\GRASPⅡTOP+\Data\sany1234.mdfROWSONLINE110%645.00.43280650230627
sany12342HH91Full_LogD:\GRASPⅡTOP+\Data\sany1234.ldfLOGONLINE110%6220.30.4155505151071339583
LHRDB1LHRDBD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\LHRDB.mdfROWSONLINE01MB33.10.0832601
LHRDB2LHRDB_logD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\LHRDB_log.ldfLOGONLINE110%11.80.616858
ggsdb1ggsdbD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ggsdb.mdfROWSONLINE01MB31.50.0372301
ggsdb2ggsdb_logD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ggsdb_log.ldfLOGONLINE110%10.80.378723
kis1KunlunIdentityServerD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\kis.mdfROWSONLINE0512MB5155.41.01933532
kis2KunlunIdentityServer_logD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\kis.ldfLOGONLINE0512MB01.80.214728
lhrtemp1HH91Full_DataD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\lhrtemp.mdfROWSONLINE110%11250.00.00000
lhrtemp2HH91Full_LogD:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\lhrtemp_1.ldfLOGONLINE110%10.00.00000

★ 查询每个数据库文件的平均读写阻塞时间











数据库avg_read_stall_msavg_write_stall_msFile Size(MB)physical_nametype_descio_stall_read_msnum_of_readsio_stall_write_msnum_of_writes
master5.20.54.00D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\master.mdfROWS27452587311009
master2.60.22.00D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\mastlog.ldfLOG391434699168167
tempdb1.02.18.00D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\tempdb.mdfROWS1734168335551656
tempdb0.51.10.50D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\templog.ldfLOG2247677638
model1.80.72.25D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\model.mdfROWS1065922
model0.02.90.75D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\modellog.ldfLOG054414
msdb6.10.314.75D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\MSDBData.mdfROWS1139186460214614
msdb5.60.34.13D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\MSDBLog.ldfLOG1111953969206509
ReportServer4.00.04.25D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ReportServer.mdfROWS2004901
ReportServer0.70.26.25D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ReportServer_log.LDFLOG1826212
ReportServerTempDB4.35.02.25D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ReportServerTempDB.mdfROWS10323101
ReportServerTempDB1.40.40.81D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ReportServerTempDB_log.LDFLOG11737
sany12345.00.464.63D:\GRASPⅡTOP+\Data\sany1234.mdfROWS3280650230627
sany12340.30.4622.50D:\GRASPⅡTOP+\Data\sany1234.ldfLOG155505151071339583
LHRDB3.10.03.00D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\LHRDB.mdfROWS832601
LHRDB1.80.61.00D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\LHRDB_log.ldfLOG16858
ggsdb1.50.03.00D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ggsdb.mdfROWS372301
ggsdb0.80.31.00D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\ggsdb_log.ldfLOG78723
kis5.41.0515.19D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\kis.mdfROWS1933532
kis1.80.20.81D:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\kis.ldfLOG14728

★ 所有数据库备份信息





















服务器名用户名数据库名备份开始时间备份结束时间备份花费时间备份文件备份类型备份大小(MB)压缩大小(MB)first_lsnlast_lsncheckpoint_lsndatabase_backup_lsnsoftware_major_versionsoftware_minor_versionsoftware_build_versionrecovery_modelcollation_namedatabase_version
GENSERVERGENSERVER\Administratorgrasp922020-04-26T15:21:162020-04-26T15:21:204D:\GRASPⅡTOP+\Data\grasp92Full Backup72.3572.3514362000000026100001143620000000264000011436200000002610000313767000000012500002802039
Chinese_PRC_CI_AS539
GENSERVERGENSERVER\AdministratorGraspdnys2020-04-26T15:26:442020-04-26T15:26:528D:\GRASPⅡTOP+\Data\GraspDNYSFull Backup147.35147.3548766000000008300001487660000000871000014876600000000830000348104000000057700003802039
Chinese_PRC_CI_AS539
B27B01441\MS3002NT AUTHORITY\SYSTEMkis2020-09-07T11:06:132020-09-07T11:06:130D:\kis001.bakDifferential Database4.250.1014800000001640003714800000002060000114800000001910003414800000001640003710506000FULLChinese_PRC_CI_AS661
B27B01441\MS3002NT AUTHORITY\SYSTEMkis2020-09-07T10:30:242020-09-07T10:30:251D:\kis000.bakFull Backup4.250.4114800000001080000114800000001800000114800000001640003714700000004700003710506000FULLChinese_PRC_CI_AS661
B27B01441\MS3002NT AUTHORITY\SYSTEMkis2020-09-05T23:54:562020-09-05T23:54:560D:\kis1.bakDifferential Database4.250.1014800000000190000114800000000380000114800000000360000114700000004700003710506000FULLChinese_PRC_CI_AS661
B27B01441\MS3002NT AUTHORITY\SYSTEMkis2020-09-05T22:07:012020-09-05T22:07:021D:\kis.bakFull Backup4.250.4114700000004450003414700000004860000114700000004700003714700000003480003710506000FULLChinese_PRC_CI_AS661
ECS-7D41salhrtemp2020-09-28T09:30:152020-09-28T09:30:150D:\SANYCHILE_20200928_OGG_START_LOG.bakLog0.070.074440500000000620003944405000000009100001444050000000062000394440500000000620003910501600FULLChinese_PRC_CI_AS661
ECS-7D41salhrtemp2020-09-28T09:30:042020-09-28T09:30:1511D:\SANYCHILE_20200928_OGG_START.bakFull Backup847.08847.084440500000000620003944405000000008400001444050000000062000394411300000003670007610501600FULLChinese_PRC_CI_AS661
ECS-7D41sasany12342020-09-11T09:33:372020-09-11T09:33:381d:\sany1234.bakFull Backup49.0849.081456300000000630003714563000000007900001145630000000063000371456000000004190009910501600FULLChinese_PRC_CI_AS661
ECS-7D41sasany12342020-08-30T11:14:092020-08-30T11:14:090D:\GRASPⅡTOP+\Backup\sany123420200830111408499Full Backup49.0849.081456000000004190009914560000000045800001145600000000419000991436200000002610000310501600SIMPLEChinese_PRC_CI_AS661
SANY-HANGKANGsaSANYCHILE2020-09-28T07:00:002020-09-28T07:00:088D:\SANYCHILE_backup_2020_09_28_070000_6886029.bakFull Backup1064.09165.074411300000003670007644113000000042500001441130000000367000764410800000000160027010501600FULLChinese_PRC_CI_AS661
ECS-7D41satesting2020-09-10T17:33:452020-09-10T17:33:527D:\GRASPⅡTOP+\Backup\testing20200910173346228Full Backup487.50487.501488100000306870000114881000003100800001148810000030972000921488100000307770025810501600FULLChinese_PRC_CI_AS661
ECS-7D41satesting2020-09-10T17:22:022020-09-10T17:22:086D:\GRASPⅡTOP+\Backup\HTFull Backup487.44487.441488100000306870000114881000003087900001148810000030777002581477700000219570012910501600FULLChinese_PRC_CI_AS661
ECS-7D41satesting2020-09-08T10:32:322020-09-08T10:32:364D:\GRASPⅡTOP+\Backup\testing20200908103234862Full Backup344.28344.281477700000219450000114777000002200800001147770000021957001291477700000120880012310501600FULLChinese_PRC_CI_AS661
ECS-7D41satesting2020-09-07T07:37:232020-09-07T07:37:274D:\GRASPⅡTOP+\Backup\testing20200907073722518Full Backup344.28344.281477700000120850000114777000001213800001147770000012088001231477500000224320015710501600FULLChinese_PRC_CI_AS661
ECS-7D41satesting2020-09-02T00:56:142020-09-02T00:56:195D:\GRASPⅡTOP+\Backup\testing20200902005613393Full Backup343.40343.401477500000221880000114775000002249800001147750000022432001571477500000122040008510501600FULLChinese_PRC_CI_AS661
ECS-7D41satesting2020-09-01T11:52:412020-09-01T11:52:454D:\GRASPⅡTOP+\Backup\testing20200901115241205Full Backup343.28343.281477500000121980000114775000001223900001147750000012204000851477500000015620003910501600FULLChinese_PRC_CI_AS661
ECS-7D41satesting2020-08-31T11:19:212020-08-31T11:19:254D:\GRASPⅡTOP+\Backup\testing20200831111920957Full Backup342.40342.401477500000013160000114775000000158000001147750000001562000391456800000003950003710501600FULLChinese_PRC_CI_AS661
ECS-7D41satesting2020-08-29T09:52:392020-08-29T09:52:390D:\testing20200825215825849Full Backup49.0749.071456800000003950003714568000000041100001145680000000395000371456500000003450007610501600FULLChinese_PRC_CI_AS661
SERVER-11A3A1C5satesting2020-08-26T10:57:072020-08-26T10:57:070D:\testing20200825215825849Full Backup49.0849.081456500000003450007614565000000037600001145650000000345000761456400000004420007610501600SIMPLEChinese_PRC_CI_AS661
ECS-7D41sazhanghaitian2020-08-30T00:13:062020-08-30T00:13:060D:\GRASPⅡTOP+\Backup\zhanghaitian20200830001305591Full Backup58.2058.204888300000030930008748883000000312600001488830000003093000874888300000029830013710501600SIMPLEChinese_PRC_CI_AS661
ECS-7D41sazhanghaitian2020-08-30T00:02:122020-08-30T00:02:120D:\GRASPⅡTOP+\Backup\zhanghaitian20200830000211372Full Backup58.2058.204888300000029830013748883000000304000001488830000002983001374888200000019280013810501600SIMPLEChinese_PRC_CI_AS661
ECS-7D41sazhanghaitian2020-08-28T12:50:402020-08-28T12:50:400D:\GRASPⅡTOP+\Backup\zhanghaitian20200828125041136Full Backup58.2058.204888200000019280013848882000000198400001488820000001928001384876600000000830000310501600SIMPLEChinese_PRC_CI_AS661

★ 临时数据库使用情况





user_objects_kbinternal_objects_kbversion_store_kbfreespace_kb
10245126447104

★ 用户和角色







User_IDUser_StatusUserNameRole_IDRole_StatusRoleName
10dbo163840db_owner
20guest00
30INFORMATION_SCHEMA00
40sys00
50cdc163840db_owner

★ 查CPU瓶颈




scheduler_idcurrent_tasks_countrunnable_tasks_count
080
1130
[回到目录]

锁情况


★ 数据库里的锁情况








request_session_iddb_nameobj_nameresource_descriptionrequest_typerequest_statusrequest_mode
73msdb

LOCKGRANTIS
73msdb

LOCKGRANTSch-S
73msdb

LOCKGRANTSch-S
73msdb

LOCKGRANTIS
73tempdb

LOCKGRANTIS
73tempdb

LOCKGRANTIS
73msdb

LOCKGRANTIS

★ 计算资源等待和信号量等待时间



% Signal (CPU) Waits% Resource Waits
0.5699.44

★ 用户和进程信息














spidstatusloginhostnameblkbydbnamecommandcputimediskiolastbatchprogramnamespid2requestid
1BACKGROUNDsa..
RESOURCE MONITOR2296009/18 7:47:18:
10
2BACKGROUNDsa..
XE TIMER484009/18 7:47:18:
20
3BACKGROUNDsa..
XE DISPATCHER93009/18 7:47:18:
30
4BACKGROUNDsa..
LAZY WRITER8046009/18 7:47:18:
40
5BACKGROUNDsa..
LOG WRITER2734009/18 7:47:18:
50
6BACKGROUNDsa..
LOCK MONITOR15009/18 7:47:18:
60
7BACKGROUNDsa..masterSIGNAL HANDLER0009/18 7:47:18:
70
8sleepingsa..masterTASK MANAGER0009/18 7:47:18:
80
9BACKGROUNDsa..masterTRACE QUEUE TASK125009/18 7:47:18:
90
10BACKGROUNDsa..masterBRKR TASK0009/18 7:47:18:
100
11BACKGROUNDsa..zhanghaitianCHECKPOINT72811322309/18 7:47:18:
110
12BACKGROUNDsa..masterTASK MANAGER0009/18 7:47:18:
120
13sleepingsa..masterTASK MANAGER010309/18 7:47:18:
130
14BACKGROUNDsa..masterBRKR EVENT HNDLR153009/18 7:47:18:
140
15BACKGROUNDsa..masterBRKR TASK46009/18 7:47:18:
150
16BACKGROUNDsa..masterBRKR TASK0009/18 7:47:18:
160
17sleepingsa..masterTASK MANAGER019509/18 7:47:18:
170
18sleepingsa..masterTASK MANAGER016509/18 7:47:18:
180
19sleepingsa..masterTASK MANAGER019909/18 7:47:18:
190
20sleepingsa..masterTASK MANAGER019509/18 7:47:18:
200
21sleepingsa..masterTASK MANAGER020509/18 7:47:18:
210
22sleepingsa..masterTASK MANAGER019509/18 7:47:18:
220
23sleepingsa..masterTASK MANAGER016809/18 7:47:18:
230
24sleepingsa..masterTASK MANAGER016209/18 7:47:18:
240
25sleepingsa..masterTASK MANAGER017609/18 7:47:18:
250
26sleepingsa..masterTASK MANAGER022309/18 7:47:18:
260
51sleepingNT AUTHORITY\SYSTEMECS-7D41.msdbAWAITING COMMAND782909/18 7:47:19:SQLAgent - Generic Refresher510
52SUSPENDEDNT AUTHORITY\SYSTEMECS-7D41.sany1234WAITFOR164071709/18 7:47:20:SQLAgent - TSQL JobStep (Job 0x3889FE6ECAC14E4FB02D05F87DF2C47D : Step 2)520
53sleepingsaLHR.sany1234AWAITING COMMAND85994510/07 8:22:56:Microsoft SQL Server Management Studio - 查询530
54sleepingsaECS-7D41.masterAWAITING COMMAND3115009/30 5:23:14:Microsoft SQL Server Management Studio540
55sleepingsaLHR.sany1234AWAITING COMMAND110510/07 9:56:53:Microsoft SQL Server Management Studio - 查询550
56sleepingNT AUTHORITY\SYSTEMECS-7D41.msdbAWAITING COMMAND434774118210/07 1:08:00:SQLAgent - Alert Engine560
57sleepingNT AUTHORITY\SYSTEMECS-7D41.msdbAWAITING COMMAND9312535310/07 1:08:00:SQLAgent - Job invocation engine570
58sleepingsaLHR.sany1234AWAITING COMMAND23602710/07 8:23:02:Microsoft SQL Server Management Studio - 查询580
59sleepingsaLHR.masterAWAITING COMMAND16010/07 6:57:13:Microsoft SQL Server Management Studio590
60sleepingsaLHR.sany1234AWAITING COMMAND63710/07 8:23:33:Microsoft SQL Server Management Studio - 查询600
61sleepingsaLHR.sany1234AWAITING COMMAND172110/07 9:38:12:Microsoft SQL Server Management Studio - 查询610
62sleepingsaLHR.sany1234AWAITING COMMAND47610/07 9:36:49:Microsoft SQL Server Management Studio - 查询620
63sleepingsaLHR.sany1234AWAITING COMMAND3581310/07 0:09:29:Microsoft SQL Server Management Studio - 查询630
64sleepingsaLHR.sany1234AWAITING COMMAND187210/07 9:46:10:Microsoft SQL Server Management Studio - 查询640
65sleepingsaLHR.sany1234AWAITING COMMAND0010/07 0:33:18:Microsoft SQL Server Management Studio - Transact-SQL IntelliSense650
66sleepingsaLHR.sany1234AWAITING COMMAND203510/07 0:23:16:Microsoft SQL Server Management Studio - 查询660
67sleepingsaLHR.ggsdbAWAITING COMMAND3291610/07 0:19:02:Navicat670
68sleepingsaLHR.sany1234AWAITING COMMAND375810/07 0:23:07:Microsoft SQL Server Management Studio - 查询680
69sleepingsaLHR.masterAWAITING COMMAND889196710/07 0:16:45:Navicat690
70sleepingsaLHR.sany1234AWAITING COMMAND3751110/07 1:08:00:Microsoft SQL Server Management Studio - 查询700
71sleepingNT AUTHORITY\SYSTEMECS-7D41.ReportServerAWAITING COMMAND0010/07 1:08:01:Report Server710
72sleepingNT AUTHORITY\SYSTEMECS-7D41.ReportServerAWAITING COMMAND0010/07 1:08:01:Report Server720
73RUNNABLEsaLHR.sany1234SELECT INTO62610/07 1:08:11:Microsoft SQL Server Management Studio - 查询730

★ 阻塞的会话




blocking_session_idwait_duration_mssession_id
[回到目录]

其他


★ 没有主键的表




数据库模式表名
sany1234dboDlyNdxDeposit
sany1234dboFVchcodeDlyNdx
sany1234dboB_Snbakdly
sany1234dboprofitRecordbak
sany1234dboPY_CheckedCount
sany1234dboStockDlyDetail
sany1234dboIniDlyDetail
sany1234dboTmp_TranWxPayInfo
sany1234dbot_jxc_GroupDetail
sany1234dbot_jxc_GroupMain

★ 表行数TOP 10




数据库表名行数
sany1234VchColConfig2172
sany1234lsn_time_mapping1079
sany1234xwc_SysMenu721
sany1234xwc_functionlist573
sany1234T_ReportTree547
sany1234city368
sany1234T_ReportInfo228
sany1234t_gbl_FieldTypeList228
sany1234sysdata170
sany1234t_gbl_ActionList123

★ 查看最近一周执行较慢的作业





namestart_execution_dateExecutedMinAvgRuntimeOnSucceed
syspolicy_purge_history2020-10-07T02:00:00688911
cdc.testing_cleanup2020-10-07T02:00:00688915
cdc.sany1234_cleanup2020-10-07T02:00:00688910




这篇关于【MSSQL巡检】SQL Server巡检的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!