Advanced options for Replicator Server include:
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:
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.
CREATE DBEVENT dd_set_serverN;
CREATE DBEVENT dd_serverN;
CREATE DBEVENT dd_go_serverN;
CREATE DBEVENT dd_stop_serverN;
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]
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.
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.
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.
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:
The -EVTn flag controls the duration of the replication cycle in an idle database. On a relatively active database, -EVTn has little effect.
The -EVTn flag specifies that the Replicator Server reads the distribution queue only every n seconds.
Note: This configuration can cause significant backlogs because the Replicator Server does not take into account database activity or how large the backup is.
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
Is the number of the server to be started.
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:
For more information, see the online help topic Raising Events at the Server Level.
The database events you can use to affect server behavior are:
Stops the server, where n is the number of the server. If n is not specified, all started servers on that database are requested to shut down.
For example:
dd_stop_server7
Note: Servers shut down only after they finish current processing activities.
Directs a quiet server to process pending replication transactions, where n is the number of the server. If n is not specified, all started servers on that database processes pending transactions.
For example:
dd_go_server7
You can use the dd_go_server[n] event to schedule replication at specific times with a quiet server. For more information, see Scheduling Servers.
Sends a ping event to all servers.
For more information, see Ping Servers.
Overrides the server parameters set in the configuration file, where n is the number of the server and flag is a server parameter that can be set dynamically. For more information about server flags, see Server Parameters.
For example:
dd_set_server7 '-NQT'
If n is not specified, all started servers connected to that database are altered.