SMA and LLA Guide : Creating and running SMA applications with Java : Configuring your environment for SMA use with Java
  
Configuring your environment for SMA use with Java
When using SMA with Java, your LD_LIBRARY_PATH or LIBPATH (Linux and UNIX) or PATH (Windows) environment variable must include the location of the SMA driver library.
Before you begin
It is assumed that you have a working installation of the solidDB® JDBC Driver.
About this task
The SMA driver library file is installed during the solidDB® installation. The following table lists the file names and their default installation locations for the most common platforms.
Platform
SMA driver library
Default installation location
Windows
ssolidsmaxx.dll
Note If you link to the SMA driver directly (without driver manager), you link to the solidsma.lib import library file that gives you access to the actual .dll library file.
Library:
<solidDB® installation directory>\bin
Import library:
<solidDB® installation directory>\lib
Linux
ssolidsmaxx.so
<solidDB® installation directory>/bin
Solaris
ssolidsmaxx.so
<solidDB® installation directory>/bin
HP-UX
ssolidsmaxx.so
<solidDB® installation directory>/bin
AIX
ssolidsmaxx.so
<solidDB® installation directory>/bin
xx is the version number of the driver library, for example, ssolidsma70.so.
Procedure
1 Add the location of the SMA driver library to the LD_LIBRARY_PATH or LIBPATH (Linux and UNIX) or PATH (Windows) environment variable.
In Linux and UNIX environments, use the following syntax:
export LD_LIBRARY_PATH=<path to SMA library>:$LD_LIBRARY_PATH
or in AIX environments:
export LIBPATH=<path to SMA library>:$LIBPATH
In Windows environments, use the following syntax:
set PATH=<path to SMA library>;%PATH%
2 Set up your database environment by creating a working directory, your solidDB® database, and user accounts.
For instructions, see Creating a new database in the solidDB® Administrator Guide.
Note The application and the SMA server processes must have identical file access permissions (database files, log files, and so on). The file access permissions are not checked at startup; subsequently, insufficient file access permissions may cause the SMA server to crash at a later point.
3 Configure solidDB® to meet your environment, performance, and operation needs.
Use the solid.ini configuration file to define basic configuration settings such as database file names and locations, database block size, and so on.
In normal setups, it is not necessary to modify the SMA-specific parameters in the [SharedMemoryAccess] section of the solid.ini file. The factory values are applicable to most use cases.
Do not set the Srv.ProcessMemoryLimit parameter when using SMA. If you need to limit the memory the SMA server uses, use the SharedMemoryAccess.MaxSharedMemorySize parameter.
If there is no configuration file, the factory values are used.
See also
Creating and running SMA applications with Java