Chapter 10. SQL Remote Administration
Running the Message Agent
TheSQL Remote Message Agent is a key component in SQL Remote
replication. The Message Agent handles both the sending and receiving of
messages. It carries out the following functions:
Itprocesses incoming messages, and applies them in the proper order to
thedatabase.
Itscans the transaction log or stable queue at each publisher database,
andtranslates the log entries into messages for subscribers.
Itparcels the log entries up into messages no larger than a fixed
maximumsize (50,000 bytes by default), and sends them to subscribers.
Itmaintains the message tracking information in the system tables, and
managesthe guaranteed transmission mechanism.
Executablenames OnWindows operating systems, the Message Agent for Adaptive Server
Enterpriseis named
ssremote.exe
,and the Message Agent for Adaptive
ServerAnywhere is named

dbremote.exe

. On UNIX operating systems, the
namesare
ssremote
and
dbremote
,respectively.
TheMessage Agent for Adaptive Server Enterprise uses a stable queue
tohold transactions until they are no longer needed. Formore information
onthe stable queue, see “How the Message Agent for Adaptive Server
Enterpriseworks” on page 264.
Message Agent batch and continuous modes
TheMessage Agent can be run in one of two modes:
Batchmode Inbatch mode, the Message Agent starts, receives and
sendsall messages that can be received and sent, and then shuts down.
Batchmode is useful at occasionally-connected remote sites, where
messagescan only be exchanged with the consolidated database when the
connectionis made: forexample, when the remote site dials up to the
mainnetwork.
Continuousmode Incontinuous mode, the Message Agent
periodicallysends messages, at times specified in the properties of each
remoteuser. Whenit is not sending messages, it receives messages as
theyarrive.
Continuousmode is useful at consolidated sites, where messages may be
comingin and going out at any time, to spread out the workload and to
ensureprompt replication.
223