50

我正在使用 SQL Server 2012 开发人员版。即使我尝试了 SQL Server 2012 Express 和企业版,但都给出了相同的错误。我浏览了 msdn 博客以及一些关于 stackoverflow 的帖子。

但是没有什么能帮助我解决这个问题!

错误详情

安装失败

这是错误日志详细信息

Overall summary:
Final result:                  Failed: see details below
Exit code (Decimal):           -2061893606
Start time:                    2013-10-21 12:58:05
End time:                      2013-10-21 13:52:30
Requested action:              Install

Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for RS:              Use the following information to resolve the error,  uninstall this feature, and then run the setup process again.
Next step for SQLEngine:       Use the following information to resolve the error,  uninstall this feature, and then run the setup process again.
Next step for DQ:              Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for FullText:        Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for Replication:     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.


Machine Properties:
  Machine name:                  CROY-TOSH
  Machine processor count:       4
  OS version:                    Windows 7
  OS service pack:               Service Pack 1
  OS region:                     United States
  OS language:                   English (United States)
  OS architecture:               x64
  Process architecture:          64 Bit
  OS clustered:                  No

Product features discovered:
  Product              Instance             Instance ID                    Feature                                       Language             Edition              Version         Clustered 

 Package properties:
   Description:                   Microsoft SQL Server 2012 Service Pack 1
   ProductName:                   SQL Server 2012
   Type:                          RTM
   Version:                       11
   SPLevel:                       0
   Installation location:         C:\Users\CRoy\Downloads\SQL Server 2012 Developer  Edition (x86 and x64) - DVD (English)\x64\setup\
   Installation edition:          Developer

 Product Update Status:
  None discovered.

User Input Settings:
 ACTION:                        Install
 ADDCURRENTUSERASSQLADMIN:      false
 AGTSVCACCOUNT:                 NT Service\SQLSERVERAGENT
 AGTSVCPASSWORD:                *****
 AGTSVCSTARTUPTYPE:             Manual
 ASBACKUPDIR:                   C:\Program Files\Microsoft SQL     Server\MSAS11.MSSQLSERVER\OLAP\Backup
 ASCOLLATION:                   Latin1_General_CI_AI
 ASCONFIGDIR:                   C:\Program Files\Microsoft SQL     Server\MSAS11.MSSQLSERVER\OLAP\Config
 ASDATADIR:                     C:\Program Files\Microsoft SQL  Server\MSAS11.MSSQLSERVER\OLAP\Data
 ASLOGDIR:                      C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Log
ASPROVIDERMSOLAP:              1
ASSERVERMODE:                  MULTIDIMENSIONAL
ASSVCACCOUNT:                  NT Service\MSSQLServerOLAPService
ASSVCPASSWORD:                 <empty>
ASSVCSTARTUPTYPE:              Automatic
ASSYSADMINACCOUNTS:            CRoy-TOSH\CRoy
ASTEMPDIR:                     C:\Program Files\Microsoft SQL   Server\MSAS11.MSSQLSERVER\OLAP\Temp
BROWSERSVCSTARTUPTYPE:         Disabled
CLTCTLRNAME:                   ROY
CLTRESULTDIR:                  C:\Program Files (x86)\Microsoft SQL  Server\DReplayClient\ResultDir\
CLTSTARTUPTYPE:                Manual
CLTSVCACCOUNT:                 NT Service\SQL Server Distributed Replay Client
CLTSVCPASSWORD:                <empty>
CLTWORKINGDIR:                 C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\WorkingDir\
COMMFABRICENCRYPTION:          0
COMMFABRICNETWORKLEVEL:        0
COMMFABRICPORT:                0
CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20131021_125116\ConfigurationFile.ini
CTLRSTARTUPTYPE:               Manual
CTLRSVCACCOUNT:                NT Service\SQL Server Distributed Replay Controller
CTLRSVCPASSWORD:               <empty>
CTLRUSERS:                     CRoy-TOSH\CRoy
ENABLERANU:                    false
ENU:                           true
ERRORREPORTING:                true
FEATURES:                      SQLENGINE, REPLICATION, FULLTEXT, DQ, AS, RS, RS_SHP,  RS_SHPWFE, DQC, BIDS, CONN, IS, BC, SDK, BOL, SSMS, ADV_SSMS, DREPLAY_CTLR, DREPLAY_CLT,  SNAC_SDK, MDS
FILESTREAMLEVEL:               2
FILESTREAMSHARENAME:           MSSQLSERVER
FTSVCACCOUNT:                  NT Service\MSSQLFDLauncher
FTSVCPASSWORD:                 <empty>
HELP:                          false
IACCEPTSQLSERVERLICENSETERMS:  false
INDICATEPROGRESS:              false
INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR:           C:\Program Files (x86)\Microsoft SQL Server\
INSTALLSQLDATADIR:             <empty>
INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
INSTANCEID:                    MSSQLSERVER
INSTANCENAME:                  MSSQLSERVER
ISSVCACCOUNT:                  NT Service\MsDtsServer110
ISSVCPASSWORD:                 <empty>
ISSVCSTARTUPTYPE:              Automatic
MATRIXCMBRICKCOMMPORT:         0
MATRIXCMSERVERNAME:            <empty>
MATRIXNAME:                    <empty>
NPENABLED:                     0
PID:                           *****
QUIET:                         false
QUIETSIMPLE:                   false
ROLE:                          <empty>
RSINSTALLMODE:                 DefaultNativeMode
RSSHPINSTALLMODE:              SharePointFilesOnlyMode
RSSVCACCOUNT:                  NT Service\ReportServer
RSSVCPASSWORD:                 <empty>
RSSVCSTARTUPTYPE:              Automatic
SAPWD:                         *****
SECURITYMODE:                  SQL
SQLBACKUPDIR:                  <empty>
SQLCOLLATION:                  Latin1_General_CI_AI
SQLSVCACCOUNT:                 NT Service\MSSQLSERVER
 SQLSVCPASSWORD:                *****
 SQLSVCSTARTUPTYPE:             Automatic
 SQLSYSADMINACCOUNTS:           CRoy-TOSH\CRoy
 SQLTEMPDBDIR:                  <empty>
 SQLTEMPDBLOGDIR:               <empty>
 SQLUSERDBDIR:                  <empty>
 SQLUSERDBLOGDIR:               <empty>
 SQMREPORTING:                  false
 TCPENABLED:                    0
 UIMODE:                        Normal
 UpdateEnabled:                 true
 UpdateSource:                  MU
 X86:                           false

 Configuration file:            C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20131021_125116\ConfigurationFile.ini

Detailed results:
Feature:                       Management Tools - Complete
Status:                        Passed

Feature:                       Client Tools Connectivity
Status:                        Passed

 Feature:                       Client Tools SDK
 Status:                        Passed

Feature:                       Client Tools Backwards Compatibility
Status:                        Passed

Feature:                       Management Tools - Basic
Status:                        Passed

Feature:                       SQL Server Data Tools
Status:                        Passed

Feature:                       Reporting Services - Native
Status:                        Failed: see logs for details
Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
 Component name:                SQL Server Database Engine Services Instance Features
 Component error code:          0x851A001A
 Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
 Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026

 Feature:                       Database Engine Services
 Status:                        Failed: see logs for details
  Reason for failure:            An error occurred during the setup process of the feature.
 Next Step:                     Use the following information to resolve the error,  uninstall this feature, and then run the setup process again.
 Component name:                SQL Server Database Engine Services Instance Features
 Component error code:          0x851A001A
 Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
 Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026

 Feature:                       Data Quality Services
 Status:                        Failed: see logs for details
 Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
 Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
 Component name:                SQL Server Database Engine Services Instance Features
 Component error code:          0x851A001A
 Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
 Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026

 Feature:                       Full-Text and Semantic Extractions for Search
 Status:                        Failed: see logs for details
 Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  Next Step:                     Use the following information to resolve the error,  uninstall this feature, and then run the setup process again.
  Component name:                SQL Server Database Engine Services Instance Features
  Component error code:          0x851A001A
  Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
  Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026

 Feature:                       SQL Server Replication
 Status:                        Failed: see logs for details
 Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
 Next Step:                     Use the following information to resolve the error,  uninstall this feature, and then run the setup process again.
 Component name:                SQL Server Database Engine Services Instance Features
 Component error code:          0x851A001A
 Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
 Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026

 Feature:                       Master Data Services
 Status:                        Passed

 Feature:                       Distributed Replay Client
 Status:                        Passed

  Feature:                       Distributed Replay Controller
  Status:                        Passed

 Feature:                       Integration Services
 Status:                        Passed

 Feature:                       Data Quality Client
 Status:                        Passed

 Feature:                       Analysis Services
 Status:                        Passed

 Feature:                       Reporting Services - SharePoint
 Status:                        Passed

 Feature:                       Reporting Services Add-in for SharePoint Products
 Status:                        Passed

 Feature:                       SQL Browser
 Status:                        Passed

 Feature:                       Documentation Components
 Status:                        Passed

 Feature:                       SQL Writer
 Status:                        Passed

 Feature:                       SQL Client Connectivity
 Status:                        Passed

 Feature:                       SQL Client Connectivity SDK
 Status:                        Passed

 Rules with failures:

 Global rules:

 Scenario specific rules:

 Rules report file:               C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20131021_125116\SystemConfigurationCheck_Report.htm

这里有几个链接

博客 MSDN

堆栈溢出1

堆栈溢出2

4

6 回答 6

60

下面为我​​工作:

当您来到服务器配置屏幕时,将数据库引擎服务的帐户名称更改为 NT AUTHORITY\NETWORK SERVICE 并继续安装,它将成功安装所有组件而没有任何错误。- 查看更多信息: https ://superpctricks.com/sql-install-error-database-engine-recovery-handle-failed/

于 2015-04-20T02:01:32.860 回答
8

就我而言,将SQL Server 数据库引擎服务启动帐户设置为NT AUTHORITY\NETWORK SERVICE失败,但将其设置为NT Authority\System允许我成功安装我的 SQL Server 2016 STD 实例。

只需检查以下快照。

在此处输入图像描述

有关更多详细信息,请在https://dba.stackexchange.com/a/71798/66179查看@Shanky 的答案

请记住:您可以使用安装程序的SkipRules开关避免服务器重新启动:

setup.exe /ACTION=INSTALL /SkipRules=RebootRequiredCheck

setup.exe /ACTION=UNINSTALL /SkipRules=RebootRequiredCheck
于 2017-05-16T19:05:17.350 回答
6

简单的步骤

  1. 1 打开 SQL Server 配置管理器
  2. 在 SQL Server 服务下选择您的服务器
  3. 右键单击并选择属性
  4. 登录选项卡更改内置帐户勾选
  5. 在下拉列表中选择网络服务
  6. 申请并启动服务
于 2017-01-18T22:36:18.417 回答
5

当您在 SQL Server 2017 Express 上安装安全补丁 KB4505224 时收到该错误消息时,这篇文章非常重要,即上述方法对我不起作用,但确实花了几个小时尝试。

对我来说,部分来自这里的解决方案是:

  1. 卸载 SQL Server
  2. 在区域设置/管理/系统区域设置中,“Beta:UTF-8 support”应该是OFF
  3. 重新安装 SQL Server
  4. 让 Windows 安装补丁。

一切都很好。

更多关于这个here

于 2019-07-30T09:11:43.860 回答
4

根本原因:用于启动数据库的用户帐户的用户配置文件损坏

这里的主线程似乎是用于启动数据库引擎的帐户的损坏的用户帐户配置文件。这是在安装期间为“SQL Server 数据库”引擎指定的帐户。在设置事件日志中,它也由以下条目指示:

SQLSVCACCOUNT:                 NT AUTHORITY\SYSTEM

根据@royki提供的链接:

在大多数情况下,此问题的根本原因是用于服务帐户的用户配置文件(在我的情况下是本地系统)已损坏。

这可以解释为什么其他受访者在更改为不同的帐户后取得了成功:

  • bmjjr建议更改为“NT AUTHORITY\NETWORK SERVICE”
  • 对@bmjjr 的评论表明不同的帐户“我使用了 NT AUTHORITY\LOCAL SERVICE。这也有帮助”
  • @Julio Nobre在“NT Authority\System”方面取得了成功

修复:重置损坏的用户配置文件

要修复导致错误的用户配置文件,请按照KB947215中列出的步骤操作。

KB947215 的主要步骤总结如下:-

  1. 打开regedit
  2. 导航HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
  3. 导航到损坏的配置文件的 SID

    要查找 SID,请单击每个 SID GUID,查看该值的ProfileImagePath值,并查看它是否是正确的帐户。对于系统帐户,有另一种方法可以了解失败帐户的 SID:

感兴趣的主要系统帐户 SID 是:

SID          Name               Also Known As
S-1-5-18     Local System       NT AUTHORITY\SYSTEM
S-1-5-19     LocalService       NT AUTHORITY\LOCAL SERVICE
S-1-5-20     NetworkService     NT AUTHORITY\NETWORK SERVICE

有关其他 SID 的信息,请参阅Windows 操作系统中的知名安全标识符

  1. 如果相关 SID 的末尾有两个条目(例如带有 .bak),或者相关 SID 以 .bak 结尾,请确保仔细遵循KB947215文章中的步骤。
  2. RefCount将和的值重置State0
  3. 重启。
  4. 重试 SQL Server 安装。
于 2018-05-14T19:01:00.327 回答
0

在 Windows 11 和更新的磁盘上出现此错误的新原因。这些新磁盘的扇区大小大于 4 KB,SQL Server 无法处理。

微软文档

原因

在服务启动期间,SQL Server 开始数据库恢复过程以确保数据库的一致性。此数据库恢复过程的一部分涉及在尝试打开系统和用户数据库文件的活动之前对底层文件系统进行一致性检查。

在运行 Windows 11 的系统上,一些新的存储设备和设备驱动程序将公开一个大于支持的 4 KB 扇区大小的磁盘扇区大小。

发生这种情况时,由于文件系统不受支持,SQL Server 将无法启动,因为 SQL Server 当前支持 512 字节和 4 KB 的扇区存储大小

您可以通过运行以下命令来确认您遇到此特定问题:控制台

fsutil fsinfo sectorinfo <volume pathname>

查找值 PhysicalBytesPerSectorForAtomicity,以字节为单位返回。值 4096 表示扇区存储大小为 4 KB,可能会导致此问题。

测试分辨率

命令提示符以管理员身份

REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" /v "ForcedPhysicalSectorSizeInBytes" /t   REG_MULTI_SZ /d "* 4095" /f

验证是否成功添加了密钥。

REG QUERY "HKLM\SYSTEM\CurrentControlSet\Services\stornvme\Parameters\Device" /v "ForcedPhysicalSectorSizeInBytes"

您现在可以SQL SERVER像往常一样安装,而无需更改帐户。

于 2022-02-28T09:33:09.213 回答