Performing a data migration v4
After performing the schema migration, migrate the data.
Use Migration Toolkit to migrate the data. For detailed information about using Migration Toolkit, see Migration Toolkit.
Configure the Migration Toolkit
toolkit.properties
file, ensuring that connection information for the source and target databases is available in the property file:For more information, see Building the toolkit.properties File.
Invoke Migration Toolkit in
–dataOnly
mode. Include the–truncLoad
keyword to resolve foreign key dependencies across tables.For example, the following command migrates data to a schema named
hr
:runMTK.sh –dataOnly –targetSchema hr –truncLoad HR
The command migrates the specified
source_schema
totarget_schema
. The data is loaded into the locally installed EDB Postgres Advanced Server instance with a database superuser namedenterprisedb
and the password ofpassword
.Note
The tables are truncated before attempting the data load.
Advanced data migration
For larger databases that require a parallel data load, you can use one of the following methods:
- The EDB Postgres Advanced Server database link feature (for compatibility with Oracle databases)
- A Dblink or a database link style migration (if your data contains
CLOB
data)
For more information, see the Migration Toolkit.
- On this page
- Advanced data migration