Unload a Database (dbUnload)
The dbUnload
command unloads the specified database from memory.
ttGridAdmin dbUnload name [-nowait | -wait [timeout]] [-force]
Note:
If a dbUnload
command is issued while a transaction is in progress, the command will not wait for the transaction to complete. Data may be lost as a result.
Options
The dbUnload
command has the options:
Option | Description |
---|---|
|
Name of the database to unload. |
|
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 |
|
If Important: Using this option will likely result in data loss. (Tipically, to prevent data loss, a database with |
Examples
This example unloads a database without waiting for the elements to be unloaded on all instances, then checks status (after the database was successfully unloaded).
% ttGridAdmin dbUnload database1 Database database1 unload started ... % ttGridAdmin dbStatus database1 Database database1 summary status as of Mon Nov 13 18:52:47 PST 2017 created,unloaded,closed Completely created elements: 4 (of 4) Completely loaded elements: 0 (of 4) Completely created replica sets: 0 (of 0) Completely loaded replica sets: 0 (of 0) Open elements: 0 (of 4)
Notes
-
Do not begin any transactions after issuing a
dbUnload
command. -
All connections to the database must be closed.
-
The database must be closed.
-
If you run
dbUnload
asynchronously (without waiting), you can use thedbStatus
command to see when the database is loaded.