ONEDB_ SQLHOSTS environment variable

The ONEDB_ SQLHOSTS environment variable specifies where the SQL client or the database server can find connectivity information.


1  setenv ONEDB_ SQLHOSTS pathname
pathname
The full path name of the connectivity information file.
UNIX: Default =$ONEDB_HOME/etc/sqlhosts
Windows server: Default = %ONEDB_HOME%\etc\sqlhosts.%ONEDB_SERVER%
For example, the following command overrides the default location and specifies that the mysqlhosts file is in the /work/envt directory:
setenv ONEDB_ SQLHOSTS /work/envt/mysqlhosts

Windows™ client: Windows: The ONEDB_ SQLHOSTS environment variable points to the computer whose registry contains the SQLHOSTS subkey. For example, the following command instructs the Windows client to look for connectivity information in the registry of a computer named arizona:

set ONEDB_ SQLHOSTS = \\arizona