Forany database in a SQL Remote replication setup, there are three
permissionsthat may be granted to identify databases on the hierarchy:
PUBLISHpermission Identifiesthe current database in all outgoing
messages
REMOTEpermission Identifieseach database receiving messages from
thecurrent database that is below it on the hierarchy
CONSOLIDATEpermission Identifiesa database receiving messages
fromthe current database that is directly above it on the hierarchy.
Permissionscan only be granted by a user with DBA authority. To carry out
theseexamples you should connect from Sybase Central to the hq database
asuser ID DBA, with password SQL.
Adda database
publisheruser ID Anydatabase, consolidated or remote, that distributes changes to other
databasesin the replication system is a publisher database. Eachdatabase in
thereplication system is identified by a single user ID. You set that ID for
yourdatabase by adding a publisher to the database. Thissection describes
settingpermissions for the consolidated hq database.
Firstcreate a user ID named hq_user, who will be the publisher user ID.
Tocreate a new user as the publisher
1. Select the Users & Groups folder.
2. From the File menu, choose New User.
TheUser Creation wizard appears.
3. Enterthe name hq_user, with password hq_pwd, and click Finish.
4. Right-clickthe hq_user icon and choose Change to Publisher from the
popupmenu.
Adatabase can have only one publisher. You can find out who the
publisheris at any time by opening the Users & Groups folder.
Adda remote user Eachremote database is identified in the consolidated database by a user ID
withREMOTE permissions. Whetherthe remote database is a personal
databaseserver or a network server with many users, it needs a single user
IDto represent it to the consolidated database.
Ina mobile workgroup setting, remote users may already be users of the
consolidateddatabase, and so no new users would need to be added;
althoughthey would need to be set as remote users.
Whena remote user is added to a database, the message system they use and
theiraddress under that message system need to be stored along with their
databaseuser ID.
36