Home > Ketura > Full Documentation > Using Microsoft SQL Server 2005 Instead of Ketura’s Built-In Database

Using Microsoft SQL Server 2005 Instead of Ketura’s Built-In Database

Ketura stores all of its data in its own, built-in, database. The built-in database is perfectly suitable for the majority of Ketura deployments and, in most cases, there is therefore no need to consider using an alternative. However, an organization might still wish to use an alternative database if, for example:

To address these concerns, Ketura can be configured to work with Microsoft SQL Server 2005 (SP2 or higher) or Microsoft SQL Server 2000 (SP4 or higher).

Caution

Configuring Ketura to work with a third-party database system is an advanced operation, and should only be attempted by someone thoroughly familiar with system and database administration. Araxis recommends that most customers use Ketura’s built-in database.

Please note that Araxis is not able to support customers in administering third-party databases.

Prerequisites

Assuming that you have the necessary expertise, you should verify the following before attempting to migrate a Ketura system to use SQL Server:

Step-by-step instructions

1. Download and install the Microsoft JDBC driver

Ketura uses a JDBC driver to communicate with a database. Microsoft provides a suitable JDBC driver for SQL Server.

To download the Microsoft JDBC driver:
To make the Microsoft JDBC driver available to Ketura:

2. Create the new SQL Server Ketura database

Before the database backup that you have made can be imported into SQL Server, a minimal SQL Server Ketura database must first be created. Ketura comes with a command-line utility to do this.

To create the new SQL Server database on Windows:
To create the new SQL Server database on Mac OS X:

3. Add a new SQL Server database login for Ketura to use

For security reasons, it is undesirable for Ketura to use a highly privileged account when accessing a SQL Server DBMS; there may be other databases in the DBMS and Ketura has no need to access them. Consequently, it is necessary to create a user account in the SQL Server DBMS for Ketura to use.

Background information about adding SQL Server logins is available in the articles How to: Create a SQL Server (2005) Login This link is to an external website and How to Add a SQL Server (2000) Login This link is to an external website on the Microsoft website.

To create a new SQL Server login for use by Ketura:

4. Backup your existing Ketura database

To migrate the database to SQL Server, a backup of the existing Ketura database must first be created. This backup will be used to populate the new SQL Server database, so it is essential that it be absolutely up to date.

To backup the Ketura database in preparation for the migration:

5. Stop the Ketura server

Before continuing, the Ketura server must be stopped.

To stop the Ketura service on Windows:
To stop the Ketura server on Mac OS X:

6. Configure Ketura to use the new SQL Server database

Ketura now needs to be told to use the newly created database in SQL Server.

To configure Ketura to use SQL Server as its database:

7. Configure service dependencies (Windows only)

To ensure that Ketura is able to communicate with the SQL Server database when it is first started (for example, following a reboot), it is necessary to make certain that the SQL Server DBMS is started before the Ketura service. If the DBMS is running on a separate machine from Ketura, a system administrator will have to enforce this manually, by checking that the database server is available before attempting to start Ketura. However, if a single machine is hosting Ketura and its SQL Server database, it is possible to configure the Ketura service to be dependent upon the SQL Server service, thus ensuring the correct startup order.

To make the Ketura service dependent upon the SQL Server service (only if Ketura and SQL Server are on the same machine):

8. Start the Ketura server

Ketura must now be started. All being well, it will now use the SQL Server database that you created.

To start the Ketura service on Windows:
To start the Ketura server on Mac OS X:

9. Restore the database backup

The final step in the migration is to restore the database from the backup you made at the start.

To restore the database:

Backing up a Ketura SQL Server database

The built-in Ketura backup and restore mechanism works with all the databases that Ketura supports. However, if you are using a SQL Server database with Ketura, you may wish to rely upon your SQL Server backup procedures for day-to-day backup and disable the daily built-in Ketura backup. This will be especially advisable if Ketura is installed on a separate machine from the SQL Server DBMS; in such situations, the built-in Ketura backup mechanism is likely to be very inefficient as it will have to transfer the entire contents of your Ketura database over the network each time it runs.

Upgrading a Ketura system that uses a SQL Server database

Please see Upgrading an existing Ketura installation configured to use SQL Server for important information about upgrading a Ketura system that has been configured to use a SQL Server database.