Avamar SQL 备份:服务器主体“NT AUTHORITYSYSTEM”无法访问数据库
Summary: Avamar SQL 备份失败,并显示错误,指示服务器主体 NT AUTHORITY\SYSTEM 无法访问当前安全上下文下的 SQL Server 数据库。当从 SQL Server 实例中删除本地系统帐户权限(SQL 编写器和基于 VDI 的备份操作需要这些权限)时,会出现此问题。
Symptoms
在 Avamar SQL 备份期间,操作在初始化时失败,并显示 SQL 连接错误。该错误显式引用了 SYSTEM 帐户。
备份启动时,将记录以下错误:
avsql Error <40088>: sqlconnectimpl_smo::execute Microsoft.SqlServer.Management.Common.ExecutionFailureException:
An exception occurred while executing a Transact-SQL statement or batch. --->
System.Data.SqlClient.SqlException: The server principal "NT AUTHORITY\SYSTEM" is not able to access the database
"SQL_DBtest" under the current security context.
Cause
北领地 AUTHORITY\SYSTEM 帐户权限已从 SQL Server 环境中删除。
Microsoft SQL Server 使用在本地系统帐户下运行的 SQL 编写器服务来执行基于 VDI 和 VSS 的操作。Avamar SQL 备份依赖于此机制。从所需的 SQL 角色中删除本地系统帐户后,SQL 编写器无法访问数据库,备份操作将失败。
Resolution
恢复 NT AUTHORITY\SYSTEM 帐户所需的权限。
所需操作
- 确保 SQL Server SQL 编写器服务配置为在本地系统帐户下运行。
- 验证未从所需的 SQL Server 角色中删除 NT AUTHORITY\SYSTEM 帐户。
- 确保本地系统帐户保留对 SQL Server 数据库和 VDI 操作的适当访问权限。
- 还原权限后,重试 Avamar SQL 备份。
如果由于客户安全策略而无法使用本地系统帐户,则必须与 Microsoft 合作以解决兼容性和支持问题。
Additional Information
Microsoft 文档对 SQL 编写器进行了如下说明:
During installation, the SQL Writer account will be installed to use the Local System account. Since the SQL Writer needs to talk to SQL Server using exclusive VDI APIs, the SQL Writer account must have sufficient access rights for both SQL Server and VSS. Configuring the service as a Local System account provides sufficient rights for the service to run correctly.
To have the SQL Writer service work correctly, it is important to make sure that the Local System account is not removed from the SQL Server instance sa role.
有关详细信息,请参阅以下 Microsoft 文章:
SQL Server 备份指南 (外部链接)