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.

6<br />

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

2.1.1 <strong>Data</strong>base Administration perspective..................................................................68<br />

2.2 Working <strong>with</strong> your <strong>DB2</strong> databases .............................................................................70<br />

2.2.1 Creating a new database.....................................................................................70<br />

2.2.2 Connect to a database in the Administration Explorer ........................................73<br />

2.2.3 Adding an existing database to the Administration Explorer...............................74<br />

2.2.4 Reusing connections <strong>with</strong> connection profiles.....................................................76<br />

2.2.5 Organizing databases <strong>with</strong> instances..................................................................76<br />

2.2.6 Stopping and starting instances ..........................................................................76<br />

2.3 Navigating the database.............................................................................................77<br />

2.3.1 Filtering the object list editor................................................................................77<br />

2.3.2 Exploring objects <strong>with</strong> the Show menu................................................................78<br />

2.4 Creating database objects..........................................................................................79<br />

2.4.1 Creating schemas................................................................................................79<br />

2.4.2 Creating tables.....................................................................................................81<br />

2.4.3 Creating indexes..................................................................................................83<br />

2.4.4 Creating views .....................................................................................................86<br />

2.4.5 Deploying multiple changes <strong>with</strong> a change plan .................................................86<br />

2.4.6 Altering tables ......................................................................................................89<br />

2.5 Managing database security ......................................................................................90<br />

2.5.1 Creating users .....................................................................................................90<br />

2.5.2 Assigning privileges.............................................................................................92<br />

2.6 View relationships between objects ...........................................................................93<br />

2.6.1 Analyze impact ....................................................................................................93<br />

2.6.2 Generating an entity-relationship diagram ..........................................................94<br />

2.7 Working <strong>with</strong> existing tables.......................................................................................96<br />

2.7.1 Editing table data.................................................................................................97<br />

2.7.2 Generate DDL......................................................................................................98<br />

2.8 Exercises..................................................................................................................100<br />

2.9 Summary ..................................................................................................................100<br />

2.10 Review questions ...................................................................................................100<br />

Chapter 3 – Maintaining the database...............................................................................103<br />

3.1 <strong>Data</strong>base maintenance: The big picture ..................................................................103<br />

3.2 Managing storage and memory <strong>for</strong> better per<strong>for</strong>mance...........................................104<br />

3.2.1 Creating and managing table spaces................................................................105<br />

3.2.2 Creating and managing buffer pools .................................................................112<br />

3.2.3 Reorganizing data..............................................................................................114<br />

3.2.4 Gathering statistics ............................................................................................116<br />

3.3 Moving data..............................................................................................................119

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

Saved successfully!

Ooh no, something went wrong!