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 授權\系統帳戶所需的許可權。
必要的動作
- 確定 SQL Server SQL 撰寫器服務已設定為在本機系統帳戶下執行。
- 確認 NT AUTHORITY\SYSTEM 帳戶未從所需的 SQL Server 角色中移除。
- 請確定本機系統帳戶保留對 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 備份指南 (外部連結)