Configure the consolidated database to act as the message server for the HTTP message system.
You must have the SYS_REPLICATION_ADMIN_ROLE system role.
Context and remarks
It is also possible to configure a separate database and database server to act as the message server.
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"
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;
Disconnect from Interactive SQL.
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|