积极答复者
SQL Server镜像后一个非常奇怪的报错,大虾救急!!

问题
-
2台服务器149.208.108.70 和 149.208.108.87 分别在域帐户cn\mssql01和cn\mssql02账户下安装SQL Server2005 Standard Edition sp3,然后对这台服务器上SQL Server数据库实施数据库镜像,
由于都在相同的域中,所以设置SQL Server的服务均由域管理员账户启动;
其中149.208.108.70 上的数据库为principal库,149.208.108.87 的数据库为mirror库
通过右键点击数据库->任务->mirror...->configure database Mirroring Security Wizard来配置数据库镜像,最终镜像配置成功,
但是运行一段时间后,Mirror库所在的数据库实例的SQL Server Logs 报错:
Login failed for user 'CN\MSSQL01$'. [CLIENT: 149.208.108.70]
Error: 18456, Severity: 14, State: 11.
请问这是什么情况啊?
我google了一下,貌似这个报错的意思是:
Valid login but server access failure...
这个应该怎么解决呢?
答案
全部回复
-
我已经在这两台服务器上的SQL Server实例中分别创建了以对方服务器登录名命名的sql login name(Windows认证方式),默认的Database是master,授权sysadmin...
目前还在观察
观察的结果是,还是SQL Server Log中还是存在这样的报错,Date 11/22/2010 8:01:38 AM
Log SQL Server (Current - 11/22/2010 8:01:00 AM)Login failed for user 'CN\MSSQL01$'. [CLIENT: 149.208.108.70]
Error: 18456, Severity: 14, State: 11.
-
Again, did you create sql login for cn\mssql01$ on that server? How did you set security when config db mirroring?
Actually,i can not understand you very well'create sql login for cn\mssql01$ on that server' means create a Windows Authentication account named 'cn\mssql01$' on mirror SQL Server?
and i configue sql mirror with the Configure Database Mirroring Security Wizard,when it indicates me connect to mirror sql server instance ,i connect to mirror server with 'sa' account(SQL Server Authentiction),when i finish this wizard,it does not rise any errors..seems it's successful......
Your time is very much appreciated!
-
On which server did you get the error? Create sql login for the machine account on that server.
I' m curious of the domain user 'cn\mssql01$',cause in our domian,we don't have this user(we have a domain user cn\mssql01 with no '$'),but i have to create this account for a sql login name with windows authentication.
-
This is not user, it's machine account as I said from beginning.
I'm very grateful to you for your help,the error does not appears since i added 'cn\mssql01$' as a sql login name in our mirror server.I was wandering if this machine account is necessary when i configure database mirror with Database Mirroring Security Wizard,Or the error comes?So if i configure our sql mirror by using certificate ,we may not need this machine account?