If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > backup objects

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-20-09, 01:55
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
Question backup objects

Hi,

1. what all are the objects not been backed-up when i use the backup utility:
backup database <dbname> to <path>
2. how can i take backup of these objects?
3. Is there any other method that will not miss any of the data so that i can find all the objects in a single image.
Reply With Quote
  #2 (permalink)  
Old 01-20-09, 02:35
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
All database objects will be in the image and you will not miss any data if you take an offline backup (as your syntax indicates). If you take an online backup, you can use the "include logs" keyword to include the logs that were active during the online backup and that are needed to a do a restore.

The only thing that is not backed up is the instance configuration and db2set environment variables. You can print those with the following commands:

db2 get dbm cfg
db2set -all

Depending on how you restore the database backup (as a new database or to replace an exisiting database with the same name) some db config parameters will not be replaced by the restore, so to capture those you can use this command:

db2 get db cfg for <db-name>
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 01-20-09, 04:57
nittal nittal is offline
Registered User
 
Join Date: Jul 2008
Posts: 131
Thanks Marcus. Things are clear now.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On