ttRepAdmin -duplicate
を実行する前に新しいサブスクライバDSNに接続している場合、データ・ストアはすでに作成されています。このような状況では、-duplicate
は次のメッセージを返します。
Error : Restore not done : The datastore already exists.
Unable to restore datastore locally
ttStatusを実行し、返されたリストにデータ・ストアがあるかどうかを確認することによって、データ・ストアの有無を確認します。新しいサブスクライバ・データ・ストアがある場合は、それを破棄し、ttRepAdmin -duplicate
を再度実行します。
> ttDestroy /tmp/newstore
> ttRepAdmin -dsn newstoreDSN -duplicate -name newstore
-from masterds -host "server1"
レプリケーション・スキームにサブスクライバ・データ・ストア名やホスト名を間違って入力した場合、次のようなメッセージが表示されます。
Unable to swap datastore locally
No receiver NEWSTORE on SERVER2 found to swap with