Previous Topic

Next Topic

Advanced Options

Advanced options for Replicator Server include:

Previous Topic

Next Topic

How You Assign Server Numbers Greater Than Ten

The Ingres Replicator setup script and the repcat utility support only server numbers 1 through 10. If you want to run a Replicator Server with a number greater than 10, you need to follow this process:

  1. Assign the desired server number (N) in the Server field:

    In Visual DBA, use the Define Replicator Databases dialog.

    In Replicator Manager, use the CDDS Databases and Servers window.

    A row is added to the dd_servers catalog if N does not already exist.

  2. Using the SQL Terminal Monitor, connect as the DBA of each replicated database with Full Peer or Protected Read-only targets and issue the following statements (replacing N with your server number):

    CREATE DBEVENT dd_set_serverN;

    CREATE DBEVENT dd_serverN;

    CREATE DBEVENT dd_go_serverN;

    CREATE DBEVENT dd_stop_serverN;

  3. Create the server work directory from the command line. For example:

    Windows:

    md %II_SYSTEM%\ingres\rep\servers\serverN

    UNIX:

    mkdir $II_SYSTEM/ingres/rep/servers/serverN

    VMS:

    create /dir II_SYSTEM:[ingres.rep.servers.serverN]

Previous Topic

Next Topic

Scheduling Servers

You can control when Ingres Replicator propagates changes to the target databases. If it is not critical to have the CDDS synchronized, you can turn on the servers at slow or no usage times. The main benefit of this strategy is that it conserves processing capacity at critical times; Ingres Replicator consumes resources.

You control replication timing through the servers. If the Replicator Server for a given CDDS is started and active, it is continually propagating changes to the target databases. If the Replicator Server is stopped or started but quiet, changes to the CDDS accumulate in the distribution queue until the Replicator Server is started or activated.

You can use the following methods to schedule Ingres Replicator by starting the replication cycle:

Note: To stop a server to perform maintenance on your system, see the online help topic Status Page [Performance Monitor window, Replication branch] for details. You can also stop servers in a terminal monitor or through your own customized shut down script by issuing the correct event to the server. For more information, see Database Events.

Previous Topic

Next Topic

-SGL Flag—Run Replication Once

The -SGL flag configures the server to process its replication queues once before shutting down. You can schedule the replication with your operating system's job scheduling system—cron under UNIX, at on Windows, submit on VMS.

Place the -SGL flag in the server's runrepl.opt file.

Previous Topic

Next Topic

-QIT Flag—Run Server in Quiet Mode

The -QIT flag starts the Replicator Server in quiet mode.

You can schedule Replicator Server activity with database events by using the -QIT flag setting, and use an Ingres application or script to raise a dd_go_server[n] database event at specific times, where n is the number of the Replicator Server you want to start.

Previous Topic

Next Topic

-EVTn Flag—Use Event Timeout

You can use the event timeout flag, -EVTn, to affect server activity. The way the -EVTn flag affects server scheduling depends on several factors. The most common scenarios for using the -EVTn flag to schedule servers are:

Note: This configuration can cause significant backlogs because the Replicator Server does not take into account database activity or how large the backup is.

Previous Topic

Next Topic

rpserver Command—Start a Replicator Server

The rpserver command starts an individual Replicator Server from the operating system prompt. The command reads in parameters from the configuration file, which must be present in the corresponding server directory.

This command has the following format:

rpserver n

Previous Topic

Next Topic

Database Events

You can affect a server by using database events. Database events override the flag settings in the configuration file. An Ingres application must connect to the server's database to issue the event. You can affect a server in any mode: stopped, started and active, or started and quiet.

You can send events from the following sources:

The database events you can use to affect server behavior are:


© 2007 Ingres Corporation. All rights reserved.