RMsis requires it's own independent database. This section contains instructions for setting up all the supported versions of Databases.

A word before you start your DataBase Configuration ...

  • Please make sure that you create Unicode compliant database, so that you will not need an explicit migration anytime in future.
  • The suggested MySQL example in next section, creates a UTF-8 compliant Database.
  • Regarding SQL Server, please refer to the Atlassian Guide for suggestions on configuring the character encoding.



MySQL

  1. Open a unix terminal or a windows command prompt whichever is relevant to you. And login to MySQL database using the command line client that is shipped with the MySQL. Use "root" (administrator) credentials to login.
  2. Create a database to store RMSis data. Use any name for it. Example - "rmsis".
  3. Create a database user and assign permissions to this user to access the database created above.
  4. Exit MySQL
$ mysql -uroot -ppassword
mysql> create database rmsis character set utf8 ;
mysql> grant all on rmsis.* to 'username'@'hostname' identified by 'new_user_password';
mysql> exit;

Note (known issue) :


PostgreSQL

  1. Create a database user which RMsis will connect as (e.g. rmsisdbuser). This user will be used to configure RMsis's connection to this database in subsequent steps.
  2. Create a database for RMsis (e.g. rmsis) with Unicode collation.


    CREATE DATABASE rmsis WITH ENCODING 'UNICODE';

    Or from the command-line:

    $ createdb -E UNICODE rmsis


  3. Ensure that the user has permissions to connect to the database, and to create and write to tables in the database. 

Microsoft SQL Server

  1. Create a database for RMsis (e.g. rmsis). Note that the collation type must be case insensitive, e.g.: 'SQL_Latin1_General_CP437_CI_AI' is case insensitive. If it is using your server default, check the collation type of your server.
  2. Create a database user which RMsis will connect as (e.g. rmsisuser). Note that rmsisuser should not be the database owner, but should be in the db_owner role.
  3. Ensure that the user has permission to connect to the database, and create and populate tables in the default schema.
  4. Ensure that TCP/IP is enabled on SQL Server and listening on the correct port (the port is 1433 for the default instance of SQL Server). Read the Microsoft documentation for information on how to enable a network protocol (TCP/IP) and how to configure SQL server to listen on a specific port.
  5. Ensure that SQL Server is operating in the appropriate authentication mode. By default, SQL Server operates in 'Windows Authentication Mode'. However, if user is not associated with a trusted SQL connection, i.e. 'Microsoft SQL Server, Error: 18452' is received during RMsis startup, it is required to change the authentication mode to 'Mixed Authentication Mode'. Read the Microsoft documentation on authentication modes and changing the authentication mode to 'Mixed Authentication Mode'
  6. Turn off the SET NOCOUNT option. Open SQL Server Management Studio and navigate to Tools -> Options -> Query Execution -> SQL Server -> Advanced. The following screenshot displays the configuration panel for this setting in MSSQL Server 2005/2008. Ensure that the SET NOCOUNT option is not selected:
  7. You will also need to access the Server > Properties > Connections > Default Connections properties box and clear the no count option.


Microsoft SQL Server Authentication Modes

  1. Windows Authentication mode
  2. Mixed Authentication mode (SQL Server and Windows Authentication mode)

Connecting RMsis to named instances in SQL Server

When using named instances in SQL Server, the following configuration can be used in RMsis Database Configuration (after performing the actions specified in above sections) :

Securely connect RMsis to a SQL Server database (Connecting to SQL Server database using SSL)

Connecting RMsis to Oracle

Supported Version(s)

Currently, RMsis supports Oracle 11G and later versions.

Database Setup using Oracle

Database Configuration for Oracle

AttributeValue
Database Type
select "Oracle"
Hostname
Enter hostname or the IP address of the database
Port TCP port number of the database server (by default 1521 for Oracle)
Database Enter the name of the database/SID to connect (The Oracle "System Identifier". The default value for most Oracle servers is 'ORCL'. If you are using the Oracle Express Edition, this will be 'XE'.)
Username Enter username to access the database
Password Password to access the database.