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

SQL Anywhere 12.0.1 » SQL Anywhere Server - Database Administration » Database configuration » SQL Anywhere environment variables


Unix and Mac OS X environment variables

Once SQL Anywhere is installed, each user must set some environment variables for the system to locate and run SQL Anywhere applications. The SQL Anywhere installer creates two files, and sa_config.csh, for this purpose. These files are installed in $SQLANY12/bin32 and $SQLANY12/bin64. Each file sets all needed user environment variables.

As the names imply, one file is designed to work under Bourne shell (sh) and its derivatives (such as ksh or bash). The other file is designed to work under C-shell (csh) and its derivatives (such as tcsh).

Some statements are commented out in each of these batch files. The system administrator may want to edit these files and remove comments, depending on the configuration of their system.

To run a SQL Anywhere application, you have several choices:

  1. If you add the environment variables from the sa_config files to your system environment, you can run applications by launching them from a GUI, such as X window server, or by typing the application name in a terminal window.

  2. In a terminal window, if you source one of the sa_config files, you can run the application by typing its name. See Unix and Mac OS X files.

  3. $SQLANY12/bin32s and $SQLANY12/bin64s contain scripts with the same names as SQL Anywhere applications. These scripts set the appropriate environment variables before launching the application. You can run the application by running the corresponding script. You do not have to source an sa_config file before you run these scripts.

 Setting environment variables for the Finder on Mac OS X