Chapter 5. A Tutorialfor Adaptive Server Enterprise Users
Toreplicate the data from Adaptive Server Enterprise
1. Enter the following statement (on a single line) at the command line to
runthe Message Agent against the consolidated database:
ssremote -c "eng=server-name;dbn=hq;uid=sa;pwd=sysadmin"
2. Click Shutdown on the Message Agent window to stop the Message
Agentwhen the messages have been sent.
Receive data at the remote database
Toreceive the insert statement at the remote database, you must run the
MessageAgent,
dbremote
,at the remote database.
Toreceive the data at Adaptive Server Anywhere
1. With the database server running, receive the data using the Message
Agentfor AdaptiveServer Anywhere:
dbremote -c "eng=field;dbn=field;uid=DBA;pwd=SQL"
Formore information on
dbremote
options,see “The Message
Agent”on page 292.
2. Click Shutdown on the Message Agent window to stop the Message
Agentwhen the messages have been processed.
TheMessage Agent window displays status information while running. This
informationcan be output to a log file for record keeping in a production
setup.
TheMessage Agent first receives a message from hq, and then sends a
message. This return message contains confirmation of successful receipt of
thereplication update; such confirmations are part of the SQL Remote
messagetracking system that ensures message delivery even in the event of
messagesystem errors.
Verifythat the data has
arrived Youshould now connect to the remote field database using Interactive SQL,
andinspect the SalesRep and Customer tables, to see which rows have been
received.
Toverify that the data has arrived
1. Connect to the field database using Interactive SQL.
2. Inspect the SalesRep table by typing the following statement:
SELECT *FROM SalesRep
67