Close a Database (dbClose)
The dbClose
command closes the database so that applications can no longer connect to it.
ttGridAdmin dbClose name [-nowait | -wait [timeout]]
Options
The dbClose
command has the options:
Option | Description |
---|---|
|
Name of the database to close. |
|
The command initiates a state change that is recorded in the active management instance of the grid. The The In a large grid, it is not typical or generally advisable to use |
Examples
This example closes a database without waiting for the elements to be closed on all instances, then checks status (after the database was successfully closed):
% ttGridAdmin dbClose database1 Database database1 close started ... % ttGridAdmin dbStatus database1 Database database1 summary status as of Mon Nov 13 19:27:48 PST 2017 created,loaded-complete,closed Completely created elements: 4 (of 4) Completely loaded elements: 4 (of 4) Completely created replica sets: 2 (of 2) Completely loaded replica sets: 2 (of 2) Open elements: 0 (of 4)
Notes
-
After the command has completed, the database is still loaded but is closed to connections. Only the instance administrator can connect to a closed database.
-
If you run
dbClose
asynchronously (without waiting), you can use thedbStatus
command to see when the database is closed. -
The command does not close existing database connections. Any previously open connections must be terminated independently.
-
If a database has been closed with
dbClose
, attempting to close it again typically results in an error. However, if any element is in "close failed" state, you can retrydbClose
. Doing so will change any element in "close failed" state to "opened" state, which will result in TimesTen Scaleout trying to close it again.