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 > which system catalog view contains the backup information.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-18-04, 23:23
gbag gbag is offline
Registered User
 
Join Date: Dec 2003
Posts: 9
which system catalog view contains the backup information.

Hi,
Can anybody pls tell me which system catalog view contains the backup information. I know by using the file-structure or file name this can be evaluated, but I want to extract from system catalog tables.
Thanks in advance
Gbag
Reply With Quote
  #2 (permalink)  
Old 05-19-04, 00:45
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
On DB2 for z/OS that would be sysibm.syscopy. However on DB2 for Unix, Linux, and Windows only the syscat views are documented and there is no syscat.syscopy view (or equivalent). I am not sure where that information is stored, such as in an undocumented sysibm table (without a syscat view) or somewhere else.

You can of course use the "list history backup" command to get a list of backups taken.
__________________
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 05-19-04, 17:12
sathyaram_s sathyaram_s is online now
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
The recovery history is stored in a file named db2rhist.asc dot something under the database path

./NODE0000/SQL00001/db2rhist.asc
./NODE0000/SQL00001/db2rhist.bak

There is a backup file also, in case , one gets corrupt ..

As an additional bit of info, whenever a backup is done, the recovery history information is also backed up and it is possible to restore only the recovery history file from the backup image (of course, the history will not be current, but still you have the option)

HTH

Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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