Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » SQL Anywhere Server - Database Administration » SQL Anywhere Environment Variables » Introduction to SQL Anywhere environment variables

SACHARSET environment variable Next Page

SADIAGDIR environment variable


Specifies the location of the SQL Anywhere diagnostic directory.

Syntax

SADIAGDIR=diagnostic-information-directory

Default
Operating systemDefault location
Windows%ALLUSERSPROFILE%\Application Data\SQL Anywhere 10\diagnostics
Unix$HOME/.sqlanywhere10/diagnostics
NetWareSYS:\SYSTEM
Windows CEDirectory 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 CE), 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 CE, 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 CE.

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/.sqlanywhere10/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