New replication actions have been added to the cttrnmod utility for flexible control of replication attributes.
Note: Replication requires that the data file has a unique index and that the data and index files are using full (ctTRNLOG) transaction control.
Examples
# cttrnmod set T -f files.txt -u ADMIN -p ADMIN -s FAIRCOMS
Setting transaction mode to ctTRNLOG for files listed in file files.txt...
Replicate Tranmode Filemode Filename
--------- -------- -------- --------
NO ctTRNLOG 0x0032 ctreeSQL.dbs\admin_t.dat
ctTRNLOG 0x0032 ctreeSQL.dbs\admin_t.idx
ctTRNLOG 0x0032 ctreeSQL.dbs\admin_t_ti.idx
Note the "Replicate" column for current replication state information.
# cttrnmod set repl=on -f files.txt -u ADMIN -p ADMIN -s FAIRCOMS
Enabling replication for files listed in file files.txt...
Replicate Tranmode Filemode Filename
--------- -------- -------- --------
YES ctTRNLOG 0x0032 ctreeSQL.dbs\admin_t.dat
ctTRNLOG 0x8032 ctreeSQL.dbs\admin_t.idx
ctTRNLOG 0x8032 ctreeSQL.dbs\admin_t_ti.idx
Note: If cttrnmod is used to disable full transaction logging for a file, it also disables replication for that file.