Processing Order

Configuration file options override environment variables. Command-line options override both environment variables and configuration file options.

The parameter processing order is as follows:

  • The operating system login name (user ID) is used as the lowest level default for the database user ID.
  • Environment variables (DBUSERID, DBPASSWD, DBDATABASE, and DBHOSTPW).
  • Command-line options -d (for full tracing), -v (for verbose messages), -t (for creating a DATABridge Client trace file) and -T (for forcing the client to start a new trace file), and -f (for specifying a configuration file other than the default dbdridge.cfg). These options are processed in the order in which they appear on the command line.
  • Parameters specified in the configuration file. You can specify the configuration file via the -f option. If you do not specify a configuration file name via the -f option, dbutility tries to open the default configuration file (dbridge.cfg in the config subdirectory of the data source's working directory); if the file does not exist, the DATABridge Client uses the default values for each configuration file parameter. The absence of a configuration file is not treated as an error only when running the command-line client. If you use the service or daemon, the absence of a configuration file named dbridge.cfg is treated as an error.
  • All remaining command-line options. In the final pass, a command-line option with a configuration file equivalent overrides the configuration file entry.