Environment Variables

The locations used by the NuoDB Admin Process and Storage Manager (SM) and Transaction Engine (TE) processes for installation, configuration, logging, and other files can be controlled by setting environment variables. Be aware that these variables must be set before the NuoDB Admin Process is started in order for them to have any effect.

The NuoDB Command (nuocmd) program also recognizes these environment variables, as well as a number of others.

NuoDB programs will determine a default value for the NUODB_HOME environment variable based on the location of the program. For example, if you invoke /local/packages/nuodb/bin/nuocmd then the NUODB_HOME environment variable will default to /local/packages/nuodb, if not otherwise set. This is true for all types of installation packages.

The following table provides information about NuoDB environment variables and their default values.

Variable Linux RPM
Linux DEB
Linux TAR
Windows ZIP
Windows EXE Content Description

NUODB_HOME

/opt/nuodb

None

%PROGRAM_FILES%\NuoDB (C:\Program Files\NuoDB)

Root directory for the NuoDB installation.

NUODB_CFGDIR

/etc/nuodb

$NUODB_HOME/var/etc

%ALLUSERSPROFILE%\NuoDB\etc (C:\ProgramData\NuoDB\etc)

Persistent configuration information such as security keys and configuration files.

NUODB_VARDIR

/var/opt/nuodb

$NUODB_HOME/var/opt

%ALLUSERSPROFILE%\NuoDB\var (C:\ProgramData\NuoDB\var)

Persistent data files such as sample archive directories.

NUODB_RUNDIR

/var/run/nuodb

$NUODB_HOME/var/run

%ALLUSERSPROFILE%\NuoDB\run (C:\ProgramData\NuoDB\run)

Non-persistent information such as process ID files.

NUODB_LOGDIR

/var/log/nuodb

$NUODB_HOME/var/log

%ALLUSERSPROFILE%\NuoDB (C:\ProgramData\NuoDB)

NuoDB log files.

NUODB_CRASHDIR

$NUODB_LOGDIR/crash

$NUODB_LOGDIR/crash

%NUODB_LOGDIR%\crash (C:\ProgramData\NuoDB\crash)

Crash reports for NuoDB system processes (not user-invoked processes such as nuosql).