17.10.2015 Views

Getting Started with IBM Data Studio for DB2

Create successful ePaper yourself

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

136 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>IBM</strong> <strong>Data</strong> <strong>Studio</strong> <strong>for</strong> <strong>DB2</strong><br />

and reorganizing tables and indexes as necessary. This can be configured using <strong>Data</strong><br />

<strong>Studio</strong> by launching the appropriate editor by right-clicking the database, and selecting<br />

the option Set Up and Configure -> Configure Automatic Maintenance.<br />

<br />

Configuring database or instance parameters: The database manager provides<br />

many parameters at the database level as well as database manager level that can be<br />

configured <strong>for</strong> specific behavior and tuning of a database or database manager. This<br />

can be achieved using <strong>Data</strong> <strong>Studio</strong> by launching the appropriate utility by right-clicking<br />

the database, and selecting Set Up and Configure -> Configure. This option is also<br />

available on the instance node in the Administration Explorer.<br />

3.7 Exercises<br />

To practice what you have learned in this chapter, try out the following exercises.<br />

1. Create a table space,Tb1. Now create a table,T1 and make sure it’s stored in table<br />

spaceTb1. Now create an index on theT1 table and store it in the default table space<br />

(USERSPACE1).<br />

2. Create a table spaceTb2 and check what privileges are available. Give all of the<br />

possible privileges to another user.<br />

3. Create an online backup of theGSDB database. Update some of the tables. Now<br />

restore the database and per<strong>for</strong>m a roll <strong>for</strong>ward until the end of the logs.<br />

3.8 Summary<br />

In this chapter, you were introduced to some <strong>DB2</strong> concepts such as table spaces, buffer<br />

pools, and logging. Using <strong>Data</strong> <strong>Studio</strong>, you learned how to create these objects, per<strong>for</strong>m<br />

REORG,RUNSTATS,BACKUP,RESTORE,RECOVER andROLLFORWARD operations. For<br />

more detail about these <strong>DB2</strong> concepts, refer to the ebook <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>DB2</strong><br />

Express-C.<br />

3.9 Review questions<br />

1. What are the three types of table spaces in <strong>DB2</strong> data servers?<br />

2. What are the file <strong>for</strong>mats supported <strong>for</strong> exporting data?<br />

3. Which file <strong>for</strong>mat allows you to create the table while exporting?<br />

4. Name the two different logging methods supported in <strong>DB2</strong> data servers.<br />

5. What two operations are combined to compose the Recover operation?<br />

6. A system-managed table space can have containers of the following type:<br />

A. Directory<br />

B. File<br />

C. Raw Device

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

Saved successfully!

Ooh no, something went wrong!