16.10.2015 Views

Getting Started with DB2 Express-C

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 11 – Backup and Recovery 201<br />

various database parameters related to logging. For each type of logging, we discussed<br />

when and why it is used, and how to set it up from the Control Center.<br />

We also looked at how to run backup and restore activities using the <strong>DB2</strong> command line,<br />

including an in-depth look at the three types of database restore: crash, version and rollforward.<br />

11.10 Exercises<br />

Although <strong>DB2</strong> is able to automate several database maintenance activities, sometimes you<br />

want to customize when certain activities occur. In this exercise, you will create a<br />

customized nightly backup schedule for the EXPRESS database.<br />

Procedure<br />

1. From the Control Center object tree, navigate to Control Center -> All Databases.<br />

Right-click on the EXPRESS database and select the Backup item. This launches<br />

the Backup Wizard.<br />

2. The Introduction page of the wizard summarizes the current state of the database<br />

including the time of the last backup and logging method. Click the Next button to<br />

move to the next page of the wizard.<br />

3. On the Image page of the wizard, select the destination of the backup image. You<br />

will typically select a different physical drive than where the existing database is<br />

stored. For now, create a new folder in the file system called C:\db2backup, and<br />

specify that folder as the backup location. In the wizard, select the File System<br />

item from the Media Type drop-down list. Click the Add button, select the folder<br />

you just created, and then click the OK button. Click the Next button to move to the<br />

next page of the wizard.<br />

4. You can explore the Options and Performance pages, but the default options are<br />

usually sufficient because <strong>DB2</strong> automatically performs the database backup in the<br />

most optimal way. Navigate to the Schedule page when you are finished exploring.<br />

5. On Schedule page, if the scheduler has not yet been enabled, choose to enable it<br />

now. Select the system to create the tools catalog on and create a new tools<br />

catalog. Specify a schema for the tools catalog and choose to create it in the<br />

existing EXPRESS database. The tools catalog holds metadata about all the<br />

scheduled tasks. Click the OK button to continue. Click the Next button to move to<br />

the next page of the wizard once the tools catalog has been created.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!