Set Replication Policies
Options
ttAdmin has these options for replication:
                  
Examples
These examples show use of replication options:
% ttAdmin -repPolicy always rep1 RAM Residence Policy : inUse Replication Agent Policy : always Cache Agent Policy : manual Cache Agent Manually Started : False Database State : Open % ttAdmin -repPolicy manual rep1 RAM Residence Policy : inUse Replication Agent Policy : manual Replication Manually Started : True Cache Agent Policy : manual Cache Agent Manually Started : False Database State : Open % ttAdmin -repPolicy norestart rep1 RAM Residence Policy : inUse Replication Agent Policy : norestart Replication Manually Started : True Cache Agent Policy : manual Cache Agent Manually Started : False Database State : Open % ttAdmin -repQueryThresholdSet 100 rep1 RAM Residence Policy : inUse Replication Agent Policy : norestart Replication Manually Started : True Cache Agent Policy : manual Cache Agent Manually Started : False Database State : Open % ttAdmin -repQueryThresholdGet rep1 QueryThreshold in seconds : 100 RAM Residence Policy : inUse Replication Agent Policy : norestart Replication Manually Started : True Cache Agent Policy : manual Cache Agent Manually Started : False Database State : Open
Notes
If ttAdmin is used with -repStart and a replication definition is not found, the replication agent is not started and ttAdmin prints out an error message. For example:
                  
% ttAdmin -repstart repl1
*** [TimesTen][TimesTen 22.1.1.21 ODBC Driver][TimesTen]TT8191: 
This store (repl1 on my_host) is not involved in a replication scheme -- 
file "eeProc.c", lineno 11016, procedure "RepAdmin()"
*** ODBC Error = S1000, TimesTen Error = 8191
If ttAdmin is used with -repPolicy manual (the default) or -repPolicy always, then the -ramPolicy always option should also be used. This ensures that the replication agent begins recovery after a failure as quickly as possible.