dbTalk Databases Forums  

Db2 backup List

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss Db2 backup List in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Santhosh
 
Posts: n/a

Default Db2 backup List - 07-18-2006 , 04:17 AM






Dear All

Can I know how can I get the last backup status for a db2 database from
the system tables..? Any SQl statement to get that details??

Regards
Santhosh


Reply With Quote
  #2  
Old   
Sathyaram Sannasi
 
Posts: n/a

Default Re: Db2 backup List - 07-18-2006 , 06:07 AM






list history command
or
if you are on V8 FP 9 and above, admin_list_hist table function

Sathyaram

Santhosh wrote:
Quote:
Dear All

Can I know how can I get the last backup status for a db2 database from
the system tables..? Any SQl statement to get that details??

Regards
Santhosh


Reply With Quote
  #3  
Old   
Santhosh
 
Posts: n/a

Default Re: Db2 backup List - 07-18-2006 , 07:17 PM



Dear Sir

what about in FP 6? I have a installation with FP6..

Regards
Santhosh

Sathyaram Sannasi wrote:
Quote:
list history command
or
if you are on V8 FP 9 and above, admin_list_hist table function

Sathyaram

Santhosh wrote:
Dear All

Can I know how can I get the last backup status for a db2 database from
the system tables..? Any SQl statement to get that details??

Regards
Santhosh


Reply With Quote
  #4  
Old   
Santhosh
 
Posts: n/a

Default Re: Db2 backup List - 07-19-2006 , 09:34 PM



Dear All

Any help from anyone? I tried , could't able to findout SQL statements
to get the back details from FP <9

Pl help me

Regards
Santhosh
=========================
Santhosh wrote:
Quote:
Dear Sir

what about in FP 6? I have a installation with FP6..

Regards
Santhosh

Sathyaram Sannasi wrote:
list history command
or
if you are on V8 FP 9 and above, admin_list_hist table function

Sathyaram

Santhosh wrote:
Dear All

Can I know how can I get the last backup status for a db2 database from
the system tables..? Any SQl statement to get that details??

Regards
Santhosh


Reply With Quote
  #5  
Old   
Gert van der Kooij
 
Posts: n/a

Default Re: Db2 backup List - 07-19-2006 , 09:56 PM



In article <1153359241.103471.308100 (AT) b28g2000cwb (DOT) googlegroups.com>,
kollam68 (AT) yahoo (DOT) com says...
Quote:
Dear All

Any help from anyone? I tried , could't able to findout SQL statements
to get the back details from FP <9

You can't. You need to open a DB2 Command Window and issue the 'db2 list
history' command or write a C program calling the needed API
(db2HistoryOpenScan etc.).
There's a sample in the SQLLIB\samples\C\dbhistfile.sqc


Reply With Quote
  #6  
Old   
Santhosh
 
Posts: n/a

Default Re: Db2 backup List - 07-20-2006 , 02:59 AM



Dear Gert sir

Thanks for the reply.. But could't able to see the dbhistfile..

My plan is to write a java program that runs from my desktop, connect
to all our Db2 instances and then collect the backup information from
all instances. Then email to our mail box. If I have the SQL stmt, I
can do it in java.. That is why i ask this qn

Regards
Santhosh

Gert van der Kooij wrote:
Quote:
In article <1153359241.103471.308100 (AT) b28g2000cwb (DOT) googlegroups.com>,
kollam68 (AT) yahoo (DOT) com says...
Dear All

Any help from anyone? I tried , could't able to findout SQL statements
to get the back details from FP <9


You can't. You need to open a DB2 Command Window and issue the 'db2 list
history' command or write a C program calling the needed API
(db2HistoryOpenScan etc.).
There's a sample in the SQLLIB\samples\C\dbhistfile.sqc


Reply With Quote
  #7  
Old   
Gert van der Kooij
 
Posts: n/a

Default Re: Db2 backup List - 07-20-2006 , 04:37 AM



In article <1153378795.802718.14800 (AT) m73g2000cwd (DOT) googlegroups.com>,
kollam68 (AT) yahoo (DOT) com says...
Quote:
Dear Gert sir

Thanks for the reply.. But could't able to see the dbhistfile..

My plan is to write a java program that runs from my desktop, connect
to all our Db2 instances and then collect the backup information from
all instances. Then email to our mail box. If I have the SQL stmt, I
can do it in java.. That is why i ask this qn

What do you mean by "could't able to see the dbhistfile" ?
If you tried the 'list history' command please show the used commands
and returned error messages.


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.