Managing NerveCenter
-
Managing the Database - 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:
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:
SerializeDB
from the NerveCenter program group in the Start
menu.
./serializedb &
. Then press Enter
.
The SerializeDB window is displayed.
Import file to database
radio button.The Format radio buttons are not available because they do not apply to importing data.
*.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
.
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.
When the data has been imported, SerializeDB displays a message letting you know that the data transfer was successful.
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:
serializedb -F
backupfile.asc -O FileToDB -R
or|C "DSN=
datasourcename;UID=
userID;PWD=
password"
Replace backupfile.asc with the name of the file you want SerializeDB to import. If your current working directory is not the directory in which backupfile.asc is located, specify the path with the name of the file.
-R
to have SerializeDB get the data source name, user ID, and password from the registry. You can use -R
with a Microsoft SQL Server database or a Microsoft Access database.
-C "DSN=
datasourcename;UID=userID;PWD=password" instead of -R
only if you are restoring a Microsoft SQL Server database. Replace datasourcename with the existing data source name, userID with the appropriate SQL Server user ID, and password with the corresponding password.
serializedb -F
backupfile.asc -O FileToDB -R -D nervecenter.ncdb
Replace backupfile.asc with the name of the file you want SerializeDB to import. If your current working directory is not the directory in which backupfile.asc is located, specify the path with the name of the file.
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 |