Must Specify Scheme
If you have more than one scheme specified in your TTREP.REPLICATIONS
table, some ttRepAdmin
commands may return the error:
Must specify -scheme to identify which replication scheme to use
To check the names of the replication schemes used by your database, use the ttIsql
utility to connect, and enter:
Command> SELECT * from TTREP.REPLICATIONS;
This example shows that two replication schemes, REPSCHEME1
and REPSCHEME2
, are assigned to the database associated with subDSN
. In this case, it is necessary to use the ttRepAdmin
-scheme
option.
> ttIsql -connStr "dsn=subDSN" Command> SELECT * from TTREP.REPLICATIONS; < REPSCHEME1 , REPL , C, 0, 0, -1 > < REPSCHEME2 , REPL , C, 0, 0, -1 > 2 rows found. Command> exit > ttRepAdmin -dsn subDSN -receiver -list -scheme REPSCHEME1 Peer name Host name Port State Proto ---------------- ------------------------ ------ ------- ----- SUBSCRIBER1 MYHOST Auto Start 10 Last Msg Sent Last Msg Recv Latency TPS RecordsPS Logs ------------- ------------- ------- ------- --------- ---- 0:01:12 - 19.41 5 52 2