LIBRARY_MIGRATION_LIST view
The LIBRARY_MIGRATION_LIST view returns information from the library tracking list (LTL) and object tracking list (OTL).
Each row in the list represents a single object that needs to be migrated to the copy node using IBM® i Migrate While Active. These are objects that have been modified on the source node since the initial system migration. Multiple changes to an object will generally be reflected in a single entry. When an object is created, deleted, or renamed, there may be more than one entry in the list for the same object.
When an object completes migration, it is no longer visible in this view. Use the QSYS2.MIGRATED_LIBRARY view to see the list of objects that have been successfully migrated.
Authorization: The caller must have *ALLOBJ special authority.
The following table describes the columns in the view. The system name is MIG_LTL. The schema is QSYS2.
Column Name | System Column Name | Data Type | Description |
---|---|---|---|
LIBRARY_NAME | LIB_NAME | VARCHAR(10) | The library name that contains OBJECT_NAME. |
OBJECT_NAME | OBJ_NAME | VARCHAR(128) | The name of the object. |
OBJECT_TYPE | OBJ_TYPE | VARCHAR(8) | The object type. In addition to system object types, the
following additional values can exist in the list.
|
TRACKING_STATE | TRACKING | VARCHAR(10) | The tracking state for the object.
|
INITIAL_TRACKING_TIME | TRACK_TIME | TIMESTAMP | The timestamp when the object was added to the migration list. |
OBJECT_SIZE | OBJ_SIZE | BIGINT Nullable
|
The approximate size of the object, in bytes. Contains the null value if the size of the object is not available. |
MIGRATION_START_TIME | START_TIME | TIMESTAMP Nullable
|
The timestamp for the start of the current migration. Contains the null value if TRACKING_STATE is not MIGRATING. |
FAILURE_JOB_NAME | FAIL_JOB | VARCHAR(28) Nullable
|
If migration for the object has been attempted and failed, the
qualified job name for the most recent failed migration. Contains the null value if TRACKING_STATE is not FAILED. |
FAILURE_MESSAGE | FAIL_MSG | CHAR(7) Nullable
|
If migration for the object has been attempted and failed, the
failure message ID for the most recent failed migration. Contains the null value if TRACKING_STATE is not FAILED. |
TRACKING_LIST | TRACK_LIST | VARCHAR(21) |
|
Example
- Review the list of files that need to be migrated to the copy
node.
SELECT LIBRARY_NAME, OBJECT_NAME, OBJECT_SIZE FROM QSYS2.LIBRARY_MIGRATION_LIST WHERE TRACKING_STATE <> 'MIGRATING' ORDER BY LIBRARY_NAME, OBJECT_NAME;