Chapter 10. SQL Remote Administration
Managing SQL Remote permissions
Usersof a database involved in SQL Remote replication are identified by
oneof the following sets of permissions:
PUBLISH Asingle user ID in a database is identified as the publisher
forthat database. Alloutgoing SQL Remote messages, including both
publicationupdates and receipt confirmations, are identified by the
publisheruser ID. Every database in a SQL Remote setup must have a
singlepublisher user ID, as every database in a SQL Remote setup sends
messages.
REMOTE Allrecipients of messages from the current database, or
sendersof messages to the current database, who are immediately lower
onthe SQL Remote hierarchy than the current database must be granted
REMOTEpermissions.
CONSOLIDATE Atmost one user ID may be granted CONSOLIDATE
permissionsin a database. CONSOLIDATEpermissions identifies a
databaseimmediately above the current database in a SQL Remote setup.
Eachdatabase can have only one consolidated database directly above it.
Informationabout these permissions are held in the SQL Remote system
tables,and are independent of other database permissions.

Granting and revoking PUBLISH permissions

Whena database sends a message, a user ID representing that database is
includedwith the message to identify its source to the recipient. Thisuser ID
isthe publisher user ID of the database. Adatabase can have only one
publisher. Youcan find out who the publisher of an Adaptive Server
Anywheredatabase is at any time in Sybase Central by opening the Users &
Groupsfolder.
Apublisher is required even for read-only remote databases within a
replicationsystem, as even these databases send confirmations to the
consolidateddatabase to maintain information about the status of the
replication. The GRANT PUBLISH statement for remote Adaptive Server
Anywheredatabases is carried out automatically by the database extraction
utility.
Grantingand revoking
PUBLISHper missions
fromSybase Central
Youcan grant PUBLISH permissions on an Adaptive Server Anywhere
databasefrom Sybase Central. Youmust connect to the database as a user
withfull system or database administrator permissions.
201