Migrating data from DB2 to PostgreSQL
If you previously used RICOH ProcessDirector with DB2 and are migrating to the PostgreSQL database configuration, you must migrate
your data from one database to the other after installing the update.
To migrate your data from DB2 to PostgreSQL:
- Log in to the primary computer as the RICOH ProcessDirector system user (aiw1 is the default).
- Make sure that you can access both the DB2 and the PostgreSQL databases. Open a command line and enter these commands.
- Prepare a migration directory.
- Create a temporary directory for the migration. For example: mkdir $AIWDATA/tmp/migrateDb2ToPostgresql
- Navigate to: $AIWPATH/base
- Copy the migrateDb2toPostgresql-version.zip to your temporary migration directory and unzip.
- In your temporary migration directory, update the permissions for migrateDb2ToPostgresql.plType: chmod +x migrateDb2ToPostgresql.pl
- Update the permissions for rexact.pl. Type: chmod +x rexact.pl
- Run the migration tool.
- Stop RICOH ProcessDirector, except the database: stopaiw -d
- Log in as the root user.
- Run . /opt/infoprint/ippd/base/config/ippdprofile
- From the migration directory, run the migration script: ./migrateDb2ToPostgresql.pl
The migration starts by restarting the activation to create tables in PostgreSQL database. Activation status messages are displayed.
When the activation is complete, the script runs the migration. As the migration script runs, you should see status messages such as: Migrating table <tablename>
- Note:
- Additional log messages are written to: $AIWPATH/logs/installer/rexact-logs.log and $AIWPATH/logs/installer/migrateDb2ToPostgresql.log
- If you see error messages during the migration, see Troubleshooting data migration errors.
- Stop and restart RICOH ProcessDirector:
- Log in as the RICOH ProcessDirector system use (aiw1 is the default).
- Run stopaiw
- Run startaiw
- Log in to RICOH ProcessDirector. All objects and jobs should now appear on the Main page.
- After you verify everything, proceed with uninstalling the DB2 database.
- To uninstall DB2:
- Log in as the root user.
- Enter these commands to uninstall DB2 database.
- Remove the following directories if they exist:
- $AIWDATA/db2
- $AIWDATA/db2_logs
- Continue with Completing the upgrade process.