16.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.

114 <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 />

Figure 3.13 – Dropping a buffer pool<br />

If you have associated any table space <strong>with</strong> this buffer pool, <strong>Data</strong> <strong>Studio</strong> will prompt you to<br />

drop the impacted table space at the same time. The drop will fail unless you select the<br />

option to drop the impacted table space. Alternatively, you can alter the corresponding<br />

table space first to disassociate it from this buffer pool (you can associate it <strong>with</strong> the default<br />

or some other buffer pool) and then try dropping this buffer pool again.<br />

3.2.3 Reorganizing data<br />

Normally, data is written to memory in a sequential manner. However, frequent operations<br />

on the database objects can fragment the data, which may mean that data is stored nonsequentially<br />

and can increase the size of the table as the data spans multiple data pages.<br />

Fragmentation of the data may result in multiple I/O operations to fetch the same data that,<br />

<strong>with</strong>out fragmentation, would have taken only a single I/O operation. You should reorganize<br />

the tables and indexes to defragment the data, improving the I/O cost and, in some<br />

instances, reducing memory usage.<br />

To reorganize data:<br />

1. Open the Tables folder in the Administration Explorer and select a table from the<br />

object list editor.<br />

2. Open an editor to configure the reorganization operation by right-clicking the table<br />

and selecting Manage -> Reorg Table. Figure 3.14 shows the Reorg options <strong>for</strong> the<br />

ORDER_DETAILS table in the GOSALES schema.

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

Saved successfully!

Ooh no, something went wrong!