16.10.2015 Views

Getting Started with IBM Data Studio for DB2

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 3 – Maintaining the database 135<br />

Figure 3.88 – Specifying how to complete the roll <strong>for</strong>ward operation<br />

5. Click Run to roll <strong>for</strong>ward the database and complete the roll <strong>for</strong>ward operation.<br />

6. Close the editor be<strong>for</strong>e you start the next task.<br />

3.6 Other maintenance tasks<br />

In addition to what we discussed so far, <strong>Data</strong> <strong>Studio</strong> provides additional options to per<strong>for</strong>m<br />

more database maintenance operations:<br />

<br />

<br />

<br />

<br />

Recovering a database: Recovery is a combination of restoring followed by a roll<br />

<strong>for</strong>ward. You can specify a point in time or end of logs, and <strong>DB2</strong> restores the database<br />

<strong>with</strong> appropriate backup image (depending on the specified time and the history file),<br />

and then does a roll <strong>for</strong>ward on that database to the specified time. This can be<br />

per<strong>for</strong>med using <strong>Data</strong> <strong>Studio</strong> by launching the appropriate utility by right-clicking the<br />

database, and selecting Back Up and Restore -> Recover.<br />

Completing a roll <strong>for</strong>ward recovery: This option completes a roll <strong>for</strong>ward recovery by<br />

stopping the roll <strong>for</strong>ward of log records, rolling back incomplete transactions, and<br />

turning off the roll <strong>for</strong>ward pending state. Users regain access to the database or table<br />

spaces that are rolled <strong>for</strong>ward. As explained in Section 3.5.3, <strong>Data</strong> <strong>Studio</strong> provides a<br />

single step to initiate the roll <strong>for</strong>ward operation as well as complete it. However, it also<br />

provides another option to just complete the roll <strong>for</strong>ward explicitly if required. This can<br />

be per<strong>for</strong>med by launching the appropriate utility by right-clicking the database and<br />

selecting Back Up and Restore -> Complete Roll Forward.<br />

Canceling a roll <strong>for</strong>ward recovery: You might need to cancel a roll <strong>for</strong>ward operation<br />

that is in progress but cannot be completed. This can be per<strong>for</strong>med using <strong>Data</strong> <strong>Studio</strong><br />

by launching the appropriate utility by right-clicking the database and selecting Back<br />

Up and Restore -> Cancel Roll Forward.<br />

Configuring automatic maintenance: The database manager provides automatic<br />

maintenance capabilities <strong>for</strong> per<strong>for</strong>ming database backups, keeping statistics current,

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

Saved successfully!

Ooh no, something went wrong!