DBUpgrade command-line utility
The DBUpgrade command upgrades previous versions of database schemas and data to the current version of IBM® BPM.
Syntax
DBUpgrade -propertiesFile target_migration_properties_file [-backupFolder snapshot_folder]
Description
- System Data toolkit
- Process Portal process application
- Hiring Sample tutorial process application
- Topology information in the Business Process Choreographer database
- Schema and data for Process Server and Performance Data Warehouse databases, except for DB2 for z/OS databases. To manually run the schema update separately, see the instructions at the end of this topic.
The DBUpgrade command is located in the install_root/bin/ directory (where install_root is the installation location of IBM Business Process Manager). Before running the command, make sure that the servers and cluster members are stopped.
You need to run the DBUpgrade command only once, even if you have multiple nodes and cluster members.
The logs are saved under the install_root/profiles/PROFILE_NAME/logs directory in files named DBUpgrade_TimeStamp.log and bootstrapProcesServerData.AppClusterName.TimeStamp.log. PROFILE_NAME is the value that you specified for the profile.name property in the target_migration.properties file.
Required parameters
- -propertiesFile
- This parameter is the full path to the target migration properties file in which you specified the configuration information for the target environment. The sample file is found in install_root/util/migration/resources/migration.properties. Ensure that the value of the target.config.property.file property is set to the full path of the configuration properties file that you used to create your target environment. You must also set the value of profile.name.
- -backupFolder
- This parameter is the snapshot directory that contains the information that was extracted from the source environment by the BPMExtractSourceInformation utility. This parameter is required if you are migrating from IBM BPM Advanced or WebSphere Process Server.
Examples
- install_root/bin/DBUpgrade.sh -propertiesFile /opt/BPM85/util/migration/resources/target_migration.properties -backupFolder /tmp/snapshot
- install_root\bin\DBUpgrade.bat -propertiesFile "C:\bpm 85\util\migration\resources\target_migration.properties" -backupFolder C:\snapshot
- install_root/bin/DBUpgrade.sh -propertiesFile /opt/BPM85/util/migration/resources/target_migration.properties
- install_root\bin\DBUpgrade.bat -propertiesFile "C:\bpm 85\util\migration\resources\target_migration.properties"
Manually running the schema upgrade for the Process Server and Performance Data Warehouse databases
- Open the upgradeSchema_ProcessServer.sql file in target_deployment_manager_profile/dbscripts/Upgrade/de_name/database_type/Process_Server_database_name.
- Find the phases in the file that correspond to your source. Each
phase starts with /* START of phase ProcUpgradeToversion */ and
ends with /* END of phase ProcUpgradeToversion */.
For example, if your source version is V7.5.1, the database is upgraded to V8.0.0 first, and then to V8.0.1, V8.5.0, and finally V8.5.5. In that case, you must copy the SQL statements from /* START of phase ProcUpgradeTo751 */ to the end of the file.
- Run the SQL statements in your preferred database tool to perform all the database schema updates.
- Open the upgrade.xml file in install_root/util/dbUpgrade.
Search in the file for
By default, the value of the data.upgrade property is false, which means that both schema and data are upgraded. If the database schema has already been upgraded manually and you want to upgrade the data only, change this value to true before you run the DBUpgrade command. DBUpgrade will skip the schema upgrade and do the data upgrade only.<sysproperty key="data.upgrade" value="false" />