17.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 125<br />

Note:<br />

You can also use the Load utility to load the data into the table. When you use the Load<br />

utility, the results are almost identical, but the Load utility can be faster <strong>for</strong> large<br />

quantities of data. When you run the Load utility, you complete a multi-step process,<br />

whereas the Import utility can process most data in a single step. To learn more about<br />

the Load utility, refer to the documentation in the <strong>DB2</strong> in<strong>for</strong>mation center:<br />

http://pic.dhe.ibm.com/infocenter/db2luw/v10r1/topic/com.ibm.db2.luw.admin.dm.doc/doc<br />

/c0004587.html<br />

After you understand the Load process, you can try to run the process on your<br />

databases <strong>with</strong> <strong>Data</strong> <strong>Studio</strong>.<br />

3.4 Planning <strong>for</strong> recovery: Configuring <strong>DB2</strong> logging<br />

The <strong>DB2</strong> logging facility logs any SQL statement updates done on the database. These<br />

logs help in recovering a database state in case of any system failure. <strong>DB2</strong> logging can be<br />

categorized as follows:<br />

<br />

<br />

Circular logging: the changes are logged only <strong>for</strong> those transactions that are not<br />

committed. With this kind of logging, you can recover the data from the latest backup<br />

only. This is the default when you create a database.<br />

Archive logging: all the changes including the committed ones are logged here. With<br />

this kind of logging, a roll <strong>for</strong>ward can be done after restoring from a backup. The roll<br />

<strong>for</strong>ward process applies all the transaction that occurred since the last backup. In<br />

addition, archive logging is a must <strong>for</strong> online backup operations.<br />

Note:<br />

To learn more about database logging and the logging options, see this <strong>DB2</strong> in<strong>for</strong>mation<br />

center topic:<br />

http://pic.dhe.ibm.com/infocenter/db2luw/v10r1/topic/com.ibm.db2.luw.admin.ha.doc/doc/<br />

c0006073.html<br />

You can change the logging type by right-clicking the database and selecting Set Up and<br />

Configure -> Configure <strong>Data</strong>base Logging, as shown in Figure 3.25 below.

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

Saved successfully!

Ooh no, something went wrong!