To migrate FishEye/Crucible to an SQL Server database, install SQL Server and follow the steps below. When they are used together, FishEye and Crucible share the same external database.

Before you begin

Check that you are using version of SQL Server that is supported for use with FishEye. See Supported platforms.

An existing Java bug prevents connection with Java 1.6.0_29 and above (including Java 1.7.0). Read more about the issue and possible workarounds here.

Step 1. Install and create an SQL Server database

See the SQL Server Online resources (MSDN) for instructions on how to install and create an SQL Server database.

Please note the following FishEye/Crucible-specific information when installing and creating an SQL Server database:

  • The JDBC jtds drivers for SQLServer are bundled with Crucible. We do not support using the Microsoft distributed jdbc driver.
  • The FishEye database user must have permission to connect to the database and to create and populate tables.
  • Your database server must be configured to use the Latin1_General_CS_AS collation set.

On this page:

  Related pages:

Step 2. Configure FishEye/Crucible to use SQL Server and migrate data

In order to migrate to a different database backend, you must create a backup of your SQL data, configure the database and finally import the data via a backup restoration process. This can be done from either the Crucible administration console, which streamlines the process, or via the command line tool which Crucible provides. These two methods are described below. The following resources may be of interest:

Configuring and migrating via FishEye/Crucible's administration console

Before you begin:

To configure FishEye/Crucible to use SQL Server and migrate data using the administration console:

  1. Navigate to the Database page in FishEye/Crucible's Administration console.
  2. Configure FishEye/Crucible to use SQL Server, as follows:

Please ensure that you use a SQL Server user account to log into your database, not a Windows user account.

 

  1. Click Test Connection to verify that FishEye/Crucible can log in to the database (see 'Testing the Connection' screenshot below).
  2. Click Save & Migrate Data to start the migration process (see 'Migrating the Database' screenshot below). If the migration fails, FishEye/Crucible will not switch to the new database and will report the problems encountered.

Screenshots: Configuring FishEye/Crucible to use SQL Server and migrating data (click to view full-size images)

Configuring and migrating via the command line

To configure FishEye/Crucible to use SQL Server and migrate data using the command line:

  1. Create a backup of the sql data from the FishEye/Crucible instance. Information on how to create a backup can be found at Backing up and restoring FishEye data \ Backing up and restoring Crucible data
  2. Run the following command from the bin directory in FISHEYE_INST:

    $ ./fisheyectl.sh restore --sql \
            --file /path/to/backup.zip \
            --dbtype sqlserver2008 \
            --jdbcurl "jdbc:jtds:sqlserver://hostname:port;databaseName=dbName;" \
            --username crucible \
            --password password
    
  3. When the import is complete, FishEye/Crucible can be started and will use SQLServer.