By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,280 Members | 1,601 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,280 IT Pros & Developers. It's quick & easy.

querying backup process

P: n/a
I am new to DB2. The version we are using is 8.2.3

I have to query DB2 to find out all backups for a given database and take
following
information

Backup Date, Start Time, End TIme, Status
If failure, the error code.

I am working on a script of someone else.

The command used is db2 list history backup since YYMMDD for DBNAME.

And then I have to filter out the information from the output.

Is there a better way. Like some sort of system catalog tables where I can
query.

Thanks.
Oct 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Ian
Tambi Dude wrote:
I am new to DB2. The version we are using is 8.2.3

I have to query DB2 to find out all backups for a given database and
take following information

Backup Date, Start Time, End TIme, Status If failure, the error code.
I am working on a script of someone else.

The command used is db2 list history backup since YYMMDD for DBNAME.

And then I have to filter out the information from the output.

Is there a better way. Like some sort of system catalog tables where
I can query.
Yes, see the ADMIN_LIST_HISTORY table function that was introduced in
8.2. This gives you the ability to query this information with SQL.

Oct 13 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.