Database Deployment

The Database Deployment tab is used to configure the database mode and manage database images.

There are three databases internal to deviceWISE – the Master database, the Core database, and the User database.  During normal running of deviceWISE the Core database is the 'active' database being read from and written to.  The Master, Core, and User databases are of the same schema.

Modes of Database Deployment

There are two modes of Database Deployment:

  1. Development
  2. Deployment

The mechanism to switch from one mode to the other is by clicking the 'Toggle Mode' button on the Database Deployment page.  

Development Mode

The Core database is what is used during normal operations of deviceWISE including at deviceWISE initialization.  Changes made by users to the system are saved in the Core database.  At deviceWISE initialization the Master database plays no role while in Development Mode.  Also during initialization any entries in the User database are copied to the Core database, overwriting only those entries.

Deployment Mode

It is often important to be able to return the system to a state of known stability if modifications were made to the system that are no longer wanted, and putting the system in Deployment Mode provides this capability. As with Development Mode, when in Deployment Mode the Core database is what is used during normal operations of deviceWISE.  Unlike Development Mode, however, the Core database is overwritten by the Master database during deviceWISE initialization when in Deployment Mode.  Any previous changes made by users to the system that were saved in the Core database are lost.  Also as with Development Mode, during initialization any entries in the User database are copied to the Core database, overwriting only those entries. 

The system should be put into Deployment mode at a point in time when it is determined that the system is in a stable and desirable state.  This state will be reinitialized on every system startup while the system remains in Deployment mode. 

Creating a Master Database

The 'Create Master DB' button allows you to create a Master database.  The newly-created Master database will be a snapshot copy of the Core database.  CAUTION:  if a Master database already exists this operation will overwrite the existing Master database, thereby losing all information in the existing Master database.

Exporting the Core Database

The 'Export' button allows you to export the Core database in the form of a .db file to the location of your choosing.

Related topics

Write Master DB