Specifying connection properities v55
Migration Toolkit uses the configuration and connection information stored in the toolkit.properties
file during the migration process to identify and connect to the source and target databases.
On Linux, the toolkit.properties
file is located in /usr/edb/migrationtoolkit/etc
.
On Windows, the file is located in C:\Program Files\edb\mtk\etc
.
On Mac OS, the file is located in /Library/edb/mtk/etc
.
The figure shows a sample toolkit.properties
file:
Before executing Migration Toolkit commands, modify the toolkit.properties
file with the editor of your choice. Update the file to include the following information:
SRC_DB_URL
specifies how Migration Toolkit connects to the source database. Details on forming the URL for each source database follows.SRC_DB_USER
specifies a user name (with sufficient privileges) in the source database.SRC_DB_PASSWORD
specifies the password of the source database user.TARGET_DB_URL
specifies the JDBC URL of the target database.TARGET_DB_USER
specifies the name of a privileged target database user.TARGET_DB_PASSWORD
specifies the password of the target database user.
Note
Unless specified in the command line, Migration Toolkit expects the source database to be Oracle and the target database to be EDB Postgres Advanced Server. For any other source or target database, specify the -sourcedbtype
or -targetdbtype
options as described in Migrating from a non-Oracle source database.
For specifying a target database on BigAnimal, see Defining a BigAnimal URL.
Defining an Advanced Server URL
Migration Toolkit helps with migration from the following platforms to Advanced Server:
- Oracle
- PostgreSQL
- MySQL
- Sybase
- SQL Server
For a definitive list of the objects migrated from each database type, refer to Functionality overview.
Migration Toolkit reads connection specifications for the source and the target database from the toolkit.properties
file. Connection information for each must include:
- The URL of the database
- The name of a privileged user
- The password associated with the specified user
The URL conforms to JDBC standards and takes the form:
An Advanced Server URL contains the following information:
jdbc
— The protocol is alwaysjdbc
.edb
— If you're using Advanced Server, specifyedb
for the subprotocol value.<host>
— The name or IP address of the host where the Postgres instance is running.<port>
— The port number that the Advanced Server database listener is monitoring. The default port number is 5444.<database_id>
— The name of the source or target database.{TARGET_DB_USER|SRC_DB_USER}
— Specifies a user with privileges to create each type of object migrated. If migrating data into a table, the specified user might also require insert, truncate, and references privileges for each target table.{TARGET_DB_PASSWORD|SRC_DB_PASSWORD}
— Set to the password of the privileged Advanced Server user.
Defining a PostgreSQL URL
Migration Toolkit helps with migration from the following platforms to PostgreSQL:
- Oracle
- Advanced Server
- MySQL
- SQL Server
For a definitive list of the objects migrated from each database type, refer to Functionality overview.
Migration Toolkit reads connection specifications for the source and the target database from the toolkit.properties
file. Connection information for each must include:
- The URL of the database
- The name of a privileged user
- The password associated with the specified user
A PostgreSQL URL conforms to JDBC standards and takes the form:
The URL contains the following information:
jdbc
— The protocol is alwaysjdbc
.postgresql
— If you're using PostgreSQL, specifypostgresql
for the subprotocol value.<host>
— The name or IP address of the host where the Postgres instance is running.<port>
— The port number that the Postgres database listener is monitoring. The default port number is 5432.<database_id>
— The name of the source or target database.{SRC_DB_USER|TARGET_DB_USER}
— Specify a user with privileges to create each type of object migrated. If migrating data into a table, the specified user might also need insert, truncate, and references privileges for each target table.{SRC_DB_PASSWORD|TARGET_DB_PASSWORD}
— Set to the password of the privileged PostgreSQL user.
Defining a BigAnimal URL
Migration Toolkit helps with migration from the following platforms to BigAnimal:
- Oracle
- Advanced Server
- PostgreSQL
- MySQL
- SQL Server
Migration Toolkit reads connection specifications for the source and the target database from the toolkit.properties
file. Connection information for each must include:
- The URL of the database
- The name of a privileged user
- The password associated with the specified user
When migrating to BigAnimal, TARGET_DB_URL
takes the form of a JDBC URL. For example:
Note
Many of the values you need for the target database URL are available from the BigAnimal portal. In BigAnimal, select your cluster and go to the Connect tab to find the values.
The URL contains the following information:
jdbc
— The protocol is alwaysjdbc
.postgres_type
— The subprotocol is the Postgres type. Specifyedb
if you're using Advanced Server orpostgresql
if you're using PostgreSQL.<host_name>
— The host name of your cluster. You can copy it from the Host field on the Connect tab in the BigAnimal portal.<port>
— The port number that the database listener is monitoring. You can copy it from the Port field on the Connect tab in the BigAnimal portal.<database_id>
— The name of the target database. Set this to the name of the database in your cluster that you want to use as your migration target database. The name of the default database for your cluster is shown in the Dbname field on the Connect tab in the BigAnimal portal. Often a separate database is created for use as the migration target.TARGET_DB_USER
— Specifies the name of a privileged database user. You can copy it from the User field on the Connect tab in the BigAnimal portal.TARGET_DB_PASSWORD
— Contains the password of the specified user.sslmode
— Either "require" or "verify-full". See Recommended settings for SSL mode. Listed at the end of the Service URI value on the Connect tab in the BigAnimal portal.
Defining an Oracle URL
Migration Toolkit helps with migration from an Oracle database to a PostgreSQL or Advanced Server database. When migrating from Oracle, you must specify connection specifications for the Oracle source database in the toolkit.properties
file. The connection information must include:
- The URL of the Oracle database
- The name of a privileged user
- The password associated with the specified user
When migrating from an Oracle database, SRC_DB_URL must contain a JDBC URL, specified in one of two forms. The first form is:
The second form is:
An Oracle URL contains the following information:
jdbc
— The protocol is alwaysjdbc
.oracle
— The subprotocol is alwaysoracle
.thin
— The driver type. Specify a driver type ofthin
.<host_name>
— The name or IP address of the host where the Oracle server is running.<port>
— The port number that the Oracle database listener is monitoring.<database_id>
— The database SID of the Oracle database.<service_name>
— The name of the Oracle service.SRC_DB_USER
— Specifies the name of a privileged Oracle user. The Oracle user needs DBA privilege to migrate objects from Oracle to Advanced Server. The DBA privilege can be granted to the Oracle user with the OracleGRANT DBA TO user
command to ensure all of the desired database objects are migrated.SRC_DB_PASSWORD
— Contains the password of the specified user.
Defining a SQL Server URL
Migration Toolkit helps with migration from an SQL Server database to a PostgreSQL or Advanced Server database. Migration Toolkit supports migration of the following object definitions:
- Schemas
- Tables
- Table data
- Constraints
- Indexes
Migration Toolkit reads connection specifications for the source database from the toolkit.properties
file. The connection information must include:
- The URL of the source database
- The name of a privileged user
- The password associated with the specified user
If you're connecting to a SQL Server database, SRC_DB_URL
takes the form of a Microsoft JDBC URL (recommended) or a JTDS URL.
Microsoft JDBC URL
By default, Microsoft JDBC Driver for SQL Server uses TLS encryption for all communication between the client and the SQL Server. Set encrypt
to false
, if you want to disable TLS encryption. For more information about connecting to a Microsoft SQL Server using JDBC type 4 driver, see Building the connection URL.
A SQL server URL contains the following information:
jdbc
— The protocol is alwaysjdbc
.sqlserver
— The server type is alwayssqlserver
.<server_name>
— The name or IP address of the host where the source server is running.<port>
— The port number that the source database listener is monitoring.<database_id>
— The name of the source database.SRC_DB_USER