Use the following procedures to grant CONSOLIDATE permission to a user.
It is recommended that you grant CONSOLIDATE permission to the publisher of the consolidated database.
Use the SQL Anywhere 12 plug-in to connect to the database as a user with DBA authority.
In the left pane, click the database, and then click File » Properties.
Click the SQL Remote tab.
Click This Remote Database Has A Corresponding Consolidated Database.
Configure the Message Type, Address, and Send Frequency settings.
Click OK to close the Consolidated Database Properties window.
Execute a GRANT CONNECT statement to grant CONNECT permission to the publisher of the consolidated database.
For example:
GRANT CONNECT TO cons; |
Execute a GRANT CONSOLIDATE statement to grant CONSOLIDATE permission to the consolidated user.
For example, the following statement grants CONSOLIDATE permission to the hq_user user and specifies that the consolidated database uses the SMTP email system:
GRANT CONSOLIDATE TO hq_user TYPE SMTP ADDRESS 'hq_address'; |
There is no SEND clause in this GRANT CONSOLIDATE statement, so SQL Remote sends messages to the consolidated database and then stops.
For example, the following statement grants CONSOLIDATE permission to the cons user and specifies that the consolidated database uses the FILE system:
GRANT CONNECT TO "cons" IDENTIFIED BY SQL; GRANT CONSOLIDATE TO "cons" TYPE "FILE" ADDRESS 'cons'; GRANT CONNECT TO "rem1" IDENTIFIED BY SQL; GRANT PUBLISH TO "rem1"; CREATE REMOTE MESSAGE TYPE FILE ADDRESS 'rem1'; |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |