Starting and Stopping the Daemon
Automatically Starting the TimesTen Daemon
You have two options for automatic management of the TimesTen daemon.
Choose only one of these options.
-
Automatically start and stop TimesTen daemon when the operating system boots and shuts down. See Using the setuproot Script to Automatically Start the TimesTen Daemon.
-
Automatically manage the TimesTen daemon using systemd. See Using systemd to Automatically Manage the TimesTen Daemon.
Note:
See Manually Starting and Stopping the Daemon for details on how to use the
ttDaemonAdmin
utility to manually start and stop the TimesTen daemon.
Using the setuproot Script to Automatically Start the TimesTen Daemon
If you run the setuproot
script for SysV, then the TimesTen
daemon is automatically started and stopped when the operating system boots and shuts down.
When you run the TimesTen daemon startup setuproot
script
(as root), this script installs the appropriate SysV initialization scripts for TimesTen
in the /etc/init.d
directory.
The following sections describe the differences between running the
setuproot
script for TimesTen Classic or TimesTen Scaleout:
Using the setuproot script for SysV on TimesTen Classic
You can find
the setuproot
script in the timesten_home/bin
directory. After the SysV
intialization scripts are installed, TimesTen is automatically started when the
operating system boots and automatically stopped on operating system shutdown.
When using SysV, run the setuproot
script as
follows:
cd $TIMESTEN_HOME/bin setuproot -installIn all other scenarios, the instance administrator uses the
ttDaemonAdmin
utility to manage the TimesTen daemon. See ttDaemonAdmin in the Oracle TimesTen In-Memory Database
Reference.
Using the setuproot script for SysV on TimesTen Scaleout
You can find the setuproot
script in the timesten_home/bin
directory of every
instance of the grid. After you run the setuproot
script, the
daemon is automatically started for each data instance as part of the operations for
the ttGridAdmin
dbOpen
or ttGridAdmin
modelApply
commands.
For TimesTen Scaleout, the directions on how to run the
setuproot
script are in the Setting Instances to Automatically
Start at System Startup section in the Oracle TimesTen In-Memory Database Scaleout User's
Guide.
Using systemd to Automatically Manage the TimesTen Daemon
For TimesTen Classic, the root user can set up systemd to use for automatic management (including starting and stopping) of the TimesTen daemon.
Once you setup and start systemd, you can no longer use the
ttDaemonAdmin
utility to manage the daemon. See
Using systemd to Manage
a TimesTen Service in Oracle TimesTen In-Memory Database
Installation, Migration, and Upgrade Guide for full details on installing, configuring,
and managing systemd.
Perform the following to setup systemd to automatically manage the TimesTen daemon:
Note:
These steps are an overview of what you must perform to use systemd. See About Creating an Instance on Linux/UNIX in Oracle TimesTen In-Memory Database Installation, Migration, and Upgrade Guide.
-
Create the TimesTen instance with systemd.
-
Modify the TimesTen service file.
-
As the root user, run the
timesten_home/bin/setuproot
utility script with the-install
-systemd
options. The setuproot script copies the systemd initialization scripts to the appropriate location. -
As the root user, run the systemd
systemctl start
command to start the TimesTen service.Note:
You can use the systemd
systemctl
commands to manually control systemd.
Once set up and started, systemd takes precedence over any SysV initialization scripts.
Manually Starting and Stopping the Daemon
By default, you can use the ttDaemonAdmin
utility to start and stop
the TimesTen daemon.
You must be the instance administrator to start and stop the TimesTen daemon
with the ttDaemonAdmin
utility.
Note:
See Automatically Starting the TimesTen Daemon for details on how to automatically start and stop the TimesTen daemon.
-
For TimesTen Classic, the instance administrator manually manages the TimesTen daemon. To manually start and stop the TimesTen main daemon, use the
ttDaemonAdmin
utility with the-start
or-stop
option. -
For TimesTen Scaleout, run the
ttDaemonAdmin
-start
or-stop
options within thettGridAdmin
instanceExec
command to manually start the daemon for a data instance.
For more information on ttDaemonAdmin
, see ttDaemonAdmin. For details on ttGridAdmin
instanceExec
, see Execute a Command or Script on Grid Instances
(instanceExec) in Oracle TimesTen In-Memory Database
Reference. See Automatically Starting the TimesTen Daemon for details on the setuproot
script.