The create database replication definition syntax has been modified and several new parameters added.
create database replication definition db_repdef with primary at server_name.db [not replicate DDL] | [replicate DDL [{{with | without} auto_update_table_list} | {{with | without} auto_extend_table_list}]] [[not] replicate functions setcont] [[not] replicate transactions setcont] [[not] replicate system procedures setcont] [[not] replicate tables [[setcont [except setcont]] | in files (‘file_path’)] [[not] replicate {SQLDML | DML_options} [in table_list]] [user username password pass]] setcont ::= [[in] ([owner1.]name1[, [owner2.]name2 [, ... ]])]Replication Server 15.7.1 SP200 adds these parameters:
An exception list can only be used with table list. The exception list adds additional adjustment for the table list defined in the database replication definition and takes precedence over the table list.
An exception list can only be used with table list. The exception list adds additional adjustment for the table list defined in the database replication definition and takes precedence over the table list.
If you use wildcard in a table name, you must specify the username and password.
create database replication definition dbrepdef with primary at ds1.pdb1 replicate DDL with auto_extend_table_list replicate tables in (USER1.TABLE1, *.TABLE2) except in (USER2.TABLE2)
Creates a database replication definition db_repdef. DDL is replicated, but does update the table_list when new DDL commands are encountered. The command also replicates data for the table specified in the file /sap/user/tablelist.txt, which include tables USER1.TABLE1, and all data for TABLE2.
================ #user tables: USER1.TABLE1 *.TABLE2 ================
create database replication definition db_repdef with primary at ds1.pdb1 replicate DDL replicate tables in files (‘/sap/user/table_list.txt’)
See create database replication definition in the Reference Manual.