Understanding DB2: Learning Visually with Examples
暫譯: 理解 DB2:透過範例視覺學習

Raul F. Chong, Clara Liu, Sylvia F. Qi, Dwaine R. Snow

  • 出版商: Prentice Hall
  • 出版日期: 2005-02-04
  • 售價: $2,710
  • 貴賓價: 9.5$2,575
  • 語言: 英文
  • 頁數: 928
  • 裝訂: Hardcover
  • ISBN: 0131859161
  • ISBN-13: 9780131859166
  • 已過版

買這商品的人也買了...

相關主題

商品描述

Description:

The Easy, Visual Guide to IBM DB2 V8.2

IBM DB2 Universal Database™ V8.2 for Linux®, UNIX®, and Windows® is a flexible, scalable, cost-effective, and easy-to-use enterprise database. Now, one book makes DB2 even easier. Understanding DB2 teaches DB2 V8.2 visually, step by step, with dozens of examples and case studies drawn from the authors' unsurpassed experience as DB2 consultants at IBM.

Understanding DB2 doesn't just present the big picture. It thoroughly introduces every DB2 concept, procedure, and tool you'll need to get results as an administrator, user, or developer. You'll find authoritative coverage of installation, configuration, objects, database instances, storage, connectivity, security, performance, backup and recovery, SQL fundamentals, and much more. Virtually every new concept is explained with screenshots, diagrams, or tables, all designed to help you learn faster and remember more.

For those preparing for certification, this book also contains over a hundred sample questions crafted by the authors to reflect the content and format of the IBM DB2 UDB Database Administration Certification exams, with answers and detailed explanations.

Coverage includes

  • Understanding the DB2 product family, DB2 commands, and the DB2 environment
  • Configuring client and server connectivity: walkthroughs of four typical scenarios
  • Managing DB2 storage: partitions, tablespaces, buffer pools, and more
  • Leveraging the power of SQL: queries, inserts, deletes, and updates
  • Implementing security: encryption, authentication, and authorization
  • Administering and maintaining data, from LOAD and EXPORT to backup/recovery
  • Providing high availability with online split mirroring and suspended I/O
  • DB2 architecture: process and memory models
  • Managing database performance and troubleshooting

 

Table of Contents:

Foreword xxi
Preface xxiii
Acknowledgments xxvii
About the Authors xxix

Chapter 1 Introduction to DB2 UDB 1

1.1 A Brief History of DB2 1

1.2 DB2 software and the IBM E-Business On-Demand Model 4

1.3 DB2 UDB Editions 5

1.4 DB2 UDB Clients 11

1.5 "Try and Buy" Versions 13

1.6 Host Connectivity 13

1.7 Federated Support 14

1.8 Replication Support 14

1.9 IBM DB2 Information Integrator 15

1.10 Special Package Offerings for Developers 15

1.11 DB2 Syntax Diagram Conventions 17

1.12 Case Study 18

1.13 Summary 20

1.14 Review Questions 21

Chapter 2 DB2 at a Glance: The Big Picture 23

2.1 SQL Statements and DB2 Commands 24

2.2 DB2 Tools Overview 27

2.3 The DB2 Environment 29

2.4 Federation 42

2.5 Case Study: The DB2 Environment 44

2.6 Database Partitioning Feature 45

2.7 Case Study: DB2 with DPF Environment 61

2.8 Summary 66

2.9 Review Questions 67

Chapter 3 Installing DB2 71

3.1 DB2 Installation: The Big Picture 71

3.2 Required User IDs and Groups 72

3.3 Installing DB2 Using the DB2 Setup Wizard 77

3.4 Silent Install Using a Response File 92

3.5 Installing DB2 Manually (Linux/UNIX Only) 96

3.6 Installing a DB2 License 97

3.7 Installing DB2 in a DPF Environment 99

3.8 Installing DB2 FixPaks 100

3.9 Case Study 102

3.10 Summary 104

3.11 Review Questions 105

Chapter 4 Using the DB2 Tools 107

4.1 DB2 Tools: The Big Picture 107

4.2 The Command Line Tools 108

4.3 Development Tools 126

4.4 General Administration Tools 129

4.5 Information Tools 134

4.6 Monitoring Tools 136

4.7 Setup Tools 141

4.8 Other Tools 142

4.9 Tool Settings 146

4.10 Case Study 147

4.11 Summary 150

4.12 Review Questions 150

Chapter 5 Understanding the DB2 Environment, DB2 Instances, and Databases 153

5.1 The DB2 Environment, DB2 Instances, and Databases: The Big Picture 153

5.2 The DB2 Environment 154

5.3 The DB2 Instance 160

5.4 The Database Administration Server 177

5.5 Configuring a Database 178

5.6 Instance and Database Design Considerations 185

5.7 Case Study 186

5.8 Summary 188

5.9 Review Questions 189

Chapter 6 Configuring Client and Server Connectivity 193

6.1 Client and Server Connectivity: The Big Picture 193

6.2 The DB2 Directories 195

6.3 Supported Connectivity Scenarios 205

6.4 Configuring Database Connections Using the Configuration Assistant 220

6.5 Case Study 238

6.6 Summary 239

6.7 Review Questions 241

Chapter 7 Working with Database Objects 243

7.1 DB2 Database Objects: The Big Picture 243

7.2 Databases 246

7.3 Partition Groups 251

7.4 Table Spaces 252

7.5 Buffer Pools 254

7.6 Schemas 254

7.7 Data Types 256

7.8 Tables 262

7.9 Indexes 285

7.10 Multidimensional Clustering Tables and Block Indexes 291

7.11 Views 295

7.12 Packages 301

7.13 Triggers 301

7.14 Stored Procedures 303

7.15 User-Defined Functions 306

7.16 Sequences 308

7.17 Case Study 309

7.18 Summary 312

7.19 Review Questions 312

Chapter 8 The DB2 Storage Model 317

8.1 The DB2 Storage Model: The Big Picture 317

8.2 Databases: Logical and Physical Storage of Your Data 319

8.3 Database Partition Groups 327

8.4 Table Spaces 331

8.5 Buffer Pools 354

8.6 Case Study 358

8.7 Summary 360

8.8 Review Questions 360

Chapter 9 Leveraging the Power of SQL 365

9.1 Querying DB2 Data 365

9.2 Modifying DB2 Data 379

9.3 Selecting from UPDATE, DELETE, and INSERT 380

9.4 The MERGE Statement 382

9.5 Recursive SQL 383

9.6 The UNION, INTERSECT, and EXCEPT Operators 384

9.7 Case Study 387

9.8 Summary 390

9.9 Review Questions 390

Chapter 10 Implementing Security 397

10.1 DB2 Security Model: The Big Picture 397

10.2 Authentication 398

10.3 Data Encryption 411

10.4 Administrative Authorities 411

10.5 Database Object Privileges 417

10.6 Authority and Privilege Metadata 427

10.7 Windows Domain Considerations 432

10.8 Case Study 434

10.9 Summary 436

10.10 Review Questions 436

Chapter 11 Understanding Concurrency and Locking 439

11.1 DB2 Locking and Concurrency: The Big Picture 439

11.2 Concurrency and Locking Scenarios 440

11.3 DB2 Isolation Levels 443

11.4 Changing Isolation Levels 449

11.5 DB2 Locking 455

11.6 Diagnosing Lock Problems 465

11.7 Techniques to Avoid Locking 479

11.8 Case Study 480

11.9 Summary 481

11.10 Review Questions 482

Chapter 12 Maintaining Data 485

12.1 DB2 Data Movement Utilities: The Big Picture 485

12.2 Data Movement File Formats 486

12.3 The DB2 EXPORT Utility 488

12.4 The DB2 IMPORT Utility 496

12.5 The DB2 LOAD Utility 502

12.6 The db2move Utility 522

12.7 The db2relocatedb Utility 523

12.8 Generating Data Definition Language 524

12.9 DB2 Maintenance Utilities 526

12.10 Case Study 531

12.11 Summary 533

12.12 Review Questions 533

Chapter 13 Developing Database Backup and Recovery Solutions 537

13.1 Database Recovery Concepts 537

13.2 DB2 Transaction Logs 540

13.3 Recovery Terminology 551

13.4 Performing Database and Table Space Backups 552

13.5 Database and Table Space Recovery Using the RESTORE DATABASE Command 558

13.6 Database and Table Space Roll Forward 563

13.7 Recovering a Dropped Table 567

13.8 The Recovery History File 568

13.9 Database Recovery Using the RECOVER DATABASE Command 569

13.10 High Availability Through Online Split Mirroring and Suspended I/O Support 570

13.11 High Availability Disaster Recovery 574

13.12 Using DB2 Tools to Inspect the Health of Your Database 582

13.13 Case Study 584

13.14 Summary 587

13.15 Review Questions 588

Chapter 14 The DB2 Process Model 593

14.1 The DB2 Process Model: The Big Picture 593

14.2 The DB2 Engine Dispatchable Units 596

14.3 Tuning the Number of EDUs 608

14.4 Monitoring and Tuning the DB2 Agents 609

14.5 The Connection Concentrator 611

14.6 Commonly Seen DB2 Executables 612

14.7 Additional Services/Processes on Windows 612

14.8 Case Study 613

14.9 Summary 615

14.10 Review Questions 616

Chapter 15 The DB2 Memory Model 619

15.1 DB2 Memory Allocation: The Big Picture 619

15.2 Instance-Level Shared Memory 621

15.3 Database-Level Shared Memory 623

15.4 Application-Level Shared Memory 627

15.5 Agent-Level Private Memory 629

15.6 The Memory Model 632

15.7 32-Bit Memory Model Considerations 632

15.8 64-Bit Memory Model Considerations 634

15.9 AWE Support with Windows 634

15.10 Case Study 635

15.11 Summary 639

15.12 Review Questions 639

Chapter 16 Database Performance Considerations 643

16.1 Performance Fundamentals 644

16.2 System/Server Configuration 644

16.3 The DB2 Configuration Advisor 646

16.4 Configuring the DB2 Instance 654

16.5 Configuring Your Databases 657

16.6 Lack of Proper Maintenance 663

16.7 The Snapshot Monitor 666

16.8 Event Monitors 669

16.9 The DB2 Optimizer 672

16.10 The Explain Tool and Explain Tables 673

16.11 Using Visual Explain to Examine Access Plans 675

16.12 Case Study 676

16.13 Summary 680

16.14 Review Questions 680

Chapter 17 Diagnosing Problems 683

17.1 Problem Diagnosis: The Big Picture 683

17.2 How Does DB2 Report Problems? 684

17.3 DB2 Error Message Description 686

17.4 DB2 First-Failure Data Capture 687

17.5 Receiving E-mail Notifications 692

17.6 The db2support Tool 693

17.7 The DB2 Trace Facility 694

17.8 Searching for Known Problems 694

17.9 Case Study 695

17.10 Summary 696

17.11 Review Questions 696

Appendix A Solutions to the Review Questions 699

Appendix B Use of Uppercase Versus Lowercase in DB2 721

Appendix C IBM Servers 723

Appendix D Using the DB2 System Catalog Tables 725

Appendix E Setting Up Database Connectivity for DB2 UDB for z/OS and DB2 UDB for iSeries 739

Appendix F Diagnosing DB2 Connectivity Problems 771

Resources 779
Glossary 785
Index 851
About the CD-ROM 897

商品描述(中文翻譯)

描述:

《IBM DB2 V8.2 的簡易視覺指南》

IBM DB2 Universal Database™ V8.2 適用於 Linux®、UNIX® 和 Windows®,是一個靈活、可擴展、具成本效益且易於使用的企業資料庫。現在,有一本書讓 DB2 更加簡單。《Understanding DB2》以視覺化的方式逐步教學 DB2 V8.2,並提供數十個範例和案例研究,這些內容來自作者在 IBM 擔任 DB2 顧問的豐富經驗。

《Understanding DB2》不僅僅呈現全貌。它徹底介紹了作為管理員、使用者或開發者所需的每一個 DB2 概念、程序和工具。您將找到有關安裝、配置、物件、資料庫實例、儲存、連接性、安全性、性能、備份和恢復、SQL 基礎知識等的權威性內容。幾乎每一個新概念都配有截圖、圖表或表格,旨在幫助您更快學習並記住更多。

對於準備認證的人士,本書還包含了超過一百道由作者精心設計的範例題,這些題目反映了 IBM DB2 UDB 資料庫管理認證考試的內容和格式,並附有答案和詳細解釋。

內容涵蓋:

- 了解 DB2 產品系列、DB2 命令和 DB2 環境
- 配置客戶端和伺服器連接:四個典型場景的逐步說明
- 管理 DB2 儲存:分區、表空間、緩衝池等
- 利用 SQL 的強大功能:查詢、插入、刪除和更新
- 實施安全性:加密、身份驗證和授權
- 管理和維護資料,從 LOAD 和 EXPORT 到備份/恢復
- 提供高可用性,使用在線分割鏡像和暫停 I/O
- DB2 架構:過程和記憶體模型
- 管理資料庫性能和故障排除

目錄:

前言 xxi
序言 xxiii
致謝 xxvii
關於作者 xxix
第一章 DB2 UDB 簡介 1
1.1 DB2 的簡史 1
1.2 DB2 軟體與 IBM E-Business On-Demand 模型 4
1.3 DB2 UDB 版本 5
1.4 DB2 UDB 客戶端 11
1.5 '試用與購買' 版本 13
1.6 主機連接 13
1.7 聯邦支援 14
1.8 複製支援 14
1.9 IBM DB2 資訊整合器 15
1.10 開發者的特別套件優惠 15
1.11 DB2 語法圖示慣例 17
1.12 案例研究 18
1.13 總結 20
1.14 複習問題 21
第二章 DB2 一覽:全貌 23
2.1 SQL 語句與 DB2 命令 24
2.2 DB2 工具概述 27
2.3 DB2 環境 29
2.4 聯邦 42
2.5 案例研究:DB2 環境 44
2.6 資料庫分區功能 45
2.7 案例研究:DPF 環境中的 DB2 61
2.8 總結 66
2.9 複習問題 67
第三章 安裝 DB2 71
3.1 DB2 安裝:全貌 71
3.2 所需的使用者 ID 和群組 72
3.3 使用 DB2 安裝精靈安裝 DB2 77
3.4 使用回應檔進行靜默安裝 92
3.5 手動安裝 DB2(僅限 Linux/UNIX) 96
3.6 安裝 DB2 授權 97
3.7 在 DPF 環境中安裝 DB2 99
3.8 安裝 DB2 修補包 100
3.9 案例研究 102
3.10 總結 104
3.11 複習問題 105
第四章 使用 DB2 工具 107
4.1 DB2 工具:全貌 107
4.2 命令行工具 108
4.3 開發工具 126
4.4 一般管理工具 129
4.5 資訊工具 134
4.6 監控工具 136
4.7 設定工具 141
4.8 其他工具 142
4.9 工具設定 146
4.10 案例研究 147
4.11 總結 150
4.12 複習問題 150
第五章 了解 DB2 環境、DB2 實例和資料庫 153
5.1 DB2 環境、DB2 實例和資料庫:全貌 153
5.2 DB2 環境 154
5.3 DB2 實例 160
5.4 資料庫管理伺服器 177
5.5 配置資料庫 178
5.6 實例和資料庫設計考量 185
5.7 案例研究 186
5.8 總結 188
5.9 複習問題 189
第六章 配置客戶端和伺服器連接 193
6.1 客戶端和伺服器連接:全貌 193
6.2 DB2 目錄 195
6.3 支援的連接場景 205
6.4 使用配置助理配置資料庫連接 220
6.5 案例研究 238
6.6 總結 239
6.7 複習問題 241
第七章 操作資料庫物件 243
7.1 DB2 資料庫物件:全貌 243
7.2 資料庫 246
7.3 分區群組 251
7.4 表空間 252
7.5 緩衝池 254
7.6 架構 254
7.7 資料類型 256
7.8 表格 262
7.9 索引 285
7.10 多維聚類表和區塊索引 291
7.11 視圖 295
7.12 套件 301
7.13 觸發器 301
7.14 儲存過程 303
7.15 使用者定義函數 306
7.16 序列 308
7.17 案例研究 309
7.18 總結 312
7.19 複習問題 312
第八章 DB2 儲存模型 317
8.1 DB2 儲存模型:全貌 317
8.2 資料庫:資料的邏輯和物理儲存 319
8.3 資料庫分區群組 327
8.4 表空間 331
8.5 緩衝池 354
8.6 案例研究 358
8.7 總結 360
8.8 複習問題 360
第九章 利用 SQL 的強大功能 365
9.1 查詢 DB2 資料 365
9.2 修改 DB2 資料 379
9.3 從 UPDATE、DELETE 和 INSERT 中選擇 380
9.4 MERGE 語句 382
9.5 遞迴 SQL 383
9.6 UNION、INTERSECT 和 EXCEPT 運算子 384
9.7 案例研究 387
9.8 總結 390
9.9 複習問題 390
第十章 實施安全性 397
10.1 DB2 安全模型:全貌 397
10.2 身份驗證 398
10.3 資料加密 411
10.4 管理權限 411
10.5 資料庫物件權限 417
10.6 權限和權限元數據 427