migrate-action-db
Migrates an action database from one database to another.
migrate-action-db
<--source-driver-class=value>
<--source-database-url=value>
<--source-username=value>
<--source-password=value>
<--target-driver-class=value>
<--target-database-url=value>
<--target-username=value>
<--target-password=value>
[-c | --clear-target-action-db]
Overview
migrate-action-db
appends data to an existing
database, which can cause duplicated data entries if the user reruns a command.
This action database migration is available only from the
migrate-action-db
command-line command. See
Migrating a database instance
for more information.
Options
Option | Optional or Required | Default Value | Description |
---|---|---|---|
|
Required | none | The driver class of the source database.¹ |
|
Required | none | The database URL of the source database.² |
|
Required | none | The user name of the source database. |
|
Required | none | The password for the user of the source database. |
|
Required | none | The driver class of the target database.¹ |
|
Required | none | The database URL of the target database.² |
|
Required | none | The user name of the target database. |
|
Required | none | The password for the user of the target database. |
|
Optional | false |
Clears the target action database of content. By default, the content of the source action database is added to the target action database. |
¹ If you are using an Oracle database, then you must first download a supported database driver and place the file (ojdbc*.jar) in the directory <installation files dir>/tomcat/custom-ext.
Example
config migrate-actiondb
--source-driver-class=com.microsoft.sqlserver.jdbc.SQLServerDriver
--source-database-url=jdbc:sqlserver://<databaseurl>:1433;DatabaseName=<db-name>
--source-username=<db-username> --source-password=<db-password>
--target-driver-class=org.postgresql.Driver
--target-database-url=jdbc:postgresql://<databaseurl>:5432/<db-name>
--target-username=<db-username> --target-password=<db-password>
-c
² If you encounter an error that indicates that the driver could not establish a secure connection, see the article Upgrading to 12.3 and later: Fixing Microsoft SQL Server JDBC driver-related issues.