Setting Environment Variables 

So that the Database Manager can access the environment variables that it requires on the database server, you must create these explicitly using a DBMCLI command.

Setting actual environment variables using operating system commands is therefore not applicable.

If only local accesses are made to a Database Manager in a purely Windows-NT environment, you can use normal Windows NT environment variables.

Procedure

You can declare an environment variable or export it directly to the environment.

Even if you have stored multiple values for an environment variable <variable>, only one value is exported for this environment variable.
Example:
You have entered the following DBMCLI commands:
dbmcli ... dbm_configset -raw set_variable_<number1> <variable>=<value1>
dbmcli ... dbm_configset -raw set_variable_<number2> <variable>=<value2>

If
number1 < number2, the DBM Server exports only value <value1> for the environment variable <variable>, otherwise only value <value2>.

If one of the environment variables TEMP, TMP, ADINT, ADA_OPT, NSR_ENV, NSR_POOL, NSR_EXPIRE, or BSI_ENV has been stored both with
dbmcli ... dbm_configset -raw <variable> <value>
and
dbmcli ... dbm_configset -raw set_variable_<number> <variable>=<value2>
the environment variable <variable> is exported with the value <value>, before an external backup tool is called.

See also:

Database Manager CLI: SAP DB 7.4 ® Calling the Database Manager CLI ® DBM Server Command ® Configuration of the DBM-Server ® Setting a DBM Server Parameter