Product Documentation

c-treeACE V11.0 Update Guide

Previous Topic

Next Topic

Replication Actions Added to Transaction Control Utility cttrnmod

New replication actions have been added to the cttrnmod utility for flexible control of replication attributes.

  • cttrnmod now displays replication state for a data file
  • cttrnmod can change a file's replication state with the repl option

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

  1. Enable full transaction logging on files:


    # 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.

  2. Enable replication on files:


    # 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.

TOCIndex