简体   繁体   English

数据库属性“镜像”页面

[英]Database Properties “Mirroring” Page

I am having a problem with one database on my SQL Server 2005 production server.我的 SQL Server 2005 生产服务器上的一个数据库出现问题。

A number of databases are already set up for mirroring, however when I right click and go to properties in SSMS, on one particular database there is no "Mirroring" property page available.已经为镜像设置了许多数据库,但是当我右键单击 go 到 SSMS 中的属性时,在一个特定的数据库上没有可用的“镜像”属性页。

I have done the normal tasks, such as setting Full Recovery model, running a full backup of the database and backing up the logs.我已经完成了正常的任务,例如设置Full Recovery model,运行数据库的完整备份和备份日志。

I can't see that this is a server specific issue as other databases are happily mirroring.我看不出这是一个特定于服务器的问题,因为其他数据库正在愉快地镜像。

I've looked around and I can't see that I'm missing a setting, any help would be appreciated.我环顾四周,我看不到我缺少一个设置,任何帮助将不胜感激。

Thanks.谢谢。

EDIT: This is nothing to do with the Mirror Database yet, I can't get as far as specifying the Mirror Database, I cannot see the "Mirroring" page on the principle.编辑:这与镜像数据库无关,我无法指定镜像数据库,原则上我看不到“镜像”页面。

EDIT: I have managed to setup mirroring using t-sql commands.编辑:我已经设法使用 t-sql 命令设置镜像。 However I am still unable to see the "Mirroring Page".但是我仍然无法看到“镜像页面”。

UPDATE: This applies to the Transaction Log Shipping option as well.更新:这也适用于事务日志传送选项。 I can successfully set it up in SQL but not through SSMS.我可以在 SQL 中成功设置它,但不能通过 SSMS。

Check theese items:检查这些项目:

2. The mirror database has to be created from a full backup of the principal server and should be restored in "Restore with Norecovery" model. 2. 镜像数据库必须从主体服务器的完整备份创建,并且应该在“Restore with Norecovery”model 中恢复。 It is followed by a restore of transaction log backup of the principal database so that the log sequence numbers of the mirror and the principal database are in synch with each other.随后恢复主数据库的事务日志备份,使镜像和主数据库的日志序列号彼此同步。
3. The mirror database must have the same name as the principal database. 3. 镜像数据库必须与主体数据库同名。
... 8. DB Mirroring is available in Enterprise, Developer and Standard Editions, however, please refer to Microsoft website for a comparison chart as some features are not available in the Standard Edition. ... 8. DB Mirroring 在 Enterprise、Developer 和 Standard Edition 中可用,但是,请参阅 Microsoft 网站以获取比较表,因为 Standard Edition 中不提供某些功能。 SQL Server Workgroup and Express Editions can only be used as witness servers. SQL 服务器工作组和快捷版只能用作见证服务器。
Database Mirroring in Microsoft SQL Server 2005 Microsoft SQL Server 2005 中的数据库镜像

Test monitoring with sp_dbmmonitorresults (Transact-SQL)使用sp_dbmmonitorresults 进行测试监视 (Transact-SQL)

I ended up having to have a Microsoft Support call for the problem I was facing.我最终不得不为我所面临的问题拨打 Microsoft 支持电话。 Anyway after sometime and a number of support sessions they worked out that the database with the problem had an ID of 4 in sys.databases.无论如何,经过一段时间和多次支持会议后,他们发现有问题的数据库在 sys.databases 中的 ID 为 4。 IDs 1-4 are usually reserved for the system databases and if a database has any of these ids the T-log or Mirroring properties are not displayed. ID 1-4 通常是为系统数据库保留的,如果数据库具有这些 ID 中的任何一个,则不会显示 T-log 或 Mirroring 属性。 So somehow our database got the ID 3 and now I better get on and detach and reattach some databases to reassign IDs.所以不知何故,我们的数据库得到了 ID 3,现在我最好继续分离并重新连接一些数据库以重新分配 ID。

I don't have the answer, but I ran across the same symptom yesterday, and I remembered your question here, hahaha.我没有答案,但我昨天遇到了同样的症状,我记得你的问题,哈哈哈。 My problem was that I set up database mirroring using the wizards, but one of the systems had a firewall blocking the mirroring port.我的问题是我使用向导设置了数据库镜像,但是其中一个系统的防火墙阻止了镜像端口。 The wizard setup went all the way to the final part of enabling database mirroring, and then errored out - but at that point, mirroring was already set up.向导设置一直到启用数据库镜像的最后部分,然后出错 - 但此时已经设置了镜像。 Mirroring worked great, but there was something in the database metadata that wasn't set quite right.镜像效果很好,但是数据库元数据中的某些内容设置不正确。 Even when I removed the firewall, parts of SSMS acted as if mirroring wasn't set up for that particular database, even though it was.即使我删除了防火墙,SSMS 的某些部分也表现得好像没有为该特定数据库设置镜像,即使它是。

I then set up additional databases for mirroring (with the firewall off) and they worked great.然后我为镜像设置了额外的数据库(关闭了防火墙),它们工作得很好。 My solution was to remove mirroring on that database and then add it again, and it worked fine.我的解决方案是删除该数据库上的镜像,然后再次添加它,它工作正常。 Doesn't sound like that's worked for you, though.不过,听起来这对你不起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM