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
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
IBM DB2 9.7 Advanced Administration Cookbook

You're reading from   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

Arrow left icon
Product type Paperback
Published in Feb 2012
Publisher Packt
ISBN-13 9781849683326
Length 480 pages
Edition 1st Edition
Tools
Arrow right icon
Toc

Table of Contents (21) Chapters Close

IBM DB2 9.7 Advanced Administration Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
1. DB2 Instance—Administration and Configuration FREE CHAPTER 2. Administration and Configuration of the DB2 Non-partitioned Database 3. DB2 Multipartitioned Databases—Administration and Configuration 4. Storage—Using DB2 Table Spaces 5. DB2 Buffer Pools 6. Database Objects 7. DB2 Backup and Recovery 8. DB2 High Availability 9. Problem Determination, Event Sources, and Files 10. DB2 Security 11. Connectivity and Networking 12. Monitoring 13. DB2 Tuning and Optimization 14. IBM pureScale Technology and DB2 Index

Backing up table spaces


This type of backup allows you to back up single or multiple table spaces, while users are connected to the database.

Getting ready

DB2 can back up the table space with users connected, but it is always preferable to do it when nobody is connected.

How to do it...

There is no need to connect to the database; the backup utility will initiate the connection. This is the tablespace backup we made earlier:

[db2inst1@nodedb21 ~]$ db2 "BACKUP DATABASE POS 
	TABLESPACE ( POS_TBLS ) 
	ONLINE TO "/xchng/backups" WITH 2 
	BUFFERS BUFFER 1024 PARALLELISM 1 WITHOUT PROMPTING"

Backup successful. The timestamp for this backup image is : 20111125232007

How it works...

The table space will be backed up to this file: POS.3.db2inst1.NODE0000.CATN0000.20111125232007.001. Note the POS.3 at the beginning of the filename that indicates the backup type:

[db2inst1@nodedb21 ~]$ cd /xchng/backups
[db2inst1@nodedb21 backups]$ ls -al *20111125232007*
-rw------- 1 db2inst1 dba 12603392 2011-11-25...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime