• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 657
  • Last Modified:

The DB2 backup history

Dear all,

Is there any script to find out the backup history of DB2 V8.1 from UI instead of AIX script

I want to chech how frequent it is. is it a full or differential backup,etc
  • 2
  • 2
1 Solution
Kent OlsenData Warehouse Architect / DBACommented:
Hi marrowyung,

I don't know of any tools to tell you the backup history.  That's something that is usually controlled on the front (run as needed or scheduled).  The default name of the dump file has the date built into it, but that doesn't really help you much here.

marrowyungSenior Technical architecture (Data)Author Commented:
From MS SQL, what I can do is run the following

select top 14 name, description, database_creation_date, backup_start_date,
 backup_finish_date, database_name, 
physical_device_name from msdb..backupset bs 
inner join msdb..backupmediafamily bf 
on bs.media_set_id = bf.media_set_id          
where database_name = '<database name>'
order by backup_finish_date desc

Open in new window

to return the backup history of the SQL backup file:

it contains:
1) database name
2) descript of the backup job.
3) backup start time
4) Backup end time.
5) backup file name.

Anything in DB2 do this ?
Kent OlsenData Warehouse Architect / DBACommented:
No.  DB2 Backups are external processes and don't record to the database.
marrowyungSenior Technical architecture (Data)Author Commented:

is it only for the old version like what I am using ? V8.1? the latest one can do it ?
Yes, in new version you can access the database history via SQL. Your version is too old, and it does not allow these operations.

Yo can however, access the history via the journal tool from the control center. This will list the backups and you can apply filters via the UI.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now