Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
IBM DB2 9.7 Advanced Administration Cookbook
IBM DB2 9.7 Advanced Administration Cookbook

IBM DB2 9.7 Advanced Administration Cookbook: Over 100 recipes focused on advanced administration tasks to build and configure powerful databases with IBM DB2 book and ebook

eBook
€29.99 €42.99
Paperback
€53.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

IBM DB2 9.7 Advanced Administration Cookbook

Chapter 2. Administration and Configuration of the DB2 Non-partitioned Database

In this chapter, we will cover:

  • Creating and configuring DB2 non-partitioned databases

  • Using configuration advisor

  • Creating a database from an existing backup

  • Configuring automatic database maintenance

  • Managing federated databases, connecting to Oracle and MSSQL

  • Altering databases

  • Dropping databases

Introduction


This chapter provides recipes in order to create a database and get operational in simple and easy steps. We will do so in a manner that respects best practices in the industry.

You have created an instance named db2inst1 on nodedb21, in the previous chapter. You will prepare for available disk space. You will then be able to configure your database for its mission and prepare it for automatic maintenance, so its operation is worry free.

While the nature of these recipes makes them useful right away, it is strongly recommended that they be attempted in a test environment first. We suggest you execute the commands individually, so you can learn as you go along.

Creating and configuring DB2 non-partitioned databases


We will discuss here how to create a single-partitioned database, which is sufficient for most database applications and is the most common configuration for small- to medium-sized databases.

If you plan on having a Business Intelligence (BI) database, you should be planning for a partitioned database. You can estimate one processor core for every 300 GB of data. We will cover this topic in Chapter 3, DB2 Multi-partitioned Databases—Administration and Configuration.

Getting ready

Gather as much technical information as you can about the hardware or virtual machine(s) you have at your disposal, for this database. Identify in which instance you will create your database, and ensure you will have enough memory and disk space for what you need.

Identify the location where you will create the table spaces (filesystems for Unix platforms, disk drives on Windows servers) and how much available space you will have. Make sure the instance owner has...

Using Configuration Advisor


The configuration advisor will help you configure the best settings for the database mission, using this server's hardware configuration. You can then accept or cancel the proposed settings.

Getting ready

Obtain as much information as possible on the database size, future growth, number of concurrent users, and so on.

How to do it...

  1. Select database Configuration Advisor....

    Go to the left pane of Control Center, and expand the databases node. Right-click on the NAV database, and select Configuration Advisor....

    A first screen will ask you to confirm whether this is the database you want to configure; then, click Next.

  2. Choose how much memory you want to allocate to this database.

    You will see a slider bar and the amount of physical memory available on the server. Allow around 300-500 MB for the operating system, or ask your system administrator how much space is needed. Then, you will have to divide the remaining space for each of the active databases. Click Next.

    In our...

Creating a database from an existing backup


Let's suppose you want to copy a production database into a QA server. You can prepare a script using the GUI. It will walk you through the process, and will allow you to save the script. With the GUI, you can also schedule this script as a regular task so you can refresh your QA environment on a weekly basis or at any frequency you wish.

Getting ready

Identify the backup you want to recover, and do a verification to make sure it's valid. In our example, we'll start here from a cold (offline) backup stored on disk, so there is no tape command or rollforward to do.

How to do it...

  1. Make sure the backup is valid.

    Log in as instance owner. Go to the backup location and, from the operating system command line (Linux in this example), type db2 ckbkp:

    	[db2inst1@nodedb21 ~]$ cd /maint/backups
    	[db2inst1@nodedb21 backups]$ db2ckbkp   NAV.0.db2inst1.NODE0000.CATN0000.20101114190028.001
    
    	[1] Buffers processed:  #######
    
    	Image Verification Complete – successful...

Configuring automatic database maintenance


The automatic maintenance of the database involves tools to simplify your administration tasks. You can configure this option anytime after you create the database.

Basically, you define maintenance schedules:

  • online: Period of low activity to allow for runstats

  • offline: Period when there is no activity (no user connecting), for backups and reorgs

You also define maintenance activities:

  • backups: DB2 determines if a backup is needed and schedules it during maintenance windows (offline)

  • reorgs: Used to reorganize tables for optimal table space use (offline)

  • runstats: Makes sure DB2 has a quantitative view of data for its optimizer to produce best results (online)

You can have configured notifications on maintenance jobs.

Getting ready

Identify the best time for maintenance windows, when there is low or no activity on this database. Choose which maintenance activities you want.

For backups, prepare your strategy first, between online or offline backups. In case...

Managing federated databases—connecting to Oracle and MSSQL


A federated database allows client applications to see their data as a single database, even though the data itself can be located across different databases, or even databases created with another RDBMS such as Oracle or MSSQL.

Getting ready

IBM InfoSphere Federation Server must be installed. You can either choose to install a new copy of DB2 Enterprise Server Edition Version 9.7 or install Federation Server on top of an existing copy.

Since DB2 acts as a client for the remote databases, the client software for the databases you want to access must be installed on the same system as the federated server. For Oracle databases, you will need Oracle Net Client. Make sure you can do a tnsping and access your remote database with sqlplus.

[ora10g@nodedb21 ~]$ tnsping ERP10R2
TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 19-JUN-2011 15:34:00
Copyright (c) 1997, 2005, Oracle.  All rights reserved.
Used parameter files:
Used...

Altering databases


This topic involves making changes to a database's characteristics. We will see this command from the DB2 point of view and from an Oracle point of view. This may help clear misunderstandings from one environment to the other.

How to do it…

As understood in DB2, ALTER DATABASE only has one function. Those of you coming from an Oracle DBA background should read on to From Oracle to DB2..., for further explanations.

The ALTER DATABASE command lets you add or remove storage paths from the list of storage paths used for automatic storage table spaces.

  • Add storage path:

     [db2inst1@nodedb21 ~]$ db2 "ALTER DATABASE NAV ADD STORAGE ON '/data1/db2'"
    DB20000I  The SQL command completed successfully.
    
  • Remove storage path:

    [db2inst1@nodedb21 ~]$ db2 "ALTER DATABASE NAV DROP STORAGE ON '/data1/db2'"
    DB20000I  The SQL command completed successfully.
    

How it works…

Adding a storage path to a manual storage database makes it an automatic storage database. Existing manual storage table spaces...

Dropping databases


Dropping a database is an easy task compared to Oracle. You select the database you want to drop, and all its objects, containers, and files will be deleted.

Getting ready

The database must not be used, so all users have to be disconnected. I recommend you take a backup at this point. For many reasons, it could have been the wrong database to drop.

How to do it...

  1. Select the database:

    Select the databases folder on the left pane of the control center; or, you can list databases:

    	[db2inst1@nodedb21 ~]$ db2 list database directory
    
    	 System Database Directory
    
    	 Number of entries in the directory = 1
    
    	Database 1 entry:
    
    	 Database alias                       = NAV
    	 Database name                        = NAV
    	 Local database directory             = /data/db2
    	 Database release level               = d.00
    	 Comment                              = Aviation Geo Data
    	 Directory entry type                 = Indirect
    	 Catalog database partition number    = 0
    	 Alternate server hostname...
Left arrow icon Right arrow icon

Key benefits

  • Master all the important aspects of administration from instances to IBM's newest High Availability technology pureScale with this book and e-book.
  • Learn to implement key security features to harden your database's security against hackers and intruders.
  • Empower your databases by building efficient data configuration using MDC and clustered tables.

Description

IBM DB2 LUW is a leading relational database system developed by IBM. DB2 LUW database software offers industry leading performance, scale, and reliability on your choice of platform on various Linux distributions, leading Unix Systems like AIX, HP-UX and Solaris and MS Windows platforms. With lots of new features, DB2 9.7 delivers one the best relational database systems in the market. IBM DB2 9.7 Advanced Administration Cookbook covers all the latest features with instance creation, setup, and administration of multi-partitioned database. This practical cookbook provides step-by-step instructions to build and configure powerful databases, with scalability, safety and reliability features, using industry standard best practices. This book will walk you through all the important aspects of administration. You will learn to set up production capable environments with multi-partitioned databases and make the best use of hardware resources for maximum performance. With this guide you can master the different ways to implement strong databases with a High Availability architecture.

Who is this book for?

If you are a DB2 Database Administrator who wants to understand and get hands on with the underlying aspects of database administration, then this book is for you. This book assumes that you have a basic understanding of DB2 database concepts.

What you will learn

  • Learn to make best use of scalability with multi-partitioned databases
  • Get to grips with advanced technological breakthroughs with RBAC, and pureScale technology
  • Sharpen your troubleshooting skills
  • Design and implement the best backup strategy
  • Master the new exciting features added to the DB2 9.7 version
  • Get step-by-step instructions to tune and optimize DB2 to achieve best performance
  • Understand the database objects and their integration
Estimated delivery fee Deliver to Estonia

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 24, 2012
Length: 480 pages
Edition : 1st
Language : English
ISBN-13 : 9781849683326
Vendor :
IBM
Category :
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Estonia

Premium delivery 7 - 10 business days

€25.95
(Includes tracking information)

Product Details

Publication date : Feb 24, 2012
Length: 480 pages
Edition : 1st
Language : English
ISBN-13 : 9781849683326
Vendor :
IBM
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 156.97
IBM WebSphere Application Server 8.0 Administration Guide
€48.99
IBM DB2 9.7 Advanced Application Developer Cookbook
€53.99
IBM DB2 9.7 Advanced Administration Cookbook
€53.99
Total 156.97 Stars icon
Banner background image

Table of Contents

14 Chapters
DB2 Instance—Administration and Configuration Chevron down icon Chevron up icon
Administration and Configuration of the DB2 Non-partitioned Database Chevron down icon Chevron up icon
DB2 Multipartitioned Databases—Administration and Configuration Chevron down icon Chevron up icon
Storage—Using DB2 Table Spaces Chevron down icon Chevron up icon
DB2 Buffer Pools Chevron down icon Chevron up icon
Database Objects Chevron down icon Chevron up icon
DB2 Backup and Recovery Chevron down icon Chevron up icon
DB2 High Availability Chevron down icon Chevron up icon
Problem Determination, Event Sources, and Files Chevron down icon Chevron up icon
DB2 Security Chevron down icon Chevron up icon
Connectivity and Networking Chevron down icon Chevron up icon
Monitoring Chevron down icon Chevron up icon
DB2 Tuning and Optimization Chevron down icon Chevron up icon
IBM pureScale Technology and DB2 Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5
(8 Ratings)
5 star 62.5%
4 star 25%
3 star 12.5%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Srilu Mar 14, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is First V9.7 DB2 udb book with detailed info. Book covers all the topics and new fetures for 'DB2 9.7 Advanced Database Administrator including V9.8 db2 pureScale and V9.7 DPF,MDC, Security new features .I read Chapter12 from packtpub about Monitoring .Really good with practical examples .This book will help every DB2 UDB DBA for daily Job duties. I would highly recommend this book to fellow DBAs and developers.Cheers ..Srilu
Amazon Verified review Amazon
aroushdi May 09, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Though IBM has the info center and other publications for DB2 , It is difficult to find the information we need and we jump from a page to another until we find the proper info .This book closes this gap and you find the information needed in a very short time.From my point of view it is targeted to all audience from beginners to the expert .Still relevant even for DB2 V10 with the exeption of the new functionalaties.The only thing I miss in the book is the WINDOWS specific environment .
Amazon Verified review Amazon
Adrian Neagu (OCM) Mar 02, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excellent book, probably the best on this topic.The explanations and code snippets are outstanding.Very recommended for who want to learn DB2 in a different way.
Amazon Verified review Amazon
DL Apr 23, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a great book with quick reference and simple straight forward answers. This book is highly recommended to all DB2 DBA admins.
Amazon Verified review Amazon
Robert W. Cooke Mar 20, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The IBM DB2 9.7 Advanced Administration Cookbook was a pleasant surprise to review. The book is in more of a step by step format than a book of recipes.The book begins where it should at initial DB2 installation and creating an instance. It then proceeds on to creating databases tablespaces, bufferpools, and database objects.I was most impressed by the Backup and Recovery, Monitoring, and Tuning and Optimization chapters. The Backup and Recovery chapter is short but it covers all forms of online and offline backups and different recovery options. Monitoring covers system, snapshot, and event monitoring as well as using the memory visualizer and health monitor. DB2 Tuning and Optimization gives examples of O/S monitoring, using explain, and how indexes, reorgs, and runstats can help performance.The cookbook also discusses DB2 tools such as db2dart, db2look, db2move, db2pd, reorgchk, list tablespaces and others. It mentions db2top but does not demonstrate it.There is a chapter on DB2 PureScale but I'm not experienced with that product.The cookbook could contain more common problems/issues and troubleshooting but an entire book could be written just on that topic. All in all the IBM DB2 9.7 Advanced Administration Cookbook provides a well rounded approach to a new or novice DB2 DBA. Even an experienced DBA would learn a few things. It does not deep drive into everything but it goes far enough and provides good examples to perform the main DB2 DBA tasks. The IBM DB2 document ion and redbooks will provide the fine details.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact [email protected] with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at [email protected] using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on [email protected] with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on [email protected] within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on [email protected] who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on [email protected] within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela