Contents Index Installation directory structure Environment variables

ASA Database Administration Guide
  File Locations and Installation Settings

How Adaptive Server Anywhere locates files


The client library and the database server need to locate files for two main purposes:

Examples of SQL statements that use file names include the following:

In some cases, Adaptive Server Anywhere uses a simple algorithm to locate files. In other cases, a more extensive search is carried out.

Simple file searching 

In many SQL statements (such as LOAD TABLE, or CREATE DATABASE), the file name is interpreted as relative to the current working directory of the database server.

Also, when a database server is started and a database file name (DatabaseFile (DBF) parameter) is supplied, the path is interpreted as relative to the current working directory.

Extensive file searching 

Adaptive Server Anywhere programs, including the database server and administration utilities, carry out a more extensive search for required files, such as DLLs or shared libraries. In these cases, Adaptive Server Anywhere programs look for files in the following order:

  1. Executable directory    Holds the program executable file.

  2. Related directories    Holds directories with the following paths relative to the program executable directory:

  3. Current working directory    When a program is started, it has a current working directory (the directory from which it is started). This directory is searched for required files.

  4. Location registry entry    When installing onto Windows, Adaptive Server Anywhere adds a LOCATION registry entry. The indicated directory is searched, followed by:

  5. System specific directories    This includes directories where common operating system files are held, such as the Windows directory and the Windows\system directory on Windows operating systems.

  6. CLASSPATH directories    For Java files, directories listed in the CLASSPATH environment variable are searched to locate files.

  7. PATH directories    Directories in the system path and the user's path are searched to locate files.


Contents Index Installation directory structure Environment variables