Load a Database into Memory (dbLoad)
The ttGridAdmin
dbLoad
command loads the specified database into memory. A database must be loaded and opened before it is used by applications.
ttGridAdmin dbLoad name [-nowait | -wait [timeout]]
Options
The dbLoad
command has the options:
Option | Description |
---|---|
|
Name of the database to load. |
|
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 loads a database without waiting for the elements to be loaded on all instances, then checks status (after the database was successfully loaded):
% ttGridAdmin dbLoad database1 Database database1 load started ... % ttGridAdmin dbStatus database1 Database database1 summary status as of Mon Nov 13 18:58:53 PST 2017 created,loaded,closed Completely created elements: 4 (of 4) Completely loaded elements: 4 (of 4) Completely created replica sets: 0 (of 0) Completely loaded replica sets: 0 (of 0) Open elements: 0 (of 4)
Notes
-
Before loading a database, it is advisable to run
dbStatus
with the-loadReadiness
option to confirm all replica sets can be loaded. -
After the command has completed, the database is loaded but closed. (Use
dbOpen
to open it.) -
It is not necessary to run
dbLoad
afterdbCreate
, becausedbCreate
loads the database automatically. -
If you run
dbLoad
asynchronously (without waiting), you can use thedbStatus
command to see when the database is loaded.