Dameng DM8
DM8 ingestion requires delivery of the matching connector. If the distribution has no Dameng task type, confirm the version, entry point, and supported platforms with technical support first. Prepare the DPI client runtime libraries before configuration. Diagnose a missing task type or DPI loading failure layer by layer.
Entry point: first ask TDengine technical support to confirm the distribution's DM8 connector and taosExplorer entry point. The Dameng database administrator prepares source information; the TDengine TSDB administrator prepares the target database and permissions.
The preparation and verification below are specific to DM8. Task configuration assumes delivery of a matching Dameng connector. The ingestion package, entry point, and supported platforms must match the actual installation. MySQL protocol compatibility or Oracle SQL usage is not a basis for DM8 ingestion. If Dameng is absent from the task types, confirm delivery before configuring a task.
1. Confirm Delivery Scope
Before installing client libraries, creating production tasks, or changing the service environment, provide the following information to technical support and obtain the corresponding configuration instructions. Existing collection tasks need not be stopped for this confirmation.
| Item | Information to provide or confirm |
|---|---|
| Versions and packages | Versions and installation packages for TDengine TSDB, taosX, taosX-Agent, and taosExplorer, and the exact DM8 version. Confirm whether a matching connector or update package is available. |
| Execution location | The taosX or taosX-Agent host that actually reads data, its Windows/Linux version, CPU architecture, and runtime account. |
| Client dependencies | Whether a Dameng DPI client library is required, its exact version, bitness, dependencies, installation, and loading method. A DLL or SO with the same name does not establish compatibility. |
| Network and security | Actual address, listener port, TLS requirements and certificate trust method, and whether access crosses subnets or uses a proxy. |
| Read method | Requirements for small historical windows, continuous queries, and scheduled queries. Confirm the entry points provided by the distribution for each. Continuous querying is not automatically database-log CDC. |
| SQL and types | Schema, source tables, representative SQL, time columns and precision, character set, and fixed-point and large-field samples. Confirm template variables and conversion rules. |
| Validation and recovery | Available result views, resume after interruption, retry of failed windows, target primary keys, and permissions. For automatic row-count or digest validation, confirm the actual entry point and support conditions. |
If Dameng is absent from the task type list, check the delivered package and version first. Do not create a production task named DM8 that actually uses another connector. Before confirmation, do not attempt production ingestion by replacing binaries, copying plugins from other versions, or switching drivers.
2. Prepare Source Samples and Network Access
Ask the Dameng database administrator to select an approved test source table, provide a small amount of data in a fixed time window, and supply a read-only identity. Record the schema, exact numeric values, Chinese text, nulls, time precision, and time zone. Identify the event-time column and the ingestion/update-time column. Read-only permissions must cover the actual queried tables. Grant data-dictionary permissions for metadata browsing separately according to delivery instructions; do not use a database administrator account as the long-term collection account.
Check network access on the actual collection host. The host name and port below are format examples; replace them with real values from the administrator before running. When using a proxy, check on the proxy host. A check on the browser host does not prove the collection path is reachable.
- Linux
- Windows
Run in Bash on the actual collection host, with nc available:
nc -vz -w 5 dm-host.example.com 5236
A successful connection means only that this TCP check passed. If the command is unavailable, identify the distribution's network diagnostic tools first. A missing tool does not mean the database is unreachable.
Run in Windows PowerShell:
Test-NetConnection -ComputerName 'dm-host.example.com' -Port 5236
TcpTestSucceeded : True means this TCP connection succeeded. If it fails, check DNS, routing, the actual port, and firewalls first, rather than changing database accounts or task mappings.
TCP success does not prove that the DPI client loaded, authentication or TLS identity verification passed, or source tables are queryable. After receiving delivery instructions, check these separately. If service environment changes and restarts are required, schedule a maintenance window and retain the original configuration first.
3. Define Time and the Target Model
Agree on these rules with administrators at both ends before configuring the task:
- Select the time column used to identify incremental data. When events are ingested late, advancing windows by event time alone can miss records. Determine the read strategy using source ingestion time, update behavior, and maximum delay.
- Fix the window time zone, start/end boundaries, and precision. For example, prepare comparison data using a start-inclusive, end-exclusive convention. Use
${start},${end}, or other DM8 template syntax only as specified by the confirmed connector instructions; do not copy Oracle templates. - Define the device/measurement-point-to-child-table rule. If multiple source records have the same child table and timestamp, first decide whether to use a composite primary key or another model. Equal total target row counts do not prove there were no overwrites.
- For fixed-point values, verify precision using fractional values, boundary values, and nulls first. For Chinese text and large fields, check encoding, length, and overflow policies. Do not pass exact-value verification using floating-point approximations or truncated values.
For shared field extraction, filtering, mapping, and error-action rules, see Extraction, Splitting, Filtering, and Transformation, Target Table Modeling and Field Mapping, and Write Errors and Invalid Data. These shared rules do not replace confirmation of DM8-specific type conversion and entry points.
3.1 Prepare the DPI Client
If the matching connector requires DPI, install a Dameng client matching the operating system, CPU architecture, and process bitness on the actual reading host. Typical library names are libdmdpi.so on Linux and dmdpi.dll on Windows; use the client package's actual locations and dependencies. Deployment personnel must add the client library directory to the dynamic library search path of the actual taosX or taosX-Agent service process. Finding the library in an interactive terminal does not mean the service account can load it.
LD_LIBRARY_PATH can differ between a Linux service and an interactive shell; PATH can differ between a Windows service and the current terminal. Retain the original configuration before making changes, and confirm read permissions for the files and dependent libraries. If a restart is required, schedule a maintenance window and check other tasks hosted by the same process. Do not restart production services by trial and error, or mix DLLs/SOs from different versions in the program directory.
4. Matching Connector Configuration Order
Perform this section only when delivery includes a Dameng task type and the corresponding fields. If field labels or capabilities differ from the table below, retain the actual configuration and errors, and check matching versions first. Do not bypass the entry point by modifying another source type or fabricating task requests manually.
| Order | Configuration and checks |
|---|---|
| Basic information | Add a Dameng task under Data In. Enter a task name, the actual reading host or agent, and a separate target database. For proxy access, prepare DPI, network access, and the source identity on the proxy host. |
| Connection and identity | Enter the administrator-provided host, port, schema, source read-only username, and password. Set character set, TLS mode, and CA only according to delivered fields and instance configuration; do not infer fixed initial values from historical pages. |
| Check connectivity | Check with the task's actual identity. Table browsing and sample queries also require corresponding metadata and object permissions; TCP success does not replace these checks. |
| SQL query | Verify samples in the Dameng client using the fixed-window SQL below, then fill in the template using the delivered connector's paired time placeholders. Retain explicit ordering conditions. |
| Collection range | Explicitly set a small start/end window for the first run. Check time zone, window interval, and late-data handling. Configure continuous or scheduled entry points according to delivered capabilities; do not treat continuous queries as log CDC. |
| Samples and processing | Retrieve real samples from the server, check dates, fixed-point values, Chinese text, and nulls field by field, then configure extraction, filtering, and mapping using the field processing, target mapping, and write error instructions above. |
| Preview and submit | Check each source field's read representation, target column, child table name, tags, and error action. Submit after previewing, record the task ID, then start and query the target. |
4.1 Fixed-Window SQL and Template Checks
The following fixed-window query runs in the Dameng client. It assumes the administrator has provided SCADA.METER_READINGS with columns ID, METER_ID, LOCATION, READING_TS, INGEST_TS, VOLTAGE, and CURRENT_A. The time columns must support comparison with the shown time expressions. Have the source administrator confirm boundaries and the database time zone first:
SELECT ID, METER_ID, LOCATION, READING_TS, INGEST_TS, VOLTAGE, CURRENT_A
FROM SCADA.METER_READINGS
WHERE INGEST_TS >= TO_TIMESTAMP('2026-11-20 08:00:00.000', 'YYYY-MM-DD HH24:MI:SS.FF3')
AND INGEST_TS < TO_TIMESTAMP('2026-11-20 08:01:00.000', 'YYYY-MM-DD HH24:MI:SS.FF3')
ORDER BY INGEST_TS, ID;
This example filters by ingestion time and writes business time READING_TS to the target primary key, retaining both meanings. Before converting it to a task template, confirm whether the matching connector uses ${start} and ${end}, and their actual expansion format. After confirmation, the corresponding template is:
SELECT ID, METER_ID, LOCATION, READING_TS, INGEST_TS, VOLTAGE, CURRENT_A
FROM SCADA.METER_READINGS
WHERE INGEST_TS >= ${start} AND INGEST_TS < ${end}
ORDER BY INGEST_TS, ID;
Placeholders are not syntax for direct execution in the Dameng client; do not add quotation marks. Filtering only by date loses hours, minutes, and seconds. Define a consistent interpretation of times without a time zone rather than guessing from field names. If device-grouped reads are needed, first confirm the matching connector's subtable queries and condition expansion, then enter a DISTINCT query and corresponding conditions. Source query grouping does not replace target child table mapping.
4.2 Small-Scale Mapping of a SCADA Snapshot
Suppose source table SCADA.SECTION_DATA contains POINT_ID, POINT_NAME, STATION, SAMPLE_TIME, VAL, and QUALITY, with only one row for each measurement point and sampling time. Ask the source administrator to identify a committed one-minute window, query these six columns, and sort by SAMPLE_TIME, POINT_ID.
For a separate test, select the target database and section_data supertable, then configure each item:
| Source field | Target use | Checks |
|---|---|---|
SAMPLE_TIME | Primary timestamp column ts | Confirm read type, task time zone, and target database precision first. Base any required explicit conversion on the actual preview. |
POINT_ID | Child table naming field and tag point_id | Use a confirmed naming template such as p_{POINT_ID} and check that expanded names do not collide. Do not mix template syntax from different entry points. |
POINT_NAME, STATION | NCHAR tags | Length must cover the Chinese samples. Check nulls and actual characters. |
VAL | Numeric column or exact-text column | Do not convert monetary or exact fixed-point values to DOUBLE first. If read-side or target fixed-point support is unconfirmed, explicitly convert to characters in source SQL and write to sufficiently long NCHAR to preserve precision. A historical unified type table is not a guarantee of automatic conversion. |
QUALITY | Quality column | Preserve the original code and meaning. A quality code does not necessarily mean the value is valid. |
Preview one measurement point for the fixed window first. Compare DESCRIBE output and the actual child table, then query in taosExplorer's Data Browser or the taos CLI. For example, if the actual target database is scada_demo and all names and fields above have been checked:
DESCRIBE scada_demo.section_data;
SELECT ts, val, quality, point_id, point_name, station
FROM scada_demo.section_data
WHERE point_id = 'P0001'
AND ts >= '2026-11-20T00:00:00.000Z'
AND ts < '2026-11-20T00:01:00.000Z'
ORDER BY ts;
The UTC window above corresponds to 08:00–08:01 at +08:00, and is equivalent only if the source samples use that time zone. For exact-text columns, compare original characters and decimal places. If the target DECIMAL path is confirmed, also check boundaries, rounding, and overflow. Do not pass verification using approximate floating-point displays. After the first fixed window passes verification, verify continuous reads using one newly committed record. For downtime backfill, check state and the source's queryable range separately.
4.3 Troubleshooting
| Symptom | Check order |
|---|---|
| Dameng task type is missing | Record actual packages and versions and confirm matching delivery. Do not submit using another database type. |
| DPI library missing or fails to load | Check the actual reading host, library bitness, dependencies, and service environment, not just the current user's terminal. |
| Connection succeeds but listing or retrieval fails | Check data-dictionary permissions, source-table SELECT permissions, schema, and query conditions separately. |
| Incorrect Chinese text | Ask the source administrator to confirm instance and client character sets, then compare samples and target. Changing target column names is not a fix. |
| Missing records or changed precision | Compare source records in the same window, cursor and business times, primary-key collisions, filtering, and error archives. Do not immediately rerun the entire table. |
Schedules, automatic row-count/digest validation, retry counts, and validation tabs in historical material must correspond to actual delivered entry points. Until confirmed, compare values manually using this page's fixed window. Do not infer “100% accuracy” or lossless migration for all scenarios.
For other task, write, and runtime issues, see Troubleshooting by Symptom.
5. Verify by Window Before Expanding
After confirming the distribution and ingestion steps, complete a small window using dedicated test objects first. Retain source query results, task configuration, and target query results.
| Verification item | Results to check |
|---|---|
| Connection and samples | The actual collection account can query the specified table and window. Samples contain the expected devices, times, Chinese text, and numeric values. |
| Model and writes | Check target table names, primary keys, tags, times, and values individually. Query target data in taosExplorer's Data Browser or the taos CLI. |
| Data count | Count the same business objects and window, explaining differences caused by filtering, splitting, same-primary-key overwrites, and error actions. Cumulative written rows do not replace the unique target row count. |
| Continuous ingestion | After adding one approved source test record, check its actual ingestion time and the task's read range, and confirm the corresponding new target record. |
| Stop and resume | Under isolated conditions, verify samples from before stopping, during downtime, and after resuming. Define source retention, requery windows, and duplicate-write handling. |
If verification fails, retain the failed window and errors rather than extending timeouts, clearing state, or rerunning the whole table. Even when automatic validation is available, define its comparison scope and how to view results. A single successful validation is not a guarantee of “100% accuracy” under all conditions. For other source entry points, see Databases.