I just aquired a Db2 7.1 server, and I am very new at this. Its running AIX. There is one instance running on the server. How can I check if the database backup has ran? and it completed in a good state?
If the backup did not run properly it will complain immediately.
To list all the backups already taken:
list history backup all for db <db_name>
To list backups since a particular period of time:
list history backup since <time_stamp> for db <db_name>
ex:db2 list history since 20051001 for db sample
yes.
$db2 list history since 20051001 for db sample
You can also do it from db2 interactive mode.
At the prompt type db2 [and hit enter]
$db2
this will take you into interactive mode :
db2=>
now you can just type in the command, without "db2" prefix.
db2=>list history since 20051001 for db sample
db2=>quit
to see all the instances
$db2ilist
to see a list of the databases:
$db2 list db directory
When the backup command was issued, if there was a problem, it will complain or throw an error at that time itself. If there was a problem, then backup is not completed and it does not show up in the list history results.
Whatever you see in the list history results, are successful backups.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.