Book Image

IBM Db2 11.1 Certification Guide

By : Robert (Kent) Collins, Mohankumar Saraswatipura
Book Image

IBM Db2 11.1 Certification Guide

By: Robert (Kent) Collins, Mohankumar Saraswatipura

Overview of this book

IBM Db2 is a relational database management system (RDBMS) that helps you store, analyze, and retrieve data efficiently. This comprehensive book is designed to help you master all aspects of IBM Db2 database administration and prepare you to take and pass IBM's Certification Exams C2090-600. Building on years of extensive experience, the authors take you through all areas covered by the test. The book delves deep into each certification topic: Db2 server management, physical design, business rules implementation, activity monitoring, utilities, high availability, and security. IBM Db2 11.1 Certification Guide provides you with more than 150 practice questions and answers, simulating real certification examination questions. Each chapter includes an extensive set of practice questions along with carefully explained answers. This book will not just prepare you for the C2090-600 exam but also help you troubleshoot day-to-day database administration challenges.
Table of Contents (10 chapters)

Online table move

Online Table Move (OTM) is the process of moving a table without a service disruption. Have you ever had the need to change something such as tablespace extent size? How about the need to reclaim tablespace filesystem storage when you're unable to use REDUCE MAX? If you can take the source table(s) out of service for some varying length of time, there are several possible solutions. But, what if the table(s) cannot be offline for any amount of time?

The stored procedure ADMIN_MOVE_TABLE can be used to move data in an active table to a new object with the same name, keeping the data online and available. A typical ADMIN_MOVE_TABLE statement looks like the following:

CALL SYSPROC.ADMIN_MOVE_TABLE 
 ( 
   [TableSchema], [SourceTable], [TargetDataTS], 
   [TargetIndexTS], [TargetLongTS], [MDC_Columns], 
   [PartitionKeys], [DataPartitions], [ColumnDefs], 
 ...