Database environment variables

With Lycia, you can work with several databases including Informix, Oracle, SQL Server, etc.

Applications connecting to a database use a database driver that, in its turn, uses a database client software. The database client software usually needs specific configuration that is accomplished by setting the necessary environment variables. Database environment variables define information such as installation directory of the client software and localization settings.

 

This chapter describes basic environment variables used and/or required for database connection.

When setting values for general environment variables for Windows OS, you can use both Windows and Unix syntax - %VARIABLE% and $VARIABLE.

CLIENT_LOCALE

Specifies the language, territory, and code set that the client application uses in I/O operations, end user formats, and processing ESQL statements:

CLIENT_LOCALE = fr_ca.8859-1

Possible values and their meaning:

<language>_<territory>.<code_set>@modifier

DBDATE

Specifies how dates are displayed on the client side:

DBDATE=MDY4/ (default)

Possible values and their meaning:

D and M for day and month

Y2 and Y4 for year and year precision

- . /0 for separators

DBDELIMITER

Specifies the symbol that separates loaded and unloaded files in the LOAD and UNLOAD statements:

DBDELIMITER=|

Possible values and their meaning:

any character except for {0-9, a-f, A-F, \}

DB_LOCALE

Specifies the Informix database locale, which the Informix database server uses to process locale-sensitive data:

DB_LOCALE = fr_ca.8859-1

Possible values and their meaning:

<language>_<territory>.<code_set>@modifier

FGLDBPATH

Specifies the paths for directories that contain the DB-Schema files.

DB_SCHEMA = /home/informix/workdir/projects/debugger

You can provide several paths, using a colon (:) separator (Linux/UNIX) or a semicolon (;) (Windows).

Possible values and their meaning:

<path>

INFORMIXDIR

Specifies the directory that contains sub-directories in which your Informix® product files are installed:

INFORMIXDIR = /opt/IBM/informix

Possible values and their meaning:

<directory_path>

INFORMIXPASS

Specifies the password valid on Informix database server.

INFORMIXPASS = password-123

Possible values and their meaning:

{any set of symbols and/or characters}

INFORMIXSERVER

Specifies the default database server to which an explicit or implicit connection is made by an SQL API client, the DB-Access utility, or another IBM® Informix® product:

export INFORMIXSERVER = dbserver_main

Possible values and their meaning:

{dbservername}

INFORMIXSQLHOSTS

Stores the path to the SQLHOSTS.STD file, which, in turn, stores connectivity information for the Informix® DB Server.

INFORMIXSQLHOSTS = /opt/IBM/informix/etc/

By default, the SQLHOSTS.STD file is located in the following directories:

$INFORMIXDIR/etc/
%INFORMIXDIR%\etc\

LOGNAME

Specifies the user name valid on Informix database server:

LOGNAME=informix

Possible values and their meaning:

{string}

LYCIA_DB_DRIVER

Specifies the default database driver that will be used at runtime:

LYCIA_DB_DRIVER = informix (default)

Possible values and their meaning:

{informix, odbc, oracle}

LYCIA_DRIVER_PATH

Specifies the path to search for Lycia libraries:

LYCIA_DRIVER_PATH=%LYCIA_DIR%\lib (default)
LYCIA_DRIVER_PATH=$LYCIA_DIR/lib (default)

Possible values and their meaning:

<path to folder>

ODBCINI

Specifies the full path to the the odbc.ini file:

ODBCINI = /etc/odbc.ini

Possible values and their meaning:

<file_path>

ODBC_DSN

Specifies the base ODBC connection string for the database connection:

ODBC_DSN=DSN=mysql;USER=informix;Password=123456;Database=dbname

Possible values and their meaning:

{DSN name}

ORACLE_HOME

Specifies the directory, where your Oracle® product is installed:

ORACLE_HOME = C:\ORACLE\instantclient_ver._No

Possible values and their meaning:

<directory_path>

ORACLE_SID

Specifies the default server instance for current connection:

ORACLE_SID = querix_ora

Possible values and their meaning:

{server_instance}

QX_LOAD_ENTIRE_SCHEMA

Controls the type of DB-Schema file loading.

QX_LOAD_ENTIRE_SCHEMA = false

Possible values and their meaning:

{true, false}

If set to false (default), the Schema file is loaded using the ‘lazy loading’. If set to true, the compiler loads the entire DB-Schema.

The lazy loading of DB-Schema is a type of parsing, during which the compiler parses the Schema until the required entity is found. After that, the parsing stops, and if it is then resumed, the schema is parsed further from where the previous parsing has stopped.

QX_USE_DB_SCHEMA_FILE

Controls whether the compiler should search for DB-Schema at compilation.

QX_USE_DB_SCHEMA_FILE = true

Possible values and their meaning:

{true, false}

If true (default), the compiler will search for the DB-Schema first, then try to connect to DB server if the file was not found.

If false, this variable forces a connection to the database instead of loading the DB-Schema file at compilation.

QXTRANS

Specifies path to the directory which contains dbtrans file on UNIX:

QXTRANS=$ORACLE_HOME/sqldeveloper/ide

The dbtrans configuration file contains mappings from database names used in 4GL code (for example, DATABASE <dbname>) to an Oracle® user logon string.

Possible values and their meaning:

<directory_path>

TNS_ADMIN

Specifies the directory containing the Oracle Net Services configuration files:

TNS_ADMIN = $ORACLE_HOME/network/admin

Possible values and their meaning:

<directory_path>

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.