Timesten - ttDaemonAdmin Utility

> Database > (TimesTen|TT) (In-Memory Database|IMDB)

1 - About

If you have installed the TimesTen Server, the daemon starts automatically when the TimesTen daemon is started otherwise it can be started and stopped using the ttDaemonAdmin utility

The daemon writes a timestend.pid file into the directory from which the daemon was started. By default, this is install_dir/info. This file contains the daemon's process ID. When you stop the daemon, this ID is used to determine the process to terminate. When the process terminates, the timestend.pid file is removed.

Advertising

3 - How to

3.1 - Start

To start the daemon manually, use the utility command:

% ttDaemonAdmin -start

If a PID file exist, you can use the “force” option to start it:

% ttDaemonAdmin -start -force

3.2 - Stop

The TimesTen main daemon process manages all databases under the same TimesTen installation, be sure to disconnect from all databases before running the above command.

If the main daemon process is stopped while there are active agent processes, connections and transactions, the database is invalidated and will require a recovery procedure upon restart.

To stop the daemon manually, use the utility command:

% ttdaemonadmin -stop -force

where:

  • the option “-stop” indicates to kill the process indicated by the PID file even if ttDaemonAdmin cannot communicate with the daemon.

4 - Example

[[email protected] bin]$ ./ttDaemonAdmin -stop
TimesTen Daemon stopped.
[[email protected] bin]$ ./ttStatus
ttStatus: Could not connect to the TimesTen daemon.
If the TimesTen daemon is not running, please start it
by running "ttDaemonAdmin -start".
[[email protected] bin]$ ./ttDaemonAdmin -start
TimesTen Daemon startup OK.
Advertising