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.

Contents 7<br />

6.3 <strong>DB2</strong> storage model .............................................................................................. 112<br />

6.3.1 Pages and Extents ........................................................................................ 113<br />

6.3.2 Buffer pools ................................................................................................... 113<br />

6.3.3 Table spaces ................................................................................................ 115<br />

6.4 Summary .............................................................................................................. 120<br />

6.5 Exercises ............................................................................................................. 120<br />

Chapter 7 – <strong>DB2</strong> Client Connectivity ........................................................................... 125<br />

7.1 <strong>DB2</strong> Directories .................................................................................................... 125<br />

7.1.1 System database directory ........................................................................... 125<br />

7.1.2 Local database directory ............................................................................... 126<br />

7.1.3 Node directory .............................................................................................. 126<br />

7.1.4 DCS directory ............................................................................................... 126<br />

7.2 Configuration Assistant (deprecated) .................................................................. 126<br />

7.2.1 Setup required at the server ......................................................................... 127<br />

7.2.2 Setup required at the client ........................................................................... 130<br />

7.2.3 Creating Client and Server Profiles .............................................................. 133<br />

7.3 Summary .............................................................................................................. 137<br />

7.4 Exercises ............................................................................................................. 137<br />

Chapter 8 – Working <strong>with</strong> Database Objects ............................................................. 141<br />

8.1 Schemas .............................................................................................................. 141<br />

8.2 Public synonyms (or aliases) ............................................................................... 142<br />

8.3 Tables .................................................................................................................. 143<br />

8.3.1 Data Types.................................................................................................... 143<br />

8.3.2 Identity Columns ........................................................................................... 148<br />

8.3.3 Sequence objects ......................................................................................... 148<br />

8.3.4 System catalog tables ................................................................................... 149<br />

8.3.5 Declared global temporary tables (DGTTs) .................................................. 150<br />

8.3.6 Create Global Temporary Tables (CGTTs) .................................................. 152<br />

8.4 Views ................................................................................................................... 152<br />

8.5 Indexes ................................................................................................................ 153<br />

8.5.1 Design Advisor .............................................................................................. 153<br />

8.6 Referential integrity .............................................................................................. 155<br />

8.7 Schema Evolution ................................................................................................ 156<br />

8.8 Summary .............................................................................................................. 157<br />

8.9 Exercises ............................................................................................................. 157<br />

Chapter 9 – Data Movement Utilities ........................................................................... 161<br />

9.1 EXPORT utility ..................................................................................................... 162<br />

9.2 IMPORT utility ...................................................................................................... 163<br />

9.3 LOAD utility .......................................................................................................... 164<br />

9.4 The db2move utility .............................................................................................. 166<br />

9.5 The db2look utility ................................................................................................ 166<br />

9.6 Summary .............................................................................................................. 169<br />

9.7 Exercises ............................................................................................................. 169<br />

Chapter 10 – Database Security .................................................................................. 173<br />

10.1 Authentication .................................................................................................... 174

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

Saved successfully!

Ooh no, something went wrong!