solidDB Help : Replication : Advanced Replication : Using Advanced Replication with applications : Implementing security through access rights and roles : Changing replica access to the master database
  
Changing replica access to the master database
When a transaction is executed on any database, that transaction must be executed with appropriate privileges (for example, INSERT, DELETE, and UPDATE privileges on the tables). When a transaction is propagated from a replica database to the master database, the transaction must execute with appropriate privileges on the master database. Executing with appropriate privileges on the replica database is not sufficient to guarantee that the transaction will execute with appropriate privileges on the master database.
To ensure that propagated transactions can be executed on the master database, you must map a replica user to a corresponding master user who has the appropriate privileges.
Synchronization messages are labeled with the master user name of the creator of the message. solidDB uses the master user name to specify the account under which the message is executed. All subscriptions are executed using this account. Each transaction uses the master user who saved the statements in the replica.
If a user mapping is not defined, the first Advanced Replication data synchronization operation (for example, SAVE or MESSAGE statement) returns the "no active master user" error.
To map replica users to master users, complete the following steps:
1 Download the master user information to applicable replica databases, see Downloading master users to a replica database.
2 Map replica user ids to the appropriate master user ids, see Mapping replica user id with master user id.
Note When users on the master database change, you might need to update the mapping information or your replica users might map to master users that are no longer appropriate or that no longer exist.
Go up to
Implementing security through access rights and roles