Professional Documents
Culture Documents
Historical Inter-System
Replication
Historical data is transferred between sites by the Datapump application. Unlike the
RealTime replication server, Datapump is only used for replication between systems.
NOTE For information about replication between Historical services, refer to Historical
Service Replication (Module 5).
Any Historical data that is inserted or modified at the hot service on a system is replicated
to the other system(s).
NOTE There may be one or more destination systems, depending on the configuration
of the OASyS DNA. For instance, a system might have an emergency backup system and
a decision support system.
The applications that use Historical insert data only at the hot service. When the data
source system changes as a result of dual-host failover, or as a result of a DistribuSys mode
switch, there may still be many outstanding updates. These updates continue to be
replicated even though the source system is no longer controlling the datapoints. If the
source system is down, these updates will be replicated upon recovery of the system. Also
at this time, data collected at the new source system during the failure will be sent to the
recovered system to resynchronize the databases.
Datapump is configured on a per-table basis so that subsets of the tables in a database can
be transferred to a destination system. For instance, the timeline..collect table does not
need to be transferred to a decision support system if only hourly timeline data is required.
Datapump maintains a constant connection to both the source and destination databases.
It performs small, frequent scans of key tables in the Historical database to extract
modifications. A key table is a small table of keys that acts as a queue for data that needs
to be transferred. Data transfer through the open connection imposes a small, constant
load on the network. A connection failure generates an alarm. For a complete list of
Datapump alarms, refer to Summary of Messages and Alarms - Datapump (Module 15) in
the Operation and Control Reference.
When replication is enabled, the DPLongTermOutage utility displays information about the
last successful replication to the destination system. This information may be used,
together with the DPResync utility, in order to sychronize tables after the long-term
outage.
Another source of information for troubleshooting can be found in the XOS Datapump
Summary comment field.
The Telvent\log\DPdirect.log file on the source system may also indicate the source of
the replication problem.
If you are unable to restore the system, contact your Telvent representative.
NOTE To prevent comparison and synchronization activities during times that may
already have high system activity, DPResync halts processing at 5 minutes before the
top of hour, and then continues processing again at 15 minutes past the top of hour.
The DPResync utility uses other utilities to perform the synchronization or comparisons in
the background. A log file is produced to record the output of these utilities. Upon
completion, the Telvent\log\datapump_resync.log file contains a record of the
operations that were performed and their success or failure status. The last line in the log
file is always Done.
The DPCreateResyncDatafile utility creates the data file used by DPResync. The data
file that is created, includes information such as table names, whether the table contains a
time field and, if so, how many seconds of data should be processed at a time, and whether
the table is periodically cleaned up. The data file can be modified to add optional where
clause information, for example, custodyType = shared. This information allows the
DPResync utility to optimize comparison and sychronization activities while reducing
interference with normal operations, for example, minimizing database locks. The syntax
is:
-f <filename> Creates the data file describing tables replicated from this source system.
The files are created in the directory:
C:\PROGRA~1\Telvent\scripts\Datapump
Defaults to filename: DPResyncData_<SystemName>.txt.
-D <destinSystem> Creates a data file that only contains tables that are configured for repli-
cation from this source system to the destination system.
This option also adds the destination system name to the default data file-
name.
For example, if no filename parameter is specified but a destinSystem is
specified, then the file created is:
DPResyncData_<SystemName>_to_<destinSystem>.txt
-o <order> If order = asc, order the file using priority ascending.
If order = desc, order priority descending.
(desc is used by deletion scripts.)
Default: asc
-v Prints progress messages.
-h Display usage message
-r
Prints a summary that contains the same information as in the XOS datapump
summary.
-R
Prints all the datapump column values that are important to the configuration of the
data transfer including the status columns returned using the -r option.
-i
Prints the Datapump entries that failed or are in transit.
-I
Prints the Datapump entries that failed.
-K
Prints the the number of rows queued up in each configured key table. It gives you an
idea of whether the transfer is working or if it is backing up.
-e
Print the datapump events for past 24 hours.
-S source
Identifies the source connection (the default is MS:(local)). The source is specified as:
[system:[RDBMS:]][userid/password@]service
System is specified when you want to only see information for a particular destination
system. RDBMS can be SYB, FILE, BINFILE, ORA, ODBC, or MS. Use DPutil -h to
obtain the list of RDBMS types available on your system.
-D destination
Identifies the destination connection (the default is XISB). The destination is specified
in the same manner as the source.
-d database
Identifies the database that contains the table to be compared between systems.
-t table
Identifies the table to be compared between systems.
For additional information about the Datapump application, refer to the Operation and
Control Reference.