A computer-implemented method of migrating data from a source database to a target database including executing, using at least one processor, instructions recorded on a non-transitory computer-readable storage medium, the method comprising: the source database being a DB2 database, ensuring correct version information of the source database by using a system page generator that determines whether system pages need to be generated and that automatically generates the system pages; creating an image copy of the data in the source database wherein the image copy is a snapshot in time of the data in the source database including source object identifiers of the source database, wherein the image copy is an image copy file of a single table or of a collection of tables; collecting metadata (112,400) describing the source database; using the metadata to ensure the source database and the target database are compatible wherein the metadata is configured for translating the source object identifiers in the image copy to target object identifiers; and when the source objects of the source database and the target objects of the target database are compatible: determining whether version information of the target database is compatible with the version information of the source database; automatically repairing the version information of the target database when it is determined that the version information of the target database is not compatible with the version information of the source database; and refreshing data in the target database using the image copy of the data in the source database. the source database being a DB2 database, ensuring correct version information of the source database by using a system page generator that determines whether system pages need to be generated and that automatically generates the system pages; creating an image copy of the data in the source database wherein the image copy is a snapshot in time of the data in the source database including source object identifiers of the source database, wherein the image copy is an image copy file of a single table or of a collection of tables; collecting metadata (112,400) describing the source database; using the metadata to ensure the source database and the target database are compatible wherein the metadata is configured for translating the source object identifiers in the image copy to target object identifiers; and when the source objects of the source database and the target objects of the target database are compatible: determining whether version information of the target database is compatible with the version information of the source database; automatically repairing the version information of the target database when it is determined that the version information of the target database is not compatible with the version information of the source database; and refreshing data in the target database using the image copy of the data in the source database. determining whether version information of the target database is compatible with the version information of the source database; automatically repairing the version information of the target database when it is determined that the version information of the target database is not compatible with the version information of the source database; and refreshing data in the target database using the image copy of the data in the source database.