Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Remote » Tutorial: Setting up a replication system using the HTTP message system with the consolidated database as the message server

 

Lesson 2: Configuring the consolidated database to act as the message server

Configure the consolidated database to act as the message server for the HTTP message system.

Prérequis

You must have the SYS_REPLICATION_ADMIN_ROLE system role.

Contexte et remarques

It is also possible to configure a separate database and database server to act as the message server.

 Task
  1. Using Interactive SQL, connect to the consolidated database as a user with the SYS_REPLICATION_ADMIN_ROLE system role:

    dbisql -c "SERVER=cons;DBN=cons;UID=DBA;PWD=sql"
  2. When a database is first initialized, none of the web services needed to accept HTTP requests from remote users is defined, and neither are definitions to allow the database server to access the directory where the message files are stored. The creation of these objects is automated with the use of the sr_add_message_server stored procedure, which takes an optional parameter to specify who owns all the objects. Execute the following statements on the consolidated database (cons) to define all the objects needed for the message server, and specify that all the objects are owned by the cons user:

    CREATE ROLE FOR USER cons;
    SET REMOTE http OPTION cons.root_directory='c:\\tutorial\\messages';
    CALL sr_add_message_server( 'cons' );
    COMMIT;
  3. Disconnect from Interactive SQL.

Résultat

The consolidated database is configured to act as the message server for the HTTP message system.