Appendix A: Server Utility Reference
dhdaemon
The dhdaemon executable image starts the ODBC server and enables network access from clients:
- On UNIX, dhdaemon is the only way to start the server process.
- On Windows NT, dhdaemon is an alternative to starting the server process as a service. This alternative allows options not available through starting the server as a service, which can be useful for using the debugging implementations.
Syntax
dhdaemon [ option [ option ... ] ] { start | stop | status }
option ::
-c
| -e server name
| -s service name
| -q
Arguments
-cOn Windows NT, starts the server as a console application. This approach allows you to use debugging tools and allows user-level environment variables (such as TPESQLDBG) to affect the dhserver process. (When started as a service, the dhserver process only sees system environment variables.) The -c option is applicable only to Windows NT, and required there to start the server from the command line.
-e server nameThe name of the executable to use for the ODBC Server process. For example, use the -e option to specify the sample implementation executable demo as the ODBC Server process:
$ dhdaemon -e ~dharma/bin/dhdemo start
-s service nameThe name of a network service in the services file. If the dhdaemon command does not include the -s option, the default is sqlnw.
-qStarts the dhdaemon process in "quiet mode", which displays fewer messages.
startStarts the dhdaemon process.
stopStops the dhdaemon process.
statusDisplays the status of the process and any child processes it has spawned. For example:
$ dhdaemon status
Dharma/dhdaemon Version 6.20.1000
Dharma Systems Inc (C) 1988-99.
Dharma Computers Pvt Ltd (C) 1988-99.
Daemon version: Jun 18 1999 18:18:18
running since: 6/19/99 13:51:27 on isis
Working directory: /u11/v5_work_sdk/dbp.dbs
SQL-Server version: /u11/v5_work_sdk/bin/demo
Nr of servers started: 5
running: 0
crashed: 0