SADIAGDIR environment variable

Specifies the location of the SQL Anywhere diagnostic directory.

Syntax
SADIAGDIR=diagnostic-information-directory
Default
Operating system Default location
Windows %ALLUSERSPROFILE%\Application Data\SQL Anywhere 11\diagnostics
Unix $HOME/.sqlanywhere11/diagnostics
Windows Mobile Directory where the database server is running
Remarks

SQL Anywhere stores crash reports and feature statistics information in a diagnostic directory. The SADIAGDIR environment variable is used to determine the location of the diagnostic directory where SQL Anywhere writes crash reports.

If the directory specified by this environment variable does not exist, then the database server operates as though the environment variable is not set.

On Windows (except Windows Mobile), diagnostics are written to the first writable directory in the following list:

  1. The directory specified by the SADIAGDIR environment variable.
  2. The directory of the current executable.
  3. The current directory.
  4. The temporary directory. See SATMP environment variable and TMP, TEMPDIR, and TEMP environment variables.

On Windows Mobile, diagnostics are written to the first writable directory in the following list:

  1. The directory of the current executable.
  2. The current directory.
  3. The temporary directory. See Registry settings on Windows Mobile.

On Unix, diagnostics are written to the first writable directory in the following list:

  1. The directory specified by the SADIAGDIR environment variable.
  2. The directory specified by $HOME/.sqlanywhere11/diagnostics.
  3. The current directory.
  4. The temporary directory. See SATMP environment variable and TMP, TEMPDIR, and TEMP environment variables.
Note

On Unix, writing crash reports to the user's home directory is not recommended when the database or MobiLink server is running as a daemon, or the user is root/nobody. Because of this, the Unix install prompts you for a suitable location and sets the SADIAGDIR environment variable in the sa_config.sh and sa_config.csh files.

See also