<%@ page isELIgnored="true" %> <%@ taglib uri="cms" prefix="cms" %> Migrate Server Database

Migrate Server Database

We have seen some scalability issues with the embedded Apache Derby database. If you experience slowness in the AnthillPro Web UI or if the server process is taking up too much memory, it is likely time to migrate to a different database.

The AnthillPro command line installers include a database migration utility that exports your existing database data and imports it into another supported database.

If you want to move or create a test instance of your AnthillPro server, but keep the same database type, see Clone AnthillPro Instance.

The following databases are supported using the migration utility:

  • Oracle. Use the JDBC driver for Oracle 10.2 or higher, regardless of what version of the database is used.

  • MySQL with InnoDB storage (works with 4.1.22 and later). If using MySQL 5, use the 5.0.8 driver version. The 5.1 version has some bugs that will cause the AnthillPro server to throw an error. If you are using the 5.1 version, switch the driver jar file in the server's lib/ext directory and then restart. It is also recommended that the InnoDB storage engine be used.

  • Microsoft SQL Server. The MS SqlServer 2.0 driver (sqljdbc4.jar) will not work with AnthillPro. To install the server using Microsoft SQL Server, you will need to use one of the following drivers, depending on which version of Java the AnthillPro server uses:

    Java 5. Use either the 1.2 driver or the 2.0 sqljdbc.jar driver.

    Java 6. Use the 1.2 driver.

  • DB2 (requires 9.7 or later).

  • PostgreSQL. Due to a known defect with PostgreSQL 8.4.0, AnthillPro can't be installed with that version. Use version 8.3.7.

See the Installation for migrating server database.

Database Requirements

These requirements apply if you want to use a database other than Apache Derby:

  1. You must use one of the command line installers for installation.

  2. You need to download the appropriate JDBC driver file for your database. These are typically downloaded from the database vendor.

  3. You need to create an empty database for AnthillPro to use with a dedicated user.

    • The database migration should only be run after you have completed an upgrade to the version you are using to migrate. So if you download a new version and want to migrate, you must first do an upgrade.

Windows Database Migration

To migrate the AnthillPro database:

  1. Shut down the server.

  2. Download the anthill3-<version>.zip file.

  3. Expand the zip file using a tool like WinZip. Expanding will create an anthill3-install directory.

  4. Open the anthill3-install directory created in the previous step in Windows.

  5. Copy the JDBC driver file(s) of the database you are migrating to into the anthill3-install\lib\ext directory.

  6. Run the migration script migrate-db.bat.

  7. If the AnthillPro server is installed as a Windows service: Input the unique name in the dialog box and click OK to stop and remove service (Windows service may be recreated, if desired, in step 10).

    • If more than one AnthillPro server is installed as a Windows service, make sure the correct service name is entered.

  8. Provide the directory where the AnthillPro server is installed.

  9. Input Y to upgrade the existing server.

  10. Provide the following:

    • Database type AnthillPro should migrate to [derby, oracle, mysql].

    • Database driver. See your database vendor documentation for the JDBC driver class to use.

    • Database connection string. See your database vendor documentation on the format of this value.

    • Database user name.

    • Database password.

  11. Follow the remainder of step 7 through step 10 of the Windows installation process. See Windows Installation.

Linux/Unix Database Migration

To migrate the AnthillPro database, follow the steps below:

  1. Shut down the server.

  2. Download the anthill3-<version>.tar.gz file.

  3. Open a UNIX shell to the directory containing the above downloaded file.

  4. Extract the downloaded tar.gz file. Type tar -zxf anthill3-<version>.tar.gz.

    On some installations of Solaris and HP-UX the default tar command will not properly handle our tar files. You may need to use \ install GNU tar. When installing AnthillPro on Solaris, it is recommended to use korn shell (ksh).

  5. cd anthill3-install.

  6. Copy the JDBC driver file(s) of the database you are migrating to into the anthill3-install/lib/ext directory.

  7. Run the migration script ./migrate-db.sh.

During the migration you will be prompted for the following information:

  1. Directory where the AnthillPro server is installed.

  2. Database type AnthillPro should migrate to (derby, oracle, mysql, etc.).

  3. Database driver. See your database vendor documentation for the JDBC driver class to use.

  4. Database connection string. See your database vendor documentation on the format of this value.

  5. Database user name.

  6. Database password.