Loaddata
- Last UpdatedNov 02, 2023
- 1 minute read
The loaddata command loads the RealTime database (RTDB) from the saved binary (data) files. The command reads RealTime from the files created by the most recent run of savedata. It will initialize and then load the entire database. This command is executed from Windows Powershell on a computer where RealTime is installed.
Notes: The RealTime service must be shut down and in a FAILED state in order for loaddata to run safely.
When Management of Change (MoC) is enabled, the loaddata command will restore the change tracking database (MoC.SQLite) to correspond to the
version of the RTDB that is being restored.
Syntax
loaddata [-h][-f][filename]
Where:
-
-h prints the line argument options on the screen.
-
-f forces the load of the new data even if RealTime is still running and the shared memory has already been loaded.
-
filename is the name of the datafile to be loaded. If no filename is supplied, loaddata uses save.dat. The file is decompressed automatically if compressed.
Note: The loaddata command is used during RealTime service startup. Only those with a thorough understanding of the system should use this utility. The indiscriminate use of loaddata will destabilize a live and Hot system, resulting in, among other things, the sending of unintended commands to field devices.