Connect to DB2
This page shows how to save a new DB2 connection from the Connections page. You can use a saved connection for any Relational Migrator task that requires connecting to a database.
About this Task
To save a new DB2 connection in Relational Migrator, you must:
Identify your database connection string or database information.
Connect to DB2.
Important
To plan your migration and map your DB2 schema to a
MongoDB schema, you must connect using an account with the correct
read
permissions.
To migrate data, you must connect to your DB2 database using a service account with the required permissions.
For information on database configuration and required permissions, see Configure DB2.
Steps
Database Connection String
The DB2 connection string looks like:
jdbc:db2://<hostname>:<port>/<database>;
For example, the mydb2database
DB2 database running on localhost
at
port 50000
uses the following connection string:
jdbc:db2://localhost:50000/mydb2database;
Note
To learn more about DB2 connection strings, see:
Connect to DB2
To create a connection string, enter the following:
Field | Value |
---|---|
Host | The host IP or DNS name. |
Port | The port number. |
Database | The database name. Required. |
Username and Password | The credentials to use for authentication. Checking Save password saves the password securely on your machine, so you don't have to enter the Username and Password again when using the saved connection. |
Learn More
For information about supported databases and versions, see Source Databases and Versions.
For information on managing saved connections, see Manage Database Connections.
For information on Relational Migrator projects, see Create and Manage Projects.