Contents Index Lesson 4: Replicate data Verify that the data has arrived

Introducing SQL Anywhere Studio
  Tutorial: Replicating Data with SQL Remote
    Lesson 4: Replicate data

Add data to the consolidated database


First, enter a row in the consolidated database.

Enter data in the consolidated database

To send data to the remote database, you run the Message Agent at the consolidated database. The dbremote program is the Message Agent for Adaptive Server Anywhere.

Send the data to the remote database

  1. At a command prompt, navigate to your tutorial directory. For example, navigate to c:\tutorial.

  2. To run the Message Agent against the consolidated database, execute the following command:

    dbremote -c "dbn=asademo;uid=DBA;pwd=SQL"

    The SQL Remote window appears, and displays messages about the status of replication.

  3. When SQL Remote displays the message Execution completed, click Shutdown.

    To receive the insert statement at the remote database, you must run the Message Agent, dbremote, at the remote database.

Receive data at the remote database

  1. At a command prompt, change to your tutorial directory. For example, navigate to c:\tutorial.

  2. Execute the following command to run the Message Agent against the field database:

    dbremote -c "dbn=field;uid=field;pwd=field"

    The SQL Remote window appears, informing you of the status of replication. The window indicates that a message was received from DBA.

  3. When SQL Remote displays the message Execution completed, click Shutdown.

Notes 

Contents Index Lesson 4: Replicate data Verify that the data has arrived