How-to
Export selected Geo SCADA historian tags to another historian
Short answer
Pull the selected tags through the documented SQL query interface in measured time windows, and write them to the destination through whatever interface that system's documentation accepts; use a customized transfer application only when the destination's ingestion needs application logic. Never read the historic database folder directly: it is a proprietary binary format held locked by the running server.
On this page
- Can you read the Geo SCADA historic database folder directly?
- What are the supported ways to export history from Geo SCADA?
- How do you choose between an ODBC pull and a transfer application?
- How do you size and pace the historical queries?
- How do you handle window boundaries and duplicate records?
- How do you build the transfer one step at a time?
- What must you confirm on the destination historian's write side?
- Questions asked
Export selected tags by pulling them from the Geo SCADA historian over its documented SQL query interface in measured time windows, then writing them to the destination through the interface that system accepts. A customized transfer application is the fallback for destinations whose ingestion needs application logic. Reading the historic database folder directly is not a route: the files are a proprietary binary format held by the running server. What follows is the Geo SCADA side of a bounded historian-to-historian transfer — route choice, query sizing, boundary handling, and proof of arrival at the destination.
Can you read the Geo SCADA historic database folder directly? #
No. The historic store is a proprietary binary format and the running server holds the files locked, so copying or parsing the folder yields nothing you can load into another historian and risks reading a half-written file.
Every supported export goes through a query interface the server itself serves, not through the file system. There is no documented file reader for the historic folder, and the server's locks exist to keep its own writes consistent. If someone proposes a file copy as a fast export, the correct answer is a bigger window and a measured query, not a copy job.
What are the supported ways to export history from Geo SCADA? #
Two routes are supportable: a SQL pull over the query interface Geo SCADA exposes on its normalized historic store, reached from an external client through ODBC, or a customized transfer application built from the published sample and aimed at the destination's write interface.
| Route | Where it lives | What decides it |
|---|---|---|
| SQL pull over ODBC | External client issuing historical queries | Explicit control of tags and time ranges; throughput-limited, so windows and measurement are mandatory |
| Customized transfer application | Sample app's source reader and destination writer | Destination ingestion needs application logic; the sample is a hybrid push/pull with mid-level throughput |
| Direct read of the historic folder | Server filesystem | Not viable: binary format, files held by the running server |
The SQL route is the one the product documents for external reporting: the server administration guide covers SQL query configuration for historic data, and a Historic View can define a table of processed history, such as an average, that a query then reads like any other table. The application route starts from the TransferHistory sample published for Geo SCADA on GitHub — a hybrid push/pull design with mid-level throughput, so it is a starting implementation to adapt, not a proven bulk mover.
How do you choose between an ODBC pull and a transfer application? #
Use the ODBC pull whenever the tag set is bounded and the destination accepts batched inserts; go to the transfer application only when the destination's documented ingestion interface needs application-level logic you cannot express as database writes.
The decision is about the destination, not the source. Reading history out of Geo SCADA costs the same either way — the transfer application still runs historical queries internally, and its push writer does not remove that cost. The pull wins on simplicity whenever the destination can take rows; the application earns its keep when the destination speaks only an API, needs per-record acknowledgments, or requires transformation between read and write. If the real requirement is a continuous feed rather than a bounded transfer, exporting Sparkplug B out of Geo SCADA to a historian is a different route with its own broker and state handling, and the better fit for that case.
How do you size and pace the historical queries? #
Query one tag set over one bounded window at a time, measure each window's duration and record count, and keep the window small enough that its query finishes well inside the scheduling interval — a day window on 40 one-minute tags is 57,600 records.
An export is not a trend display's query. A trend asks for a short interval on a few points; an export can ask for years across dozens of points, and those reads compete with the running system for server, storage and network. Three rules keep it civilized: separate the selection of points from the retrieval of their records; retrieve only the fields the destination needs; and never rescan an ever-growing interval to find new records — carry a checkpoint forward instead.
Worked example, with illustrative inputs rather than a benchmark: 40 tags, one stored sample per minute per tag, 365 days.
- Per tag per day: 60 × 24 = 1,440 records.
- Per day window, all tags: 40 × 1,440 = 57,600 records.
- Full year, all tags: 40 × 1,440 × 365 = 21,024,000 records.
- Suppose the first measured day window returns 57,600 rows in 48 s: 57,600 ÷ 48 = 1,200 rows/s.
- Whole-year read at that rate: 21,024,000 ÷ 1,200 = 17,520 s, about 4 h 52 min.
- At a destination write rate of 500 rows/s the pipeline runs at the slower side: 21,024,000 ÷ 500 = 42,048 s, about 11.7 h.
Decision from those numbers: sequential day windows finish this transfer inside a day of runtime, so day windows are the right size here. If a window's duration approaches its schedule, halve it — a 12 h window is 28,800 records, about 24 s of read at the same rate. Run the client on separate hardware rather than on the SCADA server itself; for an unattended data-collection host, a fanless industrial mini PC is a common fit. And query the schema your version documents rather than guessed table names — if the destination needs aggregates rather than stored samples, a Historic View is the documented way to produce them.
How do you handle window boundaries and duplicate records? #
Use half-open windows — start inclusive, end exclusive — so each timestamp is returned exactly once across adjacent windows, and make the destination's duplicate behavior explicit before the first bulk write.
If a window that ends on 06:00:00 includes its end and the next one, which starts at 06:00:00, also includes its start, the sample stored at exactly 06:00:00 arrives twice; exclude both ends and it can be lost. The half-open rule, every t with start ≤ t < end, is the fix. Retries make the destination's behavior part of the design: a retried window re-delivers records, so the destination should treat tag plus timestamp as the identity and overwrite, or the client must drop records its checkpoint already covers. Confirm in the query interface's documentation how timestamp comparison behaves before trusting the rule on your data.
How do you build the transfer one step at a time? #
Run it as a staged build: one proven source read, one proven destination write, then bounded windows with a checkpoint after every acknowledged batch, expanding the tag list only when the previous stage holds.
- Define the contract: source points, destination tags, start and end instants, units, data types, and whether ongoing updates are required after the backfill.
- Confirm both interfaces: the documented Geo SCADA query access on one side, the destination's write interface and credentials on the other.
- Prove one source read: a short interval on one point with known history, compared timestamp by timestamp against Geo SCADA's own historical display.
- Prove one destination write: submit those records to a controlled test tag and inspect the ingestion response before touching production history.
- Add bounded windows: sequential at first, sized from measured query duration and the destination's documented batch limits.
- Add recoverable delivery: persist the checkpoint only after the destination acknowledges the window, and log failures with tag and interval so a retry is precise.
- Expand the selection gradually, watching source responsiveness and destination processing as tags are added.
When the destination trend is empty, trace one record through three boundaries before touching the query. A successful connection proves connectivity, not selection and not acceptance. A selection fault retrieves nothing or the wrong records — check point identity, the interval, and account access, and remember that a point must meet its own historic storage criteria to store anything at all, the same source-side rule behind why Geo SCADA history needs points to backfill Citect trends.
A binding fault lands correct records on the wrong destination tag — that is the mapping, and no amount of driver troubleshooting fixes it. An ingestion fault is visible in the writer's response: rejected records, field type mismatches, or batch limits exceeded.
What must you confirm on the destination historian's write side? #
Before any bulk transfer, get from the destination's documentation the accepted record fields, timestamp format and time zone handling, quality representation, batch limits, and duplicate behavior — the source's ODBC connection proves none of these.
For a destination like Panorama H2, none of the Geo SCADA material tells you what the write side accepts; that comes from the destination's own documentation, and it is the gate on the route choice made earlier. Two checks catch most silent failures. Push one known sample through and compare its timestamp in the source display, the client and the destination using one explicit time basis — a one-hour shift is a time zone interpretation, not missing data. And map quality explicitly, either to the destination's quality scheme or to a separate field, never by discarding it.
Keep the source read-only end to end: the export must never write back toward Geo SCADA, and corrections to source history belong in Geo SCADA through its supported means. The destination-side discipline of checkpoints, acknowledged windows and reconciliation is the same one that applies when backfilling PI from an existing plant historian.
Questions asked
Can the export run while operators are using trends on the same server?
Yes, but the queries compete for the same server, storage and network the trend displays use. Run the first windows on a quiet shift, measure how long each takes, and keep windows small enough that operators do not see sluggish trends. If a window overruns its schedule, shrink it before adding tags or shortening the gap between windows.
Should you export raw samples or the values a trend shows?
Export the stored samples, not a trend's interpolated or aggregated curve, unless the destination specifically wants processed data. Geo SCADA stores history per point under that point's own historic storage criteria, and processed results are produced for display; a processed export can differ from the stored record set at the same timestamps.
How do you restart after a failed window without duplicating data?
Persist the last window end that the destination acknowledged and restart from that instant with the same half-open rule: start inclusive, end exclusive. If the failure happened mid-write, rely on the destination treating tag plus timestamp as the identity and overwriting, or re-query the same window and let the client drop records the checkpoint already covers.
What if the destination historian has no SQL or ODBC ingestion at all?
Then the ODBC pull only solves the source side, and you need the customized transfer application whose writer speaks the destination's documented interface. The source read stays the same: windowed, measured queries with a checkpoint. The application's destination writer, retry handling and checkpoint behavior are the parts you adapt and test.
How long will a full year of history take to move?
It is throughput-bound, so measure one window and multiply. In the worked example, 40 tags at one sample a minute is 21,024,000 records a year; at a measured 1,200 records a second the read alone takes about 4.9 hours, and a slower destination write sets a longer pipeline time. Halve the tag set and the time halves with it.