Migrating data from a MySQL database to an Oracle database
Use the procedure in this topic to migrate data stored in the MySQL database used by the previous version of BMC Release Process Management to a new Oracle database.
Before you begin
Ensure that the following conditions exist:
- Your environment complies with the requirements in Supported-platforms-for-version-2-5-00.
- You have downloaded SQL Developer version 3.0 from the Oracle website and have installed it on your computer (usually the client computer).
- MySQL server is configured for access to the client computer and BMC Release Process Management version 2.4 is installed and running.
- You have downloaded MySQL Java Database Connectivity Java Archive (JDBC JAR) for the appropriate MySQL server version.
- You have successfully installed BMC Release Process Management version 2.5 with an Oracle database.
- The Oracle user account has sufficient privileges to create, update, delete, and manage permissions on tables. Use the system account, if available.
- The BMC Release Process Management version 2.5 Tomcat service is shut down.
- The Postgres database service, if installed, is running.
To migrate from MySQL to Oracle
- Back up the MySQL server database of BMC Release Process Management version 2.4.
- Back up the Oracle database that was installed by the BMC Release Process Management version 2.5 installer.
- Start SQL Developer.
- Click Tools > Preferences.
- Navigate the tree view and click Data Modeler\Third Party JDBC Drivers.
- Add the MySQL JAR file location by specifying the full path (including the JAR file name).
- Restart SQL Developer.
- Create a connection to the MySQL database:
- Navigate the Connections tree view, right-click the root node, and select New Connection.
- Click the MySQL tab, and specify all the access details of the MySQL server database.
- Click Test to ensure that the connection is successful.
- Click Save.
- Create a connection to the new Oracle database:
- Navigate the Connections tree view, right-click the root node, and select New Connection.
- Click the Oracle tab, and specify all the access details (including a super user and database SID) for the Oracle server.
- Click Test to ensure that the connection is successful.
- Click Connect.
- Navigate the Connections tree view to the list of database tables for the new Oracle connection, and delete all the existing tables and indexes so that all of the tables are clean.
- Click Tools > Migration > Migrate.
- On the Repository page in the displayed wizard, create a connection to the MySQL server:
- Click the plus icon to create new connection.
- Specify all access details for the MySQL server, including a super user and SID.
- Click Test to ensure that the connection is successful, and then click Save.
- Click Next.
- On the Project page, specify all access details, including project name and output directory, and then click Next.
- On the Source Database page, set Mode to Online, select the MySQL connection of BMC Release Process Management 2.4 that you just created as the source database connection, and then click Next.
- On the Capture page, select the BMC Release Process Management 2.4 database so that it appears in the list on the right, and then click Next.
- On the Convert page, accept the default settings by clicking Next.
- On the Target Database page, set Mode to *Online, select the Oracle connection that you created for version 2.5 as the target database connection, ensure that the drop target objects check box is cleared, and then click Next.
- On the Move Data page, select the MySQL connection of BMC Release Process Management version 2.4 as the source database connection, and then click Next.
- On the Summary page, verify all the details, and click Finish.
- Adjust the names of indexes in the database:
- In the Connections tree view, navigate to the Oracle connection, and select open SQL worksheet.
- Rename all the indexes that have truncated names.
Modify the value in the Default column for each table.
- Migrate the database schema from version 2.4 to version 2.5 by using the following steps:
- Ensure that Remote Desktop Connection is available to the server that you want to host BMC Release Process Management 2.5.
- Install BMC Release Process Management using the standard installer, as described in Installing-directly or Installing-silently-using-an-options-file.
During the installation, do not specify the same database used by version 2.4, so that it does not get overwritten. Specify a new, unique name for the 2.5 database, such as brpm_2_5. - Migrate version 2.4 data from its database to the new 2.5 database:
- To migrate from a MySQL database to an Oracle database, see .
- To migrate from a Postgres database to an Oracle database, use the same migration task, but use the Postgres Java Database Connectivity Java Archive (JDBC JAR) while configuring the source connection.
- Open a command prompt and switch to the directory where BMC Release Process Management is installed (for example, C:\BRPM\server.
- Ensure that the PATH environment variable includes C:\BRPM\lib\jruby\bin and that no other ruby runtimes are specified in this variable.
- Enter jruby -S rake db:migrate.
- After the database schema migrates successfully from version 2.4 to version 2.5 (this might take some time), start the BMC Release Process Management version 2.5 Tomcat service.
- Log on to the product with the same credentials as used in product version 2.4.
For more information about migrating database schema from version 2.4 to version 2.5, see Upgrading-from-version-2-4-to-version-2-5.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*