Enabling archiving

You can enable archiving on versioned or nonversioned data by right-clicking the dataset in the Catalog tree and clicking Enable Archiving.

To enable archiving on multiple datasets at once, you can use the Enable archiving geoprocessing tool.

The geodatabase manages archiving on your dataset differently, depending on whether the dataset is versioned or not.

Enabling archiving on nonversioned data

When you enable archiving on nonversioned data, the geodatabase creates additional date attributes in the base table for that dataset. These date attributes are columns in the base table named gdb_from_date and gdb_to_date which are used to record the timestamp for the effective lifespan of the archived row. As edits are made to the dataset, these attributes are updated to maintain an historical record over time.

Enabling archiving on versioned data

Enabling archiving on versioned data is similar to registering a dataset as versioned. For each dataset for which archiving is enabled, a new archive class is created. When enabling archiving, all attributes and all rows in the DEFAULT version of the dataset or object class are copied to the archive class. The time it takes to complete the creation of the archive class depends on the size of the dataset being enabled. The archive class has the same schema as the original dataset with additional date attributes gdb_from_date and gdb_to_date to record the timestamp for the effective lifespan of the archived row and a gdb_archive_oid attribute to uniquely identify each row.

Archiving table

Representing the archive class as an independent feature class, as opposed to managing the historical rows in the delta table for the versioned table, means that the existence and size of the archive does not impact the efficiency of the database. Datasets can be unregistered as versioned without affecting or deleting the archive class. If a dataset is unregistered as versioned, the archive class becomes an object or feature class.

Once the dataset has had archiving enabled, all changes saved or posted to the DEFAULT version are additionally preserved in the archive class. You do not have the ability to append historical data to the archive class. Manually changing the archive class can lead to a corruption of your geodatabase archiving process.

Tips on enabling archiving:

Related Topics

3/13/2015