Managing NerveCenter - Managing the Database - Restoring the Database -
Backing up the Database      Transferring Data between Databases

Restoring the Database

If you have established a regular backup schedule and make sure you back up the database when you are doing anything that might affect the database (such as an upgrade), you'll be able to restore your data with minimal loss if you have a database problem. Here are some typical examples of situations when you'll want to restore the database:

For more information, see:

Restoring the Database Using the SerializeDB Application

SerializeDB imports the data in your database from a text file. When you use the SerializeDB GUI on Windows, you can have SerializeDB import the data from a NerveCenter flat file database or a serialized ASCII file.

 
  To restore the database using the SerializeDB application:

  1. Do one of the following to start SerializeDB:
  2. Select the Import file to database radio button.

    The Format radio buttons are not available because they do not apply to importing data.

  3. In the File field, specify the *.asc (UNIX and Windows) or *.ncdb file (Windows) from which you want to import data.

    You can also use the Browse button to select a file. In the Select File dialog box, select the file; then select Open.

  4. Select Start.

    On UNIX, SerializeDB starts importing the data.

    On Windows, you must specify the data source for the database. The Select Data Source window is displayed.

    seldatasrc6

    1. Select the Machine Data Source tab.
    2. Select the data source for your NerveCenter database. Then select OK.

When the data has been imported, SerializeDB displays a message letting you know that the data transfer was successful.

Restoring the Database from the Command Line

When you run SerializeDB from the command line, SerializeDB imports the data into your database from a serialized ASCII file. You can issue SerializeDB commands from a script. For example, on UNIX, you can write a script called restorencdb that shuts down the server, imports the data from backup.asc, and restarts the server.

 
  To restore the database using the command line:

  1. Enter one of the following:
  2. Check to make sure the data was imported.

If the SerializeDB does not import the data successfully, check the Event Log on Windows or the system log on UNIX for error messages.


Backing up the Database Transferring Data between Databases
29 July 2003