Universal DIFF table
The universal DIFF table is used by the asntdiff utility to record the differences between all of the table pairs that it is comparing. Each record in the DIFF table represents a row-specific difference between the source and target, where each row can be identified by its key values.
| Column name | Description |
|---|---|
| DIFF | Data type: CHAR(4); Nullable: Yes A flag that describes how a key-specific row is different between the source and target tables. It could be one of three types: U (UPDATE), D (DELETE) and I (INSERT).
|
| DIFF_IS_PERSISTENCE | Data type: CHAR(1); Nullable: No A flag to indicate if the difference that was found is persistent (saved to disk):
|
| CCRC | Data type: VARCHAR(32) FOR
BIT DATA; Nullable: Yes The 64-bit checksum of this difference. The first 32-bit values are the source-side row-based checksum; the subsequent 32-bit value is the row-based checksum of the target. For non-parallel ASNTDIFF, the value is NULL. |
| DIFF_TIME | Data type: TIMESTAMP; Nullable: No The timestamp in GMT when the row was fetched for the last comparison. |
| BLOCK_NUM | Data type: INTEGER; Nullable: Yes The block number where this difference was identified. For non-parallel ASNTDIFF or the difference-recheck mode, the value is NULL. |
| SOURCE_SCHEMA | Data type: VARCHAR(128); Nullable: Yes The schema of the source table. |
| SOURCE_TABLE | Data type: VARCHAR(128); Nullable: Yes The name of the source table. |
| TARGET_SCHEMA | Data type: VARCHAR(128); Nullable: Yes The schema of the target table. |
| TARGET_TABLE | Data type: VARCHAR(128); Nullable: Yes The name of the target table. |
| KEY_COLS | Data type: VARCHAR(15000); Nullable: Yes The values of key columns that are used to identify the specific difference. The format follows the search condition in the SQL WHERE clauses. For example: |