Doc downloads (PDF, HTML & XML)
[Crucible Knowledge Base]
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.
Check that you are using version of SQL Server that is supported for use with Fisheye. See Supported platforms.
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:
db_owner
role. (See SQL Server Startup Errors for details.)Your database should be configured to use snapshot mode for the transaction isolation level. To enable snapshot mode, run:
ALTER DATABASE crucible SET READ_COMMITTED_SNAPSHOT ON;
See this and this Microsoft MSDN articles for more information.
Note that it is preferable to run the above command after stopping Fisheye/Crucible (and with no other applications connected to the SQL Server database), especially if you find that the alter
statement does not complete quickly.
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:
Before you begin:
If your database is hosted on a SQL Server cluster, you must include the instance name in the JDBC URL wit the following syntax:
For Fisheye 4.7.0 or earlier:
jdbc:jtds:sqlserver://hostname:port;databaseName=dbName;instance=instance_name;
For Fisheye 4.7.1 and later:
jdbc:sqlserver://hostname:port;databaseName=dbName;instance=instance_name;
To configure Fisheye/Crucible to use SQL Server and migrate data using the administration console:
Complete the appropriate fields, replacing the URL (host, port and database name), User Name and Password as required, using the same connection details as used when creating the SQL Server database in Step 1 above.
NOTE: The default SQL server instance listens on port 1433. If your instance is not the default, use the port number that is associated with your particular instance.
e.g.
URL: jdbc:sqlserver://localhost:1433;databaseName=dbName;
Screenshots: Configuring Fisheye/Crucible to use SQL Server and migrating data (click to view full-size images)
To configure Fisheye/Crucible to use SQL Server and migrate data using the command line:
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 dataRun the following command from the <FishEye installation directory>/bin
directory:
For Fisheye 4.7.0 or earlier:
$ ./fisheyectl.sh restore --sql \ --file /path/to/backup.zip \ --dbtype sqlserver2012 \ --jdbcurl "jdbc:jtds:sqlserver://hostname:port;databaseName=dbName;" \ --username crucible \ --password password
For Fisheye 4.7.1 and later:
$ ./fisheyectl.sh restore --sql \ --file /path/to/backup.zip \ --dbtype sqlserver2012 \ --jdbcurl "jdbc:sqlserver://hostname:port;databaseName=dbName;" \ --username crucible \ --password password