Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Remote » SQL Remote システムの管理 » SQL Remote Message Agent (dbremote)

 

バッチモードでの SQL Remote Message Agent (dbremote) の実行

SQL Remote Message Agent (dbremote) を設定して受信メッセージの受信と処理を行い、トランザクションログをスキャンし、送信メッセージの作成と送信を行い、停止することができます。

前提条件

SYS_REPLICATION_ADMIN_ROLE システムロールが必要です。-l オプションで定義されているメッセージの最大長は、システム内のすべてのデータベースで同じである必要があります。

 ♦ タスク
  1. リモートのプロパティに SEND AT オプションも SEND EVERY オプションも設定していないリモートユーザが最低 1 つあることを確認します。

    リモートユーザのすべてに SEND AT 句または SEND EVERY 句が定義されており、メッセージを送受信してから停止する必要がある場合は、-b オプションを使用して SQL Remote Message Agent (dbremote) を起動してください。

  2. SQL Remote Message Agent (dbremote) を起動します。

    Windows では、SQL Remote Message Agent (dbremote) の名前は dbremote.exe です。UNIX では、この名前は dbremote です。Mac OS X では、SyncConsole を使用して SQL Remote Message Agent (dbremote) を起動することもできます。

    たとえば、次のコマンドではデータベースファイル c:\mydata.db で dbremote をバッチモードで実行します。接続にはユーザ名 ManagerSteve とパスワード sql を使用しています。

    dbremote -c "UID=ManagerSteve;PWD=sql;DBF=c:\mydata.db" 
    

    SQL Remote Message Agent (dbremote) は受信メッセージを受信して処理し、トランザクションログを 1 回スキャンし、出力メッセージを作成して送信した後、停止します。

結果

SQL Remote Message Agent (dbremote) が起動します。

 参照