Académique Documents
Professionnel Documents
Culture Documents
Contents
Contents
9 Database Backup and Restoration ..........................................................................................9-1
9.1 Database Backup Tool...................................................................................................................................9-2 9.1.1 Backup Policy ......................................................................................................................................9-2 9.1.2 Backup Medium...................................................................................................................................9-2 9.1.3 Backup Path .........................................................................................................................................9-2 9.1.4 Starting the Database Backup Tool ......................................................................................................9-3 9.2 Manual Backup .............................................................................................................................................9-5 9.2.1 Manual Backup Flow Chart .................................................................................................................9-5 9.2.2 Configuring a Database Set..................................................................................................................9-7 9.2.3 Configuring a Backup Device..............................................................................................................9-8 9.2.4 Backing Up the DMS Database Manually ...........................................................................................9-9 9.3 Automatic Backup.........................................................................................................................................9-9 9.3.1 Automatic Backup Flow Chart.............................................................................................................9-9 9.3.2 Configuring an Automatic Backup Policy ......................................................................................... 9-11 9.3.3 Configuring an Automatic Backup Task ............................................................................................9-12 9.4 Restoring the Database................................................................................................................................9-12 9.4.1 Restoring Database Flow Chart .........................................................................................................9-12 9.4.2 Stopping DMS Service Processes ......................................................................................................9-13 9.4.3 Restoring Backup Date ......................................................................................................................9-14 9.4.4 Restarting DMS Service Processes ....................................................................................................9-14 9.5 Query the Backup and Restoration Logs.....................................................................................................9-15 9.6 Viewing Database Details ...........................................................................................................................9-15
Issue 02 (2007-10-15)
Figures
Figures
Figure 9-1 Database backup tool interface .........................................................................................................9-4 Figure 9-2 Adding servers ..................................................................................................................................9-4 Figure 9-3 User login interface...........................................................................................................................9-5 Figure 9-4 Manual backup flow chart ................................................................................................................9-6 Figure 9-5 Configuring the database set.............................................................................................................9-7 Figure 9-6 Modifying the backup device ...........................................................................................................9-8 Figure 9-7 Automatic backup flow...................................................................................................................9-10 Figure 9-8 Adding the automatic backup policy............................................................................................... 9-11 Figure 9-9 Restoring database flow chart.........................................................................................................9-13 Figure 9-10 Viewing database details...............................................................................................................9-16
ii
Issue 02 (2007-10-15)
9
Section
9.1 Database Backup Tool 9.2 Manual Backup 9.3 Automatic Backup 9.4 Restoring the Database 9.5 Query the Backup and Restoration Logs 9.6 Viewing Database Details
Issue 02 (2007-10-15)
9-1
Viewing Information You can view the general information of the DMS database and logs operated by the backup tool.
Configuring Parameters You can set the parameters for the backup, including the Backup Device, Database Set and Auto Backup Policy.
Performing Tasks You can back up and recover the database, including Manual Backup, Auto Backup Task and Restore Database.
The database backup tool is provided as a stand-alone component. This function is supported only when this component is selected during the installation of the DMS.
Every day: The system backs up data every day. Every week: The system backs up data on a specific day every week. Every month: The system backs up data on a specific day every month.
Disk Tape
9-2
Issue 02 (2007-10-15)
Precaution
Before starting the database backup tool, note the following:
z z z
The DMS server runs normally. The backup process of the database runs normally. The client of the database backup tool communicates well with the DMS server.
Procedure
The database backup tool allows only one user to log in to the server database. Step 1 The mode of starting the Windows OS and the Solaris OS are as follows respectively.
z
In Windows, choose Program > iManager N2000 > N2000 Database Backup Tool in the Start menu. Or double-click the icon shown in Figure 9-1. to start the database backup tool, as
Issue 02 (2007-10-15)
9-3
Step 2 Choose System > Add Server and configure the DMS server name and IP address as shown in Figure 9-2. Click Add. Figure 9-2 Adding servers
Step 3 On the navigation tree of the server, choose the server to be logged in to. Step 4 In the Access Password textbox, enter the login password of the DMS database user N2000user, as shown in Figure 9-3.
9-4
Issue 02 (2007-10-15)
For details about the database user N2000user, refer to Chapter 2 "User Management."
Issue 02 (2007-10-15)
9-5
No
End
For details of starting the database backup tool and configuring the database server, see 9.1.5 "Starting the Database Backup Tool xe "Starting the Database Backup Tool" ."
9-6
Issue 02 (2007-10-15)
Precaution
The first character of the name of the database set cannot be the underline "_". The names of the database sets must be different from each other.
Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose Configuration > Database Set. Or in the navigation tree, choose the Configuration > Database Set node. Step 3 Click Add and enter the configuration page, as shown in Figure 9-5. Figure 9-5 Configuring the database set
Step 4 In the Database Set Name textbox, enter the name of the database set to be created. Step 5 In the Database For Selection textbox, select the database to be contained and then click .
Clicking
Issue 02 (2007-10-15)
9-7
Step 6 Click Finish, the Prompt dialog box appears. Click OK to complete the creation of the database set. ----End
Precaution
When you use the tape for backup, you need to initialize the tape.
Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose Configuration > Backup Device. Or in the navigation tree, choose the Configuration > Backup Device node. The configuration page is displayed. Step 3 Select the backup device (here takes disk as an example) and click Modify. The Modify backup device interface is displayed, as shown in Figure 9-6. Figure 9-6 Modifying the backup device
The backup device of the tape type can be used only after the device is initialized.
Step 4 In the Modify backup device box, you can modify the path to back up the device. If Enable Remote Copy Function is selected, you set the path for the remote copy function.
9-8
Issue 02 (2007-10-15)
Step 5 Click Modify. In the Prompt dialog box that appears, click OK to complete the modification of the backup path.
The method to modify the tape path is the same with that of the backup path.
----End
Prerequisites
z z
Precaution
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose Operation > Manual Backup. Or in the navigation tree, choose the Operation > Manual Backup node.The Select Database Set To Backup box is displayed. Step 3 Choose the database set to be backed up. Click Next. Step 4 Choose the device to be backed up.
z z
If the backup device is disk, click Next to perform Step 5. If the backup device is tape, perform Step 6.
backup: In this mode, the data is backed up from database to data files. bcpout: In this mode, the database user tables are copied to a data files. This mode cannot be used as a general database backup.
Issue 02 (2007-10-15)
9-9
No
End
For details of starting the database backup tool and configuring the database server, see section 9.1.4 "Starting the Database Backup Tool xe "Starting the Database Backup Tool" ." For details of configuring the database set, see section 9.2.2 "Configuring a Database Set." For details of configuring the backup device, see section 9.2.3 "Configuring a Backup Device xe "Configuring a Backup Device" ."
9-10
Issue 02 (2007-10-15)
Precaution
The first character of the name of the scheduled backup policy cannot be underline "_". The names of the database sets must be different from each other.
Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose Configuration > Auto Backup Policy. Or in the navigation tree, choose the Configuration > Auto Backup Policy node. Click Add. The configuration page is displayed, as shown in Figure 9-8. Figure 9-8 Adding the automatic backup policy
Step 3 Enter the name of the backup policy in the Time Policy Name textbox. Step 4 Choose the time period and start time of the backup policy. Step 5 Click Finish. In the Prompt dialog box that appears, click OK to complete the creation of the backup policy. ----End
Issue 02 (2007-10-15)
9-11
Precaution
Only after configuring the database set and scheduled backup policy, you are allowed to configure the scheduled backup task.
Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose Operation > Auto Backup Task. Or in the navigation tree, choose the Operation > Auto Backup Task node. Click Add. The configuration page is displayed. Step 3 Select the database set to be backed up. Click Next. Step 4 Select the scheduled backup policy. Click Next. Step 5 Click Finish. In the Prompt dialog box that appears, click OK to complete scheduled backup task. After completing the configuration of the backup task, the system backs up the data according to the scheduled backup policy. ----End
9-12
Issue 02 (2007-10-15)
End
Precaution
z z
Stopping the process affects the DMS function; therefore, random operations are prohibited. Do not stop the database backup process. Otherwise, you cannot back up and restore the database.
Procedure
Step 1 Log in to the DMS client. Step 2 Choose System > Stop Server. Step 3 Click OK to stop the DMS service process. Step 4 After stopping the DMS service process, select the Process tab and records of Database Backup Process. Step 5 Right-click the page. Select Start Process to start the database backup process. ----End
Issue 02 (2007-10-15)
9-13
Precaution
Before the backup data is restored, the following conditions need to be satisfied:
z z
The backup data file exists in the specified path of the backup device. Before restoring the database, ensure that no connection to the database exists, which is set up by the DMS users and other users. Otherwise, the database cannot be restored.
Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose Operation > Restore Database. Or in the navigation tree, choose the Operation > Restore Database node .The configuration window is displayed. Step 3 Select the backup device, Click Next. Step 4 Select the restoration type. Click Next. Step 5 Select the database set to restore. Click Next. Step 6 Select the database to restore. Click Next. Step 7 Select the backup files. Click Restore to restore the data from the specified path. ----End
Procedure
Step 1 Log in to the DMS client. Step 2 Choose System > Start Server and start the DMS server. ----End
9-14
Issue 02 (2007-10-15)
Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose View > Log . Or in the navigation tree, choose the View > Log node,and configure the parameters in the Check log box.
z z
Log type: Choose the type to be viewed, including All, Backup and Restore Time range: View the time field to be viewed, including Recent Month, Recent Three Months, Recent Six Months and Recent Year.
Step 3 Click Next. The information of the logs that satisfy the previous conditions is displayed in the Operation Log box. ----End
Procedure
Step 1 Start the database backup tool and log in to the server node to be configured. Step 2 Choose View > Database. Or in the navigation tree, choose the View > Database node,The browse page is displayed as shown in Figure 9-10.
Issue 02 (2007-10-15)
9-15
Step 3 In the All Database box, select the database to be viewed. In the Description box, view the details of the database. ----End
9-16
Issue 02 (2007-10-15)