简体   繁体   English

如何在SQL Server 2008 R2中对镜像数据库进行分区

[英]How to partition a mirrored database in SQL Server 2008 R2

We have a couple of mirrored databases and would like to partition them to span over various less expensive disks. 我们有几个镜像数据库,希望将它们分区以覆盖各种较便宜的磁盘。 Can a mirrored database be partitioned ? 可以对镜像数据库进行分区吗?

A Mirror Database in Sql serve will be in a restoring state. Sql服务中的镜像数据库将处于还原状态。 You cannot do any Read or Write operations directly against the database itself. 您不能直接对数据库本身执行任何读取或写入操作。

The only thing that can get you access to a Mirror database in sql server Mirroring Sessions is a SNAPSHOT of a Mirror. 可以使您访问sql server Mirroring Sessions中的Mirror数据库的唯一一件事是Mirror的SNAPSHOT。 Which is read-only you cannot make any (Write)changes to the snapshot. 这是只读的,您无法对快照进行任何(写入)更改。

A Simple answer to your question will be, No you cannot Partition a Mirrored Database at all. 您的问题的简单答案是:不,您根本无法对镜像数据库进行分区。

Logical layout of the principal and mirror must be the same. 主体和镜像的逻辑布局必须相同。 If the source database is partitioned, you can move filegroups to less expensive disks when initializing mirror from backup. 如果源数据库已分区,则可以在从备份初始化镜像时将文件组移动到价格较低的磁盘上。

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

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