建立db mirror時,出現
Error 1418
The server network address "tcp://[server name]:5022" can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational.
已經確定principal & mirror兩方都是相同版本的SQL SERVER,
而且防火牆也都已經關閉,port 5022也都有開啟.
解決方式如下:
兩台SQL SERVER Agent的服務啟動帳號當初設定並不是同一個帳號,
改成同一個帳號,而且這個帳號具有對principal & mirror賞的兩個db都具有權限,
設置好之後,重啟SQL SERVER & Agent的服務,然後再重新Start Mirroring.
Update:
若是服務啟動帳號只是一般public的權限,則建立mirror時也會出現1418的錯誤,
這時只要給予這個帳號CONNECT的權限即可解決
USE master
GO
GRANT CONNECT on ENDPOINT::Mirroring_Endpoint TO [Domain\user_account];
GO
全站熱搜