无人值守装配SQL Server 2008 R2

2024-04-02 19:32

本文主要是介绍无人值守装配SQL Server 2008 R2,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

安装命令:

"F:\setup.exe" /ACTION=install/ConfigurationFile="D:\SQL Server安装\ConfigurationFile.ini" /IACCEPTSQLSERVERLICENSETERMS/ASSYSADMINACCOUNTS=".\Administrator" /SQLSYSADMINACCOUNTS=".\Administrator"

注:
1、"F:\setup.exe"表示光盘中setup的路径
2、"D:\SQL Server安装\ConfigurationFile.ini" 表示安装配置文件的路径
3、/ASSYSADMINACCOUNTS=".\Administrator",/SQLSYSADMINACCOUNTS=".\Administrator"是要添加本地的管理员账户,改为本机的即可。


配置文件:ConfigurationFile.ini

;SQLSERVER2008 Configuration File
[SQLSERVER2008]

; 为您已指定的 SQL Server 功能指定实例 ID。SQL Server 目录结构、注册表结构和服务名称将反映 SQL Server 实例的实例 ID。
INSTANCEID="MSSQLSERVER"

; 指定安装程序的工作流,如 INSTALL、UNINSTALL 或 UPGRADE。这是必需的参数。
ACTION="Install"

; 指定要安装、卸载或升级的功能。顶级功能列表包括 SQL、AS、RS、IS 和工具。SQL 功能将安装数据库引擎、复制和全文。工具功能将安装管理工具、联机丛书、BusinessIntelligence

Development Studio 和其他共享组件。
FEATURES=SQL,AS,RS,IS,Tools

; 显示命令行参数用法
HELP="False"

; 指定应将详细的安装程序日志传送到控制台。
INDICATEPROGRESS="False"

; 安装程序将不会显示任何用户界面。
QUIET="False"

; 安装程序将只显示进度,不需要任何用户交互。
QUIETSIMPLE="True"

; 指定安装程序应该安装到 WOW64 中。IA64 或 32 位系统不支持此命令行参数。
X86="False"

; 指定是否可将错误报告给 Microsoft 以便改进以后的 SQL Server 版本。指定 1 或 True 将启用此功能,指定 0 或 False 将禁用此功能。
ERRORREPORTING="False"

; 指定本机共享组件的安装根目录。
INSTALLSHAREDDIR="C:\ProgramFiles\Microsoft SQL Server"

; 指定 WOW64 共享组件的安装根目录。
INSTALLSHAREDWOWDIR="C:\Program Files(x86)\Microsoft SQL Server"

; 指定安装目录。
INSTANCEDIR="C:\ProgramFiles\Microsoft SQL Server"

; 指定可以收集 SQL Server 功能使用情况数据,并将数据发送到 Microsoft。指定 1 或 True 将启用此功能,指定 0 或 False 将禁用此功能。
SQMREPORTING="False"

; 指定默认实例或命名实例。MSSQLSERVER 是非 Express 版本的默认实例,SQLExpress 则是 Express 版本的默认实例。在安装 SQL Server 数据库引擎(SQL)、AnalysisServices (AS)或

ReportingServices (RS)时,此参数是必需的。
INSTANCENAME="MSSQLSERVER"

; 代理帐户名
AGTSVCACCOUNT="NTAUTHORITY\SYSTEM"
; 安装后自动启动服务。 
AGTSVCSTARTUPTYPE="Automatic"

; Integration Services 的启动类型。
ISSVCSTARTUPTYPE="Automatic"

; Integration Services 的帐户: 域\用户或系统帐户。
ISSVCACCOUNT="NTAUTHORITY\SYSTEM"

; 运行 Analysis Services 服务所使用的帐户的名称。
ASSVCACCOUNT="NTAUTHORITY\SYSTEM"

; 在创建服务后控制服务启动类型设置。
; ASSYSADMINACCOUNTS="WIN-77V7G8TEBRT\Administrator"
ASSVCSTARTUPTYPE="Automatic"

; Analysis Services 要使用的排序规则。
ASCOLLATION="Chinese_PRC_CI_AS"

; Analysis Services 数据文件的位置。
ASDATADIR="C:\Program Files\MicrosoftSQL Server\MSAS10_50.MSSQLSERVER\OLAP\Data"

; Analysis Services 日志文件的位置。
ASLOGDIR="C:\Program Files\MicrosoftSQL Server\MSAS10_50.MSSQLSERVER\OLAP\Log"

; Analysis Services 备份文件的位置。
ASBACKUPDIR="C:\ProgramFiles\Microsoft SQL Server\MSAS10_50.MSSQLSERVER\OLAP\Backup"

; Analysis Services 临时文件的位置。
ASTEMPDIR="C:\Program Files\MicrosoftSQL Server\MSAS10_50.MSSQLSERVER\OLAP\Temp"

; Analysis Services 配置文件的位置。
ASCONFIGDIR="C:\ProgramFiles\Microsoft SQL Server\MSAS10_50.MSSQLSERVER\OLAP\Config"

; 指定是否允许 MSOLAP 访问接口在进程中运行。
ASPROVIDERMSOLAP="1"

; SQL Server 服务的启动类型。
SQLSVCSTARTUPTYPE="Automatic"

; 启用 FILESTREAM 功能的级别(0、1、2 或 3)。
FILESTREAMLEVEL="0"

; 设置为 "1" 可为 SQL Server Express 启用 RANU。
ENABLERANU="False"

; 指定要用于数据库引擎的 Windows 排序规则或 SQL 排序规则。
SQLCOLLATION="Chinese_PRC_CI_AS"

; SQL Server 服务的帐户: 域\用户或系统帐户。
SQLSVCACCOUNT="NTAUTHORITY\SYSTEM"

; 要设置为 SQL Server 系统管理员的 Windows 帐户。
;SQLSYSADMINACCOUNTS="WIN-77V7G8TEBRT\Administrator"

; 默认值为 Windows 身份验证。使用 "SQL" 表示采用混合模式身份验证。
SECURITYMODE="SQL"

;sa 密码
SAPWD=Sa*_!

; 将当前用户设置为 SQL Server 2008 R2 Express 的数据库引擎系统管理员。
ADDCURRENTUSERASSQLADMIN="False"

; 指定 0 禁用 TCP/IP 协议,指定 1 则启用该协议。
TCPENABLED="1"

; 指定 0 禁用 Named Pipes协议,指定 1 则启用该协议。
NPENABLED="0"

; Browser 服务的启动类型。
BROWSERSVCSTARTUPTYPE="Disabled"

; 指定报表服务器 NT 服务在执行时应当使用的帐户。如果省略此值或者值为空字符串,则将使用当前操作系统的默认内置帐户。
; RSSVCACCOUNT 的用户名部分最大长度为 20 个字符,
; RSSVCACCOUNT 的域部分最大长度为 254 个字符。
RSSVCACCOUNT="NTAUTHORITY\SYSTEM"

; 指定报表服务器 NT 服务的启动模式。
; 手动 - 在手动模式(默认值)下启动服务。
; 自动 - 在自动模式下启动服务。
; 已禁用 - 服务处于禁用状态
RSSVCSTARTUPTYPE="Automatic"

; 指定报表服务器的安装模式。
; 默认值: “FilesOnly”
RSINSTALLMODE="DefaultNativeMode"

; 添加输入参数 FTSVCACCOUNT 的描述
FTSVCACCOUNT="NT AUTHORITY\LOCALSERVICE"

 


参数说明:

Microsoft (R) SQL Server 2008 R2

用法:

setup.exe /[选项]={value} /[选项]={value} ...
选项:

【ACTION】指定安装程序的工作流,如 INSTALL、UNINSTALL 或 UPGRADE。这是必需的参数。

【 ADDCURRENTUSERASSQLADMIN】Provision current user as a DatabaseEngine systemadministrator for SQL Server 2008 R2 Express.

【AGTDOMAINGROUP】Either domain user name orsystem account

【AGTSVCACCOUNT】Either domain user name orsystem account

【AGTSVCPASSWORD】Password for domain user name.Not required for system account

【AGTSVCSTARTUPTYPE】Either 1 or 0

【ALLINSTANCES】指定所有实例都将包括在安装操作中。只有在应用修补程序时才支持此参数。

【ASBACKUPDIR】The location for the AnalysisServices backup files.

【ASCOLLATION】The collation used byAnalysis Services.

【ASCONFIGDIR】The location for the AnalysisServices configurationfiles.

【ASDATADIR】The location for theAnalysis Services data files.

【ASDOMAINGROUP】Specifies the Analysis Servicesdomain group name.

【ASLOGDIR】The location for theAnalysis Services log files.

【ASPROVIDERMSOLAP】Specifies if the MSOLAP providercan run in process.

【ASSVCACCOUNT】The account used by theAnalysis Services service.

【ASSVCPASSWORD】The password for the AnalysisServices service account.

【ASSVCSTARTUPTYPE】Controls the service startup typesetting for the service.

【ASSYSADMINACCOUNTS】Specifies the list of administratoraccounts to provision.

【ASTEMPDIR】The location for theAnalysis Services temporary files.

【BROWSERSVCSTARTUPTYPE】Startup type for Browser Service.

【CLUSTERPASSIVE】指定 SQL Server 安装程序不应管理 SQL Server 服务。此选项应该仅在非Microsoft 群集环境中使用。

【CONFIGURATIONFILE】指定将用于安装程序的配置文件。

【CUSOURCE】用于更新安装程序介质的提取的累计更新文件目录。

【ENABLERANU】Set to "1" toenable RANU for SQL Server Express.

【ENU】尚未定义命令行参数 ENU 的详细帮助。

【ERRORREPORTING】指定是否可将错误报告给 Microsoft 以便改进以后的 SQL Server 版本。指定 1或 True 将启用此功能,指定 0 或 False 将禁用此功能。

【FAILOVERCLUSTERDISKS】Specifies a cluster shared disk toassociate with the SQL Serverfailover cluster instance.

【FAILOVERCLUSTERGROUP】Specifies the name of the clustergroup for the SQL Serverfailover cluster instance.

【FAILOVERCLUSTERIPADDRESSES】Specifies an encoded IP address. Theencodings aresemicolon-delimited (;), and follow the format   <IPType>;<address>;<networkname>;<subnetmask>.Supported IP types include DHCP, IPV4, and IPV6.

【FAILOVERCLUSTERNETWORKNAME】Specifies the name of the SQ LServerfailover clusterinstance.  This name is the network name that is used toconnect to SQL Server  services.

【FAILOVERCLUSTERROLLOWNERSHIP】Specifies whetherthe upgraded nodes should take ownership of thefailover instance group or not.Use 0 to retainownership in the legacy nodes, 1 to make theupgraded nodes take ownership, or 2 to let SQL ServerSetup decide when to move ownership.

【FARMACCOUNT】User account for running theSharePoint Central Administrationservice and connecting to the SharePointconfiguration database.

【FARMADMINPORT】A port number used to connectto the SharePoint CentralAdministration web application.

【 FARMPASSWORD】The password for the farmaccount.

【FEATURES】指定要安装、卸载或升级的功能。顶级功能列表包括 SQL、AS、RS、IS 和工具。SQL功能将安装数据库引擎、复制和全文。工具功能将安装管理工具、联机丛书、Business IntelligenceDevelopment Studio 和其他共享组件。

【FILESTREAMLEVEL】Level to enable FILESTREAMfeature at (0, 1, 2 or 3).

【FILESTREAMSHARENAME】Name of Windows share to be createdfor FILESTREAM FileI/O.

【FTSVCACCOUNT】User account for Full-textFilter Daemon Host.

【FTSVCPASSWORD】User password for Full-textFilter Daemon Host account.

【FTUPGRADEOPTION】Full-text catalog upgrade option.

【HELP】显示命令行参数用法

【IACCEPTSQLSERVERLICENSETERMS】通过指定此参数并接受 SQL Server 许可条款,您确认已阅读并理解使用条款的内容。

【INDICATEPROGRESS】指定应将详细的安装程序日志传送到控制台。

【INSTALLSHAREDDIR】指定本机共享组件的安装根目录。

【INSTALLSHAREDWOWDIR】 指定 WOW64 共享组件的安装根目录。

【INSTALLSQLDATADIR】The Database Engine root data directory.

【INSTANCEDIR】指定实例根目录。

【INSTANCEID】为您已指定的 SQL Server 功能指定实例 ID。SQL Server 目录结构、注册表结构和服务名称将反映 SQL Server 实例的实例 ID。

【INSTANCENAME】指定默认实例或命名实例。MSSQLSERVER 是非 Express 版本的默认实例,SQLExpress 则是 Express 版本的默认实例。在安装SQL Server 数据库引擎(SQL)、Analysis Services (AS)或ReportingServices (RS)时,此参数是必需的。

【ISSVCACCOUNT】Either domain user name orsystem account.

【ISSVCPASSWORD】Password for domain user.

【ISSVCSTARTUPTYPE】Automatic, Manual or Disabled.

【NPENABLED】Specify 0 to disable or 1to enable the Named Pipes protocol.

【PASSPHRASE】 A pass phrase farmadministrators will use to add applicationservers or Web front end servers to an existing farm.The pass phrase must be at least 8characters and contain a combination of uppercase,lowercase, numeric, and non-alphabetic characters (suchas !, $, #, %).

【PCUSOURCE】用于更新安装程序介质的提取的 Service Pack 文件目录。

【PID】指定 SQL Server 产品密钥以配置您要使用哪个版本。

【QUIET】安装程序将不会显示任何用户界面。

【QUIETSIMPLE】安装程序将只显示进度,不需要任何用户交互。

【ROLE】尚未定义命令行参数 ROLE 的详细帮助。

【RSCATALOGSERVERINSTANCENAME】The SQL Server server for the report server catalog database.

【RSINSTALLMODE】Specifies the installation modefor the report server. Validvalues include Default,DefaultSharePoint, and FilesOnly. The default value  forInstallMode is FilesOnly.

【RSSVCACCOUNT】Specify the service account ofthe report server.This value is required. If youomit this value,Setup will usethe default built-in account for the currentoperating system (either NetworkService orLocalSystem). If you specify a domain useraccount, the domain must be under 254 characters andthe user name must be under 20 characters. Theaccount name cannot contain the followingcharacters:" / \ [ ] :; | = , + * ? < >

【RSSVCPASSWORD】Specify a strong password forthe account. A strong passwordis at least 8 characters and includes acombination of upper and lower case alphanumericcharacters and at least one symbol character. Avoidspelling an actual word or name that mightbe listed in a dictionary.

【RSSVCSTARTUPTYPE】Specifies the startup mode for theReport Server service. Validvalues include Manual, Automatic,and Disabled. Thedefault value for StartupType is Manual, wherethe server is started when a request isreceived.

【RSUPGRADEDATABASEACCOUNT】Specify the account used to access theexisting report servercatalog database. This value is required. If youomit this value, Setup will use the defaultbuilt-in account for the current operating system(either NetworkService or LocalSystem). Ifyou specify a domain user account, thedomain must be under 254 characters and the user namemust be under 20 characters.The account namecannot contain the following characters:" / \ [ ] :; | = , + * ? < >

【RSUPGRADEPASSWORD】Specify a strong password for theaccount. A strong passwordis at least 8 characters and includes acombination of upper and lower case  alphanumericcharacters and at least one symbol character. Avoid spelling an actualword or name that might belisted in a dictionary.

【RULES】指定要运行的规则 ID 或规则组 ID 的列表。

【SAPWD】Password for SQL Serversa account.

【SECURITYMODE】The default is WindowsAuthentication. Use "SQL" for Mixed ModeAuthentication.

【SQLBACKUPDIR】Default directory for theDatabase Engine backup files.

【SQLCOLLATION】Specifies a Windows collationor an SQL collation to use for theDatabase Engine.

【SQLDOMAINGROUP】Domain group name for WindowsServer 2003 failoverinstance.

【SQLSVCACCOUNT】Account for SQL Server service:Domain\User or system account.

【SQLSVCPASSWORD】A SQL Server service password isrequired only for a domainaccount.

【SQLSVCSTARTUPTYPE】Startup type for the SQL Serverservice.

【SQLSYSADMINACCOUNTS】Windows account(s) to provision asSQL Server systemadministrators.

【SQLTEMPDBDIR】Directory for Database EngineTempDB files.

【SQLTEMPDBLOGDIR】Directory for the Database EngineTempDB log files.

【SQLUSERDBDIR】Default directory for theDatabase Engine user databases.

【SQLUSERDBLOGDIR】 Default directory for theDatabase Engine user database logs.

【SQMREPORTING】指定可以收集 SQL Server 功能使用情况数据,并将数据发送到 Microsoft。指定 1或 True 将启用此功能,指定 0 或 False 将禁用此功能。

【TCPENABLED】Specify 0 to disable or 1 toenable the TCP/IP protocol.

【UIMODE】UIMode 设置的有效值是 Normal、AutoAdvance。

【X86】指定安装程序应该安装到 WOW64 中。IA64 或 32 位系统不支持此命令行参数。

 

原文地址:http://www.myexception.cn/sql/1065029.html

这篇关于无人值守装配SQL Server 2008 R2的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/870859

相关文章

MySQL数据库双机热备的配置方法详解

《MySQL数据库双机热备的配置方法详解》在企业级应用中,数据库的高可用性和数据的安全性是至关重要的,MySQL作为最流行的开源关系型数据库管理系统之一,提供了多种方式来实现高可用性,其中双机热备(M... 目录1. 环境准备1.1 安装mysql1.2 配置MySQL1.2.1 主服务器配置1.2.2 从

深入理解Mysql OnlineDDL的算法

《深入理解MysqlOnlineDDL的算法》本文主要介绍了讲解MysqlOnlineDDL的算法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小... 目录一、Online DDL 是什么?二、Online DDL 的三种主要算法2.1COPY(复制法)

mysql8.0.43使用InnoDB Cluster配置主从复制

《mysql8.0.43使用InnoDBCluster配置主从复制》本文主要介绍了mysql8.0.43使用InnoDBCluster配置主从复制,文中通过示例代码介绍的非常详细,对大家的学习或者... 目录1、配置Hosts解析(所有服务器都要执行)2、安装mysql shell(所有服务器都要执行)3、

k8s中实现mysql主备过程详解

《k8s中实现mysql主备过程详解》文章讲解了在K8s中使用StatefulSet部署MySQL主备架构,包含NFS安装、storageClass配置、MySQL部署及同步检查步骤,确保主备数据一致... 目录一、k8s中实现mysql主备1.1 环境信息1.2 部署nfs-provisioner1.2.

MySQL中VARCHAR和TEXT的区别小结

《MySQL中VARCHAR和TEXT的区别小结》MySQL中VARCHAR和TEXT用于存储字符串,VARCHAR可变长度存储在行内,适合短文本;TEXT存储在溢出页,适合大文本,下面就来具体的了解... 目录一、VARCHAR 和 TEXT 基本介绍1. VARCHAR2. TEXT二、VARCHAR

MySQL中C接口的实现

《MySQL中C接口的实现》本节内容介绍使用C/C++访问数据库,包括对数据库的增删查改操作,主要是学习一些接口的调用,具有一定的参考价值,感兴趣的可以了解一下... 目录准备mysql库使用mysql库编译文件官方API文档对象的创建和关闭链接数据库下达sql指令select语句前言:本节内容介绍使用C/

mybatis直接执行完整sql及踩坑解决

《mybatis直接执行完整sql及踩坑解决》MyBatis可通过select标签执行动态SQL,DQL用ListLinkedHashMap接收结果,DML用int处理,注意防御SQL注入,优先使用#... 目录myBATiFBNZQs直接执行完整sql及踩坑select语句采用count、insert、u

MySQL之搜索引擎使用解读

《MySQL之搜索引擎使用解读》MySQL存储引擎是数据存储和管理的核心组件,不同引擎(如InnoDB、MyISAM)采用不同机制,InnoDB支持事务与行锁,适合高并发场景;MyISAM不支持事务,... 目录mysql的存储引擎是什么MySQL存储引擎的功能MySQL的存储引擎的分类查看存储引擎1.命令

一文详解MySQL索引(六张图彻底搞懂)

《一文详解MySQL索引(六张图彻底搞懂)》MySQL索引的建立对于MySQL的高效运行是很重要的,索引可以大大提高MySQL的检索速度,:本文主要介绍MySQL索引的相关资料,文中通过代码介绍的... 目录一、什么是索引?为什么需要索引?二、索引该用哪种数据结构?1. 哈希表2. 跳表3. 二叉排序树4.

MySQL批量替换数据库字符集的实用方法(附详细代码)

《MySQL批量替换数据库字符集的实用方法(附详细代码)》当需要修改数据库编码和字符集时,通常需要对其下属的所有表及表中所有字段进行修改,下面:本文主要介绍MySQL批量替换数据库字符集的实用方法... 目录前言为什么要批量修改字符集?整体脚本脚本逻辑解析1. 设置目标参数2. 生成修改表默认字符集的语句3