DB2 UDB Exploitation of the Windows Environment
Total Page:16
File Type:pdf, Size:1020Kb
Front cover DB2 UDB Exploitationation of the Windowsws Environment Detailed examples for leveraging DB2 UDB V8.1 in Windows 2000 environment Installing, security, monitoring, performance, high availability Application development guidelines Whei-Jen Chen Chris Fierros Alexandre H. Guerra Thomas Mitchell Francis Reddington ibm.com/redbooks International Technical Support Organization DB2 UDB Exploitation of the Windows Environment March 2003 SG24-6893-00 Note: Before using this information and the product it supports, read the information in “Notices” on page xvii. First Edition (March 2003) This edition applies to DB2 Universal Database Version 8.1 for use with Microsoft Windows 2000 operating system. © Copyright International Business Machines Corporation 2003. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Figures . ix Tables . xv Notices . xvii Trademarks . xviii Preface . xix The team that wrote this redbook. xx Become a published author . xxii Comments welcome. xxiii Chapter 1. Introduction. 1 1.1 DB2 UDB overview . 2 1.1.1 DB2 family. 2 1.1.2 DB2 UDB for Windows, UNIX, and Linux . 2 1.2 DB2 UDB products on Windows . 29 1.2.1 Product descriptions . 29 1.2.2 Try and buy product availability. 33 1.3 Planning considerations . 33 1.3.1 Product selection guidelines . 33 1.3.2 Sample scenarios . 38 1.4 DB2 UDB Version 8 highlights . 39 1.5 DB2 UDB integration with Microsoft Windows . 41 1.5.1 Built for the Windows environment . 41 Chapter 2. Installation and deployment . 47 2.1 Installation preparation and considerations. 48 2.1.1 Installation overview for DB2 servers on Windows . 48 2.1.2 Installation requirements . 49 2.1.3 Authorization considerations . 52 2.1.4 FixPak considerations . 53 2.1.5 Migration considerations . 54 2.2 Installation wizard (single installation) . 55 2.2.1 Server installation . 59 2.2.2 Client installation . 67 2.3 Installation profile . 75 2.3.1 Server installation . 79 2.3.2 Client installation . 80 © Copyright IBM Corp. 2003. All rights reserved. iii 2.4 Enterprise deployment with Microsoft SMS. 82 2.4.1 Creating DB2 UDB packages . 82 2.5 Active Directory Services . 85 2.5.1 Active Directory Overview . 85 2.5.2 Extending the Active Directory . 87 2.5.3 Installing the MMC Snap-In Extension . 87 2.5.4 Enabling DB2 Active Directory support . 89 2.5.5 Managing the Active Directory . 91 Chapter 3. Post-installation tasks . 95 3.1 Introduction . 96 3.2 Using the Control Center. 96 3.3 Database creation . 98 3.4 Configuration advisor . 107 3.5 Populating your database . 116 3.5.1 Table creation . 117 3.5.2 Loading data . 128 3.5.3 Moving data. 129 3.6 Design Advisor Wizard . 148 3.6.1 Using the Design Advisor Wizard . 149 Chapter 4. Security . 159 4.1 Understanding Windows security . 160 4.1.1 Basic security concepts. 160 4.1.2 Windows 2000 domains . 161 4.2 System level security. 168 4.2.1 DB2 service accounts . 168 4.2.2 DB2 user authentication . 171 4.2.3 DB2 group enumeration . 175 4.3 Instance level security . 176 4.3.1 Default instance security . 177 4.3.2 DAS Administrator Authority (DASADM). 178 4.3.3 DB2 System Administrators Authority (SYSADM) . 178 4.3.4 DB2 System Control Authority (SYSCTRL) . 179 4.3.5 DB2 System Maintenance Authority (SYSMAINT) . 179 4.3.6 DB2 directory security . 180 4.4 Database level security . 184 4.4.1 Database authorities . 184 4.4.2 Database privileges. 187 4.4.3 Data encryption . 188 4.4.4 Auditing database transactions . 189 Chapter 5. Performance . 191 5.1 Performance tuning overview . 192 iv DB2 UDB Exploitation of the Windows Environment 5.1.1 Measuring system performance . 192 5.1.2 Determining when system tuning will be cost-effective. 193 5.1.3 Causes of performance problems . 193 5.1.4 Deciding when to tune the system . 194 5.1.5 Planning performance tuning . 195 5.2 Primary Windows performance factors . 198 5.2.1 System hardware . 199 5.2.2 Operating system software . 203 5.3 Primary DB2 performance factors . 205 5.3.1 Configuration parameter introduction . 206 5.3.2 Memory . 207 5.3.3 Processor . 224 5.3.4 Storage . 226 5.3.5 Network . ..