Changes an existing database replication definition.
alter database replication definition db_repdef with primary at data_server.database {[{not replicate DDL} | {replicate DDL [{with | without} {auto_update_table_list | auto_extend_table_list}]}] | [not] replicate setname setcont | [not] replicate {{SQLDML | DML_options} [in table_list]} | [alter owner from current_table_owner to new_table_owner [for table_name]] | [{add | remove} tables {setcont}]} [with dsi_suspended] [user username password pass] setcont ::= [[in] ([owner1.]name1[, [owner2.]name2 [, ... ]])] | [in files ('file_path')] setname ::= {tables | functions | transactions | system procedures}
If you omit the system procedures setname or include the not option, Replication Server does not replicate the system procedures.
If you omit tables, functions, or transactions setname and do not include the not option, Replication Server replicates all objects of the setname category.
The filter category specified by setname replaces the current filter category or adds the filter category to the database replication filters, if it is a new category.
When the database replication mode is set to any combination of UDIS, the RepAgent sends both individual log records and the information needed by Replication Server to build the SQL statement.
Include the for tablename option to specify for which you want to transfer ownership. Omit for tablename if you want to change the owners for all tables in the setname category in the database replication definition.
alter database replication definition rep_1C with primary at PDS.pdb not replicate tables in (table2) with dsi_suspended
alter database replication definition dbrepdef with primary at ds1.pdb1 replicate 'UD' in (tb1,tb2) go
alter database replication definition authors_dbrepdef with primary at NY_DS.pdb1 alter owner from mario to angela for author_name
Altering a database replication definition may desynchronize the primary and replication databases. See the Replication Server Administration Guide Volume 1 for instructions for resynchronizing databases.
If you do not specify a filter in your replication definition, the default is the not replicate clause. Apply alter database replication definition to change the SQLDML filters. You can either specify one or multiple SQLDML filters in a replicate clause.
For more information about SQL statement replication see create database replication definition.