1

我正尝试在Windows Server 2016核心上安装SQL Server 2016。由于它没有图形界面,我正在从命令行执行。这是我使用的命令:无法在Windows Server 2008 R2核心上安装SQL Server 2016

的Setup.exe/QS/ACTION =安装/ FEATURES = SQLEngine,复制 /INSTANCENAME = MSSQLSERVER/SQLSVCACCOUNT = “WORKGROUP \ MYUSER” /SQLSVCPASSWORD = “MySecretPass” /SQLSYSADMINACCOUNTS = “工作组\ MYUSER”/ AGTSVCACCOUNT = “NT AUTHORITY \ Network服务”/ TCPENABLED = 1/IACCEPTSQLSERVERLICENSETERMS

这是我得到的错误日志文件:

Overall summary: 
    Final result:     Failed: see details below 
    Exit code (Decimal):   -2068643838 
    Exit facility code:   1203 
    Exit error code:    2 
    Exit message:     No features were installed during the setup execution. The requested features may already be installed. Please review the summary.txt log for further details. 
    Start time:     2015-08-27 06:37:53 
    End time:      2015-08-27 06:41:39 
    Requested action:    Install 

Machine Properties: 
    Machine name:     WIN-4EPO0BFRBMJ 
    Machine processor count:  1 
    OS version:     Windows Server 2008 R2 - ServerCore 
    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 Configured 

Package properties: 
    Description:     Microsoft SQL Server 2016 Community Technology Preview 2.2 (CTP2.2) 
    ProductName:     SQL Server 2016 CTP2.2 
    Type:       CTP 
    Version:      13 
    SPLevel:      0 
    Installation location:   X:\Downloads\SQLServer2016CTP2.2-x64-ENU\x64\setup\ 
    Installation edition:   Evaluation 

Product Update Status: 
    None discovered. 

User Input Settings: 
    ACTION:      Install 
    ADDCURRENTUSERASSQLADMIN:  false 
    AGTSVCACCOUNT:     NT AUTHORITY\Network Service 
    AGTSVCPASSWORD:    <empty> 
    AGTSVCSTARTUPTYPE:    Manual 
    ASBACKUPDIR:     Backup 
    ASCOLLATION:     Latin1_General_CI_AS 
    ASCONFIGDIR:     Config 
    ASDATADIR:      Data 
    ASLOGDIR:      Log 
    ASPROVIDERMSOLAP:    1 
    ASSERVERMODE:     MULTIDIMENSIONAL 
    ASSVCACCOUNT:     <empty> 
    ASSVCPASSWORD:     <empty> 
    ASSVCSTARTUPTYPE:    Automatic 
    ASSYSADMINACCOUNTS:   <empty> 
    ASTEMPDIR:      Temp 
    BROWSERSVCSTARTUPTYPE:   Disabled 
    CLTCTLRNAME:     <empty> 
    CLTRESULTDIR:     <empty> 
    CLTSTARTUPTYPE:    0 
    CLTSVCACCOUNT:     <empty> 
    CLTSVCPASSWORD:    <empty> 
    CLTWORKINGDIR:     <empty> 
    COMMFABRICENCRYPTION:   0 
    COMMFABRICNETWORKLEVEL:  0 
    COMMFABRICPORT:    0 
    CONFIGURATIONFILE:    C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Log\20150827_063736\ConfigurationFile.ini 
    CTLRSTARTUPTYPE:    0 
    CTLRSVCACCOUNT:    <empty> 
    CTLRSVCPASSWORD:    <empty> 
    CTLRUSERS:      <empty> 
    ENABLERANU:     false 
    ENU:       true 
    ERRORREPORTING:    true 
    FEATURES:      
    FILESTREAMLEVEL:    0 
    FILESTREAMSHARENAME:   <empty> 
    FTSVCACCOUNT:     <empty> 
    FTSVCPASSWORD:     <empty> 
    HELP:       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:     <empty> 
    INSTANCENAME:     MSSQLSERVER 
    ISSVCACCOUNT:     NT AUTHORITY\Network Service 
    ISSVCPASSWORD:     <empty> 
    ISSVCSTARTUPTYPE:    Automatic 
    MATRIXCMBRICKCOMMPORT:   0 
    MATRIXCMSERVERNAME:   <empty> 
    MATRIXNAME:     <empty> 
    NPENABLED:      0 
    PBDMSSVCACCOUNT:    <empty> 
    PBDMSSVCPASSWORD:    <empty> 
    PBDMSSVCSTARTUPTYPE:   0 
    PBENGSVCACCOUNT:    <empty> 
    PBENGSVCPASSWORD:    <empty> 
    PBENGSVCSTARTUPTYPE:   0 
    PID:       ***** 
    QUIET:       false 
    QUIETSIMPLE:     true 
    ROLE:       
    RSINSTALLMODE:     DefaultNativeMode 
    RSSHPINSTALLMODE:    DefaultSharePointMode 
    RSSVCACCOUNT:     <empty> 
    RSSVCPASSWORD:     <empty> 
    RSSVCSTARTUPTYPE:    Automatic 
    SAPWD:       <empty> 
    SECURITYMODE:     <empty> 
    SQLBACKUPDIR:     <empty> 
    SQLCOLLATION:     SQL_Latin1_General_CP1_CI_AS 
    SQLSVCACCOUNT:     WORKGROUP\MyUser 
    SQLSVCPASSWORD:    ***** 
    SQLSVCSTARTUPTYPE:    Automatic 
    SQLSYSADMINACCOUNTS:   WORKGROUP\MyUser> 
    SQLTEMPDBDIR:     <empty> 
    SQLTEMPDBFILECOUNT:   0 
    SQLTEMPDBLOGDIR:    <empty> 
    SQLUSERDBDIR:     <empty> 
    SQLUSERDBLOGDIR:    <empty> 
    SQMREPORTING:     true 
    TCPENABLED:     1 
    UIMODE:      Normal 
    UpdateEnabled:     true 
    UpdateSource:     MU 
    USEMICROSOFTUPDATE:   false 
    X86:       false 

    Configuration file:   C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Log\20150827_063736\ConfigurationFile.ini 

Rules with failures: 

Global rules: 

Scenario specific rules: 

Rules report file:    C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Log\20150827_063736\SystemConfigurationCheck_Report.htm 

Exception summary: 
The following is an exception stack listing the exceptions in outermost to innermost order 
Inner exceptions are being indented 

Exception type: Microsoft.SqlServer.Setup.Chainer.Workflow.NoopWorkflowException 
    Message: 
     No features were installed during the setup execution. The requested features may already be installed. Please review the summary.txt log for further details. 
    HResult : 0x84b30002 
     FacilityCode : 1203 (4b3) 
     ErrorCode : 2 (0002) 

更新: 试图安装与的Windows Server 2012核心的错误是相同的,但也有的summary.txt

Overall summary: 
    Final result:     Failed: see details below 
    Exit code (Decimal):   -2061762559 
    Exit facility code:   1308 
    Exit error code:    1 
    Exit message:     Account 'WORKGROUP\Administrator' provided for service 'SQLSERVERAGENT' does not exist. Provide an existing account name for the service. 
    Start time:     2015-08-28 11:58:53 
    End time:      2015-08-28 12:00:50 
    Requested action:    Install 

Setup completed with required actions for features. 
Troubleshooting information for those features: 
    Next step for SQLEngine:  SQL Server Setup was canceled before completing the operation. Try the setup process again. 
    Next step for AS:    SQL Server Setup was canceled before completing the operation. Try the setup process again. 
    Next step for IS:    SQL Server Setup was canceled before completing the operation. Try the setup process again. 
    Next step for Conn:   SQL Server Setup was canceled before completing the operation. Try the setup process again. 
    Next step for ComponentUpdate: SQL Server Setup was canceled before completing the operation. Try the setup process again. 
    Next step for SNAC:   SQL Server Setup was canceled before completing the operation. Try the setup process again. 
    Next step for SNAC_SDK:  SQL Server Setup was canceled before completing the operation. Try the setup process again. 
    Next step for Writer:   SQL Server Setup was canceled before completing the operation. Try the setup process again. 
    Next step for Browser:   SQL Server Setup was canceled before completing the operation. Try the setup process again. 


Machine Properties: 
    Machine name:     SQL-PC 
    Machine processor count:  1 
    OS version:     Windows Server 2012 - ServerCore 
    OS service pack:    
    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 Configured 

Package properties: 
    Description:     Microsoft SQL Server 2016 Community Technology Preview 2.2 (CTP2.2) 
    ProductName:     SQL Server 2016 CTP2.2 
    Type:       CTP 
    Version:      13 
    SPLevel:      0 
    Installation location:   X:\Downloads\SQLServer2016CTP2.2-x64-ENU\x64\setup\ 
    Installation edition:   Evaluation 

Product Update Status: 
    None discovered. 

User Input Settings: 
    ACTION:      Install 
    ADDCURRENTUSERASSQLADMIN:  false 
    AGTSVCACCOUNT:     WORKGROUP\Administrator 
    AGTSVCPASSWORD:    <empty> 
    AGTSVCSTARTUPTYPE:    Manual 
    ASBACKUPDIR:     C:\Program Files\Microsoft SQL Server\MSAS13.MSSQLSERVER\OLAP\Backup 
    ASCOLLATION:     Latin1_General_CI_AS 
    ASCONFIGDIR:     C:\Program Files\Microsoft SQL Server\MSAS13.MSSQLSERVER\OLAP\Config 
    ASDATADIR:      C:\Program Files\Microsoft SQL Server\MSAS13.MSSQLSERVER\OLAP\Data 
    ASLOGDIR:      C:\Program Files\Microsoft SQL Server\MSAS13.MSSQLSERVER\OLAP\Log 
    ASPROVIDERMSOLAP:    1 
    ASSERVERMODE:     MULTIDIMENSIONAL 
    ASSVCACCOUNT:     NT Service\MSSQLServerOLAPService 
    ASSVCPASSWORD:     <empty> 
    ASSVCSTARTUPTYPE:    Automatic 
    ASSYSADMINACCOUNTS:   WORKGROUP\Administrator /ASSERVERMODE=TABULAR /TCPENABLED=1 /ACTION=Install 
    ASTEMPDIR:      C:\Program Files\Microsoft SQL Server\MSAS13.MSSQLSERVER\OLAP\Temp 
    BROWSERSVCSTARTUPTYPE:   Disabled 
    CLTCTLRNAME:     <empty> 
    CLTRESULTDIR:     <empty> 
    CLTSTARTUPTYPE:    0 
    CLTSVCACCOUNT:     <empty> 
    CLTSVCPASSWORD:    <empty> 
    CLTWORKINGDIR:     <empty> 
    COMMFABRICENCRYPTION:   0 
    COMMFABRICNETWORKLEVEL:  0 
    COMMFABRICPORT:    0 
    CONFIGURATIONFILE:    
    CTLRSTARTUPTYPE:    0 
    CTLRSVCACCOUNT:    <empty> 
    CTLRSVCPASSWORD:    <empty> 
    CTLRUSERS:      <empty> 
    ENABLERANU:     false 
    ENU:       true 
    ERRORREPORTING:    true 
    FEATURES:      SQLENGINE, AS, CONN, IS 
    FILESTREAMLEVEL:    0 
    FILESTREAMSHARENAME:   <empty> 
    FTSVCACCOUNT:     <empty> 
    FTSVCPASSWORD:     <empty> 
    HELP:       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\MsDtsServer130 
    ISSVCPASSWORD:     <empty> 
    ISSVCSTARTUPTYPE:    Automatic 
    MATRIXCMBRICKCOMMPORT:   0 
    MATRIXCMSERVERNAME:   <empty> 
    MATRIXNAME:     <empty> 
    NPENABLED:      0 
    PBDMSSVCACCOUNT:    <empty> 
    PBDMSSVCPASSWORD:    <empty> 
    PBDMSSVCSTARTUPTYPE:   0 
    PBENGSVCACCOUNT:    <empty> 
    PBENGSVCPASSWORD:    <empty> 
    PBENGSVCSTARTUPTYPE:   0 
    PID:       ***** 
    QUIET:       false 
    QUIETSIMPLE:     true 
    ROLE:       
    RSINSTALLMODE:     DefaultNativeMode 
    RSSHPINSTALLMODE:    DefaultSharePointMode 
    RSSVCACCOUNT:     <empty> 
    RSSVCPASSWORD:     <empty> 
    RSSVCSTARTUPTYPE:    Automatic 
    SAPWD:       <empty> 
    SECURITYMODE:     <empty> 
    SQLBACKUPDIR:     <empty> 
    SQLCOLLATION:     SQL_Latin1_General_CP1_CI_AS 
    SQLSVCACCOUNT:     WORKGROUP\Administrator 
    SQLSVCPASSWORD:    ***** 
    SQLSVCSTARTUPTYPE:    Automatic 
    SQLSYSADMINACCOUNTS:   WORKGROUP\Administrator 
    SQLTEMPDBDIR:     <empty> 
    SQLTEMPDBFILECOUNT:   1 
    SQLTEMPDBLOGDIR:    <empty> 
    SQLUSERDBDIR:     <empty> 
    SQLUSERDBLOGDIR:    <empty> 
    SQMREPORTING:     true 
    TCPENABLED:     1 
    UIMODE:      Normal 
    UpdateEnabled:     true 
    UpdateSource:     MU 
    USEMICROSOFTUPDATE:   false 
    X86:       false 

    Configuration file:   C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Log\20150828_115850\ConfigurationFile.ini 

Detailed results: 
    Feature:      Database Engine Services 
    Status:      Failed: see logs for details 
    Reason for failure:   Setup was canceled for the feature. 
    Next Step:      SQL Server Setup was canceled before completing the operation. Try the setup process again. 

    Feature:      Analysis Services 
    Status:      Failed: see logs for details 
    Reason for failure:   Setup was canceled for the feature. 
    Next Step:      SQL Server Setup was canceled before completing the operation. Try the setup process again. 

    Feature:      Integration Services 
    Status:      Failed: see logs for details 
    Reason for failure:   Setup was canceled for the feature. 
    Next Step:      SQL Server Setup was canceled before completing the operation. Try the setup process again. 

    Feature:      Client Tools Connectivity 
    Status:      Failed: see logs for details 
    Reason for failure:   Setup was canceled for the feature. 
    Next Step:      SQL Server Setup was canceled before completing the operation. Try the setup process again. 

    Feature:      Setup Support Files 
    Status:      Failed: see logs for details 
    Reason for failure:   Setup was canceled for the feature. 
    Next Step:      SQL Server Setup was canceled before completing the operation. Try the setup process again. 

    Feature:      SQL Client Connectivity 
    Status:      Failed: see logs for details 
    Reason for failure:   Setup was canceled for the feature. 
    Next Step:      SQL Server Setup was canceled before completing the operation. Try the setup process again. 

    Feature:      SQL Client Connectivity SDK 
    Status:      Failed: see logs for details 
    Reason for failure:   Setup was canceled for the feature. 
    Next Step:      SQL Server Setup was canceled before completing the operation. Try the setup process again. 

    Feature:      SQL Writer 
    Status:      Failed: see logs for details 
    Reason for failure:   Setup was canceled for the feature. 
    Next Step:      SQL Server Setup was canceled before completing the operation. Try the setup process again. 

    Feature:      SQL Browser 
    Status:      Failed: see logs for details 
    Reason for failure:   Setup was canceled for the feature. 
    Next Step:      SQL Server Setup was canceled before completing the operation. Try the setup process again. 

Rules with failures: 

Global rules: 

Scenario specific rules: 

Rules report file:    C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\Log\20150828_115850\SystemConfigurationCheck_Report.htm 

Exception summary: 
The following is an exception stack listing the exceptions in outermost to innermost order 
Inner exceptions are being indented 

Exception type: Microsoft.SqlServer.Chainer.Infrastructure.InputSettingValidationException 
    Message: 
     Account 'WORKGROUP\Administrator' provided for service 'SQLSERVERAGENT' does not exist. Provide an existing account name for the service. 
    HResult : 0x851c0001 
     FacilityCode : 1308 (51c) 
     ErrorCode : 1 (0001) 
    Data: 
     SQL.Setup.FailureCategory = InputSettingValidationFailure 
     DisableWatson = true 
    Stack: 
     at Microsoft.SqlServer.Chainer.Infrastructure.InputSettingService.LogAllValidationErrorsAndThrowFirstOne(ValidationState vs) 
     at Microsoft.SqlServer.Configuration.SetupExtension.ValidateFeatureSettingsAction.ExecuteAction(String actionId) 
     at Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId, TextWriter errorStream) 
     at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.<>c__DisplayClasse.<ExecuteActionWithRetryHelper>b__b() 
     at Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(ActionWorker workerDelegate) 
    Inner exception type: Microsoft.SqlServer.Configuration.Agent.InputValidationException 
     Message: 
       Account 'WORKGROUP\Administrator' provided for service 'SQLSERVERAGENT' does not exist. Provide an existing account name for the service. 
     HResult : 0x851c0001 
       FacilityCode : 1308 (51c) 
       ErrorCode : 1 (0001) 
+0

对于初学者,Win2008操作系统甚至不支持。不是说这是问题,但我会先尝试一个不同的操作系统。 https://msdn.microsoft.com/en-us/library/ms143506(v=sql.130).aspx#pmosr – Greg

+0

尝试使用Windows 2012.它是一样的。据我了解,我已经搞乱了用户在命令行中的东西... –

+0

什么是summary.txt文件? – Greg

回答

1

好吧,我会回答我的问题。问题出在域中。由于我没有域名,我需要使用计算机名称而不是WORKGROUP。

更新:我还发现了更简单的方法来安装它:

SETUP.EXE/UIMODE = EnableUIOnServerCore /动作=安装 /INDICATEPROGRESS =真

+0

这有点不利于使用命令行安装的目的。如果您要手动操作GUI,那么只需运行不带参数的setup.exe即可。如果要简化/标准化安装配置,则只需要REQUIRED参数的值以及要自定义的参数。有关可用的详细信息以及需要哪些参数和可选参数,请访问以下网址:https://msdn.microsoft.com/en-us/library/ms144259.aspx – SQLmojoe

+0

在Windows Server CORE上运行不带参数的setup.exe不起作用。 –

0

如果您使用的是安装本地帐户,那么您需要将帐户名称设置为MACHINE NAME \ ACCOUNT,正如您在上一篇文章中指出的那样。即使您的计算机位于域中,您也必须遵循相同的命名约定。要在设置运行时获取更详细的输出以进行故障排除,您可以使用INDICATEPROGRESS设置参数,而无需切换到UI模式。

相关问题