You can perform a reset operation without truncating the tables.
TDM performs the following tasks when you perform a reset operation and do not select the truncate tables option:
Identifies records for deletion from transactional tables that have child tables.
If there are no records to delete, TDM skips this step. If records for deletion exist, TDM performs the following tasks.
Creates staging tables for the identified records and stages the keys.
Identifies top-most transactional tables in the data set.
For each record in a top-most transactional table in the target, if a record exists in the data set, TDM marks the record in the staging table.
Runs an SQL script to cascade mark records in the staged tables for deletion. If a parent record is marked for deletion, TDM marks the child record for deletion.
Checks if recovery is enabled for the reset operation and that the user name and prefix information are available.
If the recovery option is enabled and the prefix information provided, TDM performs the following tasks. If the recovery option is not enabled, TDM skips this step.
Creates temporary tables in the backup schema and then moves records from the staging area to the backup schema.
Stores a backup of all records marked for deletion in the backup tables in the backup schema. TDM runs an SQL script to back up the tables and uses the naming convention
<prefix>_<targetname>
.
Checks if the
Disable Constraints and Indexes
option is enabled. If the option is enabled, the reset operation performs the following steps:
Disables the constraints and indexes.
Deletes marked records from the target. TDM reads the marked records from the staging tables.
Moves data from the data set to the target. TDM processes multiple tables in parallel because the constraints and indexes are disabled.
Enables the constraints and indexes.
If the option is not enabled, the reset operation performs the following steps:
Deletes marked records from the target. TDM reads the marked records from the staging tables.
Moves data from the data set to the target. TDM processes the tables according to constraints because the constraints exist.
Deletes the temporary tables, if created.
Deletes the staging tables, if created.
If the reset operation is successful, TDM deletes the backup tables. If the reset operation is not successful, TDM retains the backup tables and displays an error message.