Chapter 5. A Tutorialfor Adaptive Server Enterprise Users
Tutorial: Adaptive Server Enterprise replication
Thefollowing sections are a tutorial describing how to set up a simple
SQLRemote replication system.
Thistutorial describes the stored procedures used to configure and manage
SQLRemote. Italso describes how to run the
ssxtract
utilityto extract
remotedatabases from a consolidated database and the Message Agents to
sendinformation between the databases in the replication system.
Inthis tutorial you act as the administrator of the consolidated database, and
setup a simple replication system using the file-sharing message link. The
simpleexample is a primitive model for a sales-force automation system,
withtwo tables. Onecontains a list of sales representatives, and another a
listof customers. Thetables are replicated in a setup with one consolidated
databaseand one remote database. Youcan install this example on one
computer.

First steps

Createa login name and
password Towork through the tutorial, you must have system administrator privileges
onan Adaptive Server Enterprise server. The tutorial assumes that your
loginname is the two-letter word sa and that your password is sysadmin.
Thetutorial uses theAdaptive Server Enterprise
isql
utility.With the login
nameand password as given above, you can connect to your Adaptive Server
Enterpriseserver using the following command line:
isql -S server-name -U sa -P sysadmin
where

server-name

isthe name of the Adaptive Server Enterprise server to
whichyou connect.
Ensurethat you have an appropriate login ID and can connect to your server
beforestarting this tutorial.
Createa database Createa database named hq on your AdaptiveServer Enterprise server with
sufficientspace to hold the tables and data required by the tutorial database.
Aspace of 4 MB is sufficient.
Tocreate a database
1. Using
isql
,connect to the server as a user with system administrator
privileges:
isql -S server-name -U sa -P sysadmin
2. Use the master database:
57