GETTING STARTED with DB2 Express-C a Book for the Community by the Community
Total Page:16
File Type:pdf, Size:1020Kb
GETTING STARTED WITH DB2 Express-C A book for the community by the community RAUL CHONG, IAN HAKES, RAV AHUJA FOREWORD BY DR. ARVIND KRISHNA THIRD EDITION 4 Getting Started with DB2 Express-C Third Edition (June 2009) Third printing (October 2010) This edition has been updated for IBM® DB2® Express-C Version 9.7.2 for Linux®, UNIX® and Windows®. © Copyright IBM Corporation, 2007, 2010. All rights reserved. Contents About this book ............................................................................................................... 11 Notices and trademarks ............................................................................................... 11 Who should read this book? ........................................................................................ 12 How is this book structured? ........................................................................................ 12 A book for the community ............................................................................................ 13 Authors and Contributors ............................................................................................. 14 Acknowledgements ...................................................................................................... 14 Foreword ...................................................................................................................... 15 PART I – OVERVIEW AND SETUP ................................................................................. 17 Chapter 1 – What is DB2 Express-C? ........................................................................... 19 1.1 Free to develop, deploy, and distribute…no limits! ................................................ 20 1.2 Downloading DB2 Express-C ................................................................................ 20 1.3 User assistance and technical support .................................................................. 21 1.4 DB2 servers ........................................................................................................... 21 1.5 DB2 clients and drivers .......................................................................................... 22 1.6 Application development freedom ......................................................................... 23 1.7 DB2 versions versus DB2 editions ........................................................................ 24 1.8 Moving up to another DB2 edition ......................................................................... 25 1.9 Maintenance and updates for DB2 Express-C ...................................................... 25 1.10 Related free software and DB2 components ....................................................... 26 1.10.1 IBM Data Studio ............................................................................................ 26 1.10.4 DB2 Text Search .......................................................................................... 27 1.10.5 WebSphere Application Server – Community Edition .................................. 27 1.11 Summary .............................................................................................................. 27 Chapter 2 – Related features and products ................................................................. 29 2.1 Features included with DB2 Express subscription (FTL) ....................................... 32 2.1.1 Fix packs ......................................................................................................... 32 2.1.2 High Availability Disaster Recovery (HADR) .................................................. 33 2.1.3 Data Replication ............................................................................................. 33 2.2 Features not available with DB2 Express-C .......................................................... 34 2.2.1 Database Partitioning ..................................................................................... 34 2.2.2 Connection Concentrator ................................................................................ 35 2.2.3 Geodetic Extender .......................................................................................... 35 2.2.4 Label-based Access Control (LBAC) .............................................................. 35 2.2.5 Workload Manager (WLM) .............................................................................. 36 2.2.6 Deep compression .......................................................................................... 37 2.2.7 SQL Compatibility ........................................................................................... 38 2.3 Fee-based products that are related to DB2 ......................................................... 39 2.3.1 DB2 Connect .................................................................................................. 39 2.3.2 InfoSphere Federation Server ........................................................................ 40 2.3.3 InfoSphere Replication Server ........................................................................ 41 2.3.4 Optim Development Studio (ODS) ................................................................. 41 2.3.5 Optim Database Administrator (ODA) ............................................................ 42 6 Getting Started with DB2 Express-C 2.4 DB2 Offerings on Amazon Elastic Compute Cloud ............................................... 42 2.5 Summary ................................................................................................................ 42 Chapter 3 – DB2 installation .......................................................................................... 43 3.1 Installation prerequisites ........................................................................................ 43 3.2 Operating system installation authority .................................................................. 43 3.3 Installation wizard .................................................................................................. 44 3.4 Validating your installation ..................................................................................... 51 3.5 Silent Install ............................................................................................................ 53 3.6 Summary ................................................................................................................ 54 3.7 Exercises ............................................................................................................... 54 Chapter 4 – DB2 Environment ....................................................................................... 59 4.1 DB2 configuration .................................................................................................. 68 4.1.1 Environment variables .................................................................................... 69 4.1.2 Database manager configuration file (dbm cfg) ............................................. 69 4.1.3 Database configuration file (db cfg) ................................................................ 72 4.1.4 DB2 profile registry ......................................................................................... 73 4.2 The DB2 Administration Server (deprecated) ........................................................ 74 4.3 Summary ................................................................................................................ 75 4.4 Exercises ............................................................................................................... 75 Chapter 5 – DB2 Tools .................................................................................................... 81 5.1 IBM Data Studio ..................................................................................................... 83 5.2 Control Center (deprecated) .................................................................................. 84 5.2.1 Launching the Control Center ......................................................................... 87 5.3 Command Editor (deprecated) .............................................................................. 88 5.3.1 Launching the Command Editor ..................................................................... 88 5.3.2 Adding a database connection ....................................................................... 89 5.4 SQL Assist Wizard (deprecated) ........................................................................... 90 5.5 Show SQL Button (deprecated) ............................................................................. 91 5.6 Task Center (deprecated) ...................................................................................... 92 5.6.1 The Tools Catalog database (deprecated) ..................................................... 93 5.7 Journal (deprecated) .............................................................................................. 94 5.7.1 Launching the Journal .................................................................................... 96 5.8 Health Monitor (deprecated) .................................................................................. 96 5.8.1 Health Center (deprecated) ............................................................................ 97 5.9 Self-tuning memory manager ................................................................................ 99 5.10 Scripting ..............................................................................................................