Example: Loading Tables with User OVERRIDE Privileges - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

When a user with OVERRIDE privileges uses an INSERT or UPDATE to load a table that has one or more non-hierarchical constraint columns, the system does not calculate and insert the needed hex values. The user must supply the hex values for each non-hierarchical constraint column as part of the load script.

For example:

  1. Calculate the binary string for the bit position that represents the constraint values, as shown in Example: Loading Tables without User OVERRIDE Privileges.
  2. Convert the binary string to a hex value.
  3. Load the hex values into the source data columns.
  4. Specify the columns containing the hex data in the load script.
  5. When you load the destination table, the hex values are entered into the constraint columns.
    The database checks constraint column input data for validity by converting the hex string to binary and checking the indicated bit position against dictionary rows in DBC.ConstraintValues, before inserting them into the target table.