Synchronizing query servers

The process that updates Catalog Stores on query servers is called synchronization.

Synchronizing copies the write server's version of the database catalog to a query server, so that all users submitting queries see the latest changes. In general, Sybase IQ propagates changes to query servers, so you only need to synchronize your query servers for these server management actions:

The Sybase IQ multiplex feature automatically makes committed changes in the contents of IQ tables visible on all servers in the multiplex. Schema changes include adding, deleting, or changing tables, user IDs, indexes, and views.

Before you synchronize

To specify user logins, permissions or set options unique to a particular query server, instead of duplicating the settings on the write server, define a per-server stored procedure on the write server to run automatically after the query server is synchronized. The stored procedure must be named sp_mpxcfg_/name/ where /name/ is the server name of the query server. The procedure must be owned by user DBA.

The following statements are an example of those you could add to sp_mpxcfg_/name/. For a complete list of database options, see the Sybase IQ Reference Manual.

set option public.date_format = ‘Mmm dd yyyy’;
set option ansinull = ‘off’;
set option conversion_error = ‘off’;
grant connect to fiona identified by password;

StepsSynchronizing query servers

  1. Make sure that the write server is running. This is required for synchronization to succeed.

  2. If not already connected, connect to any server in the multiplex. (For details, see “Opening the Connect dialog”.)

  3. Double-click the database to open it.

  4. Click the Multiplex folder.

  5. To synchronize an individual server, right-click that server and choose Synchronize. You can keep running queries on the other query servers.

    To synchronize all the servers in the multiplex, click All (Alt+A). To synchronize some servers, check the box beside each server name.

    Shown is the Synchronize Multiplex window. Window contains information you selected in previous screens: server name, host/port. It contains a Synchronize checkbox for each server listed, and option buttons for All or None. The screen gives instruction at the bottom to click the finish command button to synchronize the multiplex

    Click Finish to synchronize or cancel to quit. Sybase Central briefly stops each query server, replaces its Catalog Store, then restarts that query server. The write server continues running throughout the operation.