| Author |
Message |
Santhosh *nix forums beginner
Joined: 01 Dec 2005
Posts: 17
|
Posted: Tue Jul 18, 2006 8:17 am Post subject:
Db2 backup List
|
|
|
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 |
|
| Back to top |
|
 |
s.sathyaram@googlemail.co *nix forums beginner
Joined: 20 Feb 2006
Posts: 13
|
Posted: Tue Jul 18, 2006 10:07 am Post subject:
Re: Db2 backup List
|
|
|
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 |
|
|
| Back to top |
|
 |
Santhosh *nix forums beginner
Joined: 01 Dec 2005
Posts: 17
|
Posted: Tue Jul 18, 2006 11:17 pm Post subject:
Re: Db2 backup List
|
|
|
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 |
|
|
| Back to top |
|
 |
Santhosh *nix forums beginner
Joined: 01 Dec 2005
Posts: 17
|
Posted: Thu Jul 20, 2006 1:34 am Post subject:
Re: Db2 backup List
|
|
|
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 |
|
|
| Back to top |
|
 |
Gert van der Kooij *nix forums Guru Wannabe
Joined: 27 May 2005
Posts: 267
|
Posted: Thu Jul 20, 2006 1:56 am Post subject:
Re: Db2 backup List
|
|
|
In article <1153359241.103471.308100@b28g2000cwb.googlegroups.com>,
kollam68@yahoo.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 |
|
| Back to top |
|
 |
Santhosh *nix forums beginner
Joined: 01 Dec 2005
Posts: 17
|
Posted: Thu Jul 20, 2006 6:59 am Post subject:
Re: Db2 backup List
|
|
|
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@b28g2000cwb.googlegroups.com>,
kollam68@yahoo.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 |
|
|
| Back to top |
|
 |
Gert van der Kooij *nix forums Guru Wannabe
Joined: 27 May 2005
Posts: 267
|
Posted: Thu Jul 20, 2006 8:37 am Post subject:
Re: Db2 backup List
|
|
|
In article <1153378795.802718.14800@m73g2000cwd.googlegroups.com>,
kollam68@yahoo.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. |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|