Best Practices for Operating Systems

This page contains best practice recommendations for your Operating System hosting Oracle TimesTen.

Supported Operating Systems

Memory Kernel Parameters

The required kernel parameter settings vary between Operating Systems so please refer to the Oracle TimesTen In-Memory Database Installation Guide on how to set the appropriate parameters on your platform. Below is a guide for the most commonly used ones.

The above is only relevant for the Linux Operating System. For Solaris you need to create a project to manage shared memory resources as explained in the Installation Guide - Solaris prerequisites section. Other Operating Systems are discussed in the Installation Guide - Installation prerequisites section.

System wide resource use

Beware sometimes ulimit is set in the instance administrators "~/.bashrc" or "~/.bash_profile" file which can override what's set in /etc/security/limits.conf

MemoryLock

A best practice recommendation is to use MemoryLock=4 in the DSN attributes configured in your sys.odbc.ini file. This means that the shared memory segment used for your TimesTen database is not a candidate to be paged out by the operating system, it will be locked. Please see the Best Practice for Database Attributes for further information on setting MemoryLock

Semaphores

The kernel must be configured with sufficient semaphores to support the expected number of database connections plus all other semaphore usage within the system. Connections, a DSN attributre in your sys.odbc.ini file indicates the maximum number of user-specified concurrent connections to the database. TimesTen allocates one semaphore for each expected connection. If the number of connections exceeds the value of this attribute, TimesTen returns an error. Refer to the Installation Guide on how to set the appropriate SEM semaphore parameter based on your number of connections. Please see the Best Practice for Database Attributes for further information on setting connections.

OS TCP buffer windows

You should have your System Administrator look into configuring larger TCP send and receive buffer windows, particularly when you are using Replication. Please see the Best practice Guide for Replication for further advice in this area.