$ACCESSSRVER_HOME/bin/chcclp -L zh_CN
Repl >chcclp session set to cdc;
Repl >set verbose;
Repl > connect server hostname xxx port xxx username xxx password xxx;
Repl >connect datastore name xxx1 context source;
Repl >connect datastore name xxx2 context target;
Repl >select subscription name xxx_x;
Repl >end replication name xxx_x method immediate;
Repl >disconnect datastore name xxx1;
Repl >disconnect datastore name xxx2;
Repl >disconnect server;
Repl > chcclp session set to cdc;
Repl > set verbose;
Repl > set property recreateSubscription yes;
Repl > set variable name "source_schema" value "PEHAPP";
Repl > set variable name "target_schema" value "PE";
Repl > connect server hostname 197.0.1.71 port 10101 username jjking password wjjnag;
Repl > connect datastore name DS_PE;
Repl > connect datastore name DS_BRMS;
Repl > select datastore name DS_PE context source;
Repl > select datastore name DS_BRMS context target;
Repl > add subscription name PE_BRMS persistency yes;
Repl > lock subscription;
Repl > add table mapping sourceSchema "%source_schema%" sourceTable "T_JRNL_%TIME%" targetSchema "%target_schema%" targetTable "T_JRNL";
Repl > unlock subscription;
Repl > disconnect datastore DS_PE;
Repl > disconnect datastore DS_BRMS;
Repl > disconnect server;
Repl > chcclp session set to cdc;
Repl > set verbose;
Repl > set property recreateSubscription yes;
Repl > connect server hostname 197.0.1.71 port 10101 username jjking password wjjnag;
Repl > connect datastore name DS_PE;
Repl > connect datastore name DS_BRMS;
Repl > select datastore name DS_PE context source;
Repl > select datastore name DS_BRMS context target;
Repl > select subscription name PE_BRMS;
Repl > start mirroring method continuous;
Repl > monitor replication filter subscription name PE_BRMS;
Repl > disconnect datastore DS_PE;
Repl > disconnect datastore DS_BRMS;
Repl > disconnect server;