有两种方法可以用来修改复制表。
将一个分段附加到一个复制表上。
允许对复制表进行alter操作。
更改已复制表时更改复制定义。
Altering a replicate definition when altering a replicated table.
执行对复制表的alter操作。
关闭复制表上的alter模式。
复制表上的alter操作的处理。
被分离的分段不再是复制表的一部分。
The detached fragment is no longer part of the replicated table.
添加该列到所有复制参与者上的复制表中。
Add the column to the replicated table on all the replicate participants.
当只为表定义主复制时,可以修改复制表。
A replicated table can be altered when only mastered replicates are defined for the table.
使一个或多个复制表处于alter模式。
问题4:复制表上的alter操作失败。
使用CDR命令行界面,关闭复制表的alter模式。
Using the CDR command line interface, unset the replication table from alter mode.
基于被修改复制表的新模式创建一个新的删除表。
Creates a new delete table based on the new schema of the altered replicated table.
在尝试对一个复制表执行alter操作时,考虑以下方面。
Before attempting an alter operation against a replication table, consider the following.
修改复制表。
通过前面给出的三个步骤,将新的分段附加到复制表上。
Attach the new fragment to the replicated table, using the three-step process shown above.
使用CDR命令行界面,将复制表设为alter模式。
Using the CDR command line interface, set the replication table to alter mode.
下面的例子说明了如何将一个分段附加到一个复制表上?
The following example illustrates attaching a fragment to a replicated table.
他们报告说,该病毒的快速复制表明它适应了人类细胞的环境。
The virus's rapid replication indicates that it is adapted to human cells, they reported.
当对一个复制表发出一个alter操作时,将发生以下动作。
When an alter operation is issued against a replicated table, the following actions occur.
确信服务器有足够的锁资源数,用以修改相关的删除表和复制表。
Confirm that the server has a sufficient number of lock resources to alter the associated delete table along with the replication table.
如果这个表上只定义了主复制,那么添加一个列到复制表中是允许的。
Adding a new column to a replicated table is allowed when only master replicates are defined for the table.
在attachfragment操作后复制附加到复制表上的新行。
Replicate new rows attached to the replicated table after an attach fragment operation.
或者,如果只希望复制表的某些行,那么只需要在查询中使用where子句。
Or, if you'd like only certain rows to be replicated, you just use a WHERE clause in your query.
使用cdralter --on命令使复制表处于 alter模式。
Use the cdr alter --on command to place the replicated table in alter mode.
使用cdralter --off命令关闭复制表的 alter模式。
Use the cdr alter --off command to unset alter mode on the replicated table.
当一个已有的分段从源服务器上的一个复制表上分离出去时,删除复制参与者中的行。
Remove rows from target replicate participants when an existing fragment was detached from a replicated table at the source server.
要提供在索赔创建共同浏览会话开始时复制表单数据所需的函数,需要完成以下步骤。
To provide the function needed to copy over form data at the beginning of a claim creation co-browsing session.
注意:通过使用SQLalter语句,可以直接对复制表执行所有其他类型的alter操作。
Note: All other types of alter operations can be executed directly against a replication table using a SQL alter statement.
应用推荐