Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Top 10 DB2 SupportTop 10 DB2 SupportTop 10 DB2 SupportTop 10 DB2 Support
Nightmares & How toNightmares & How toNightmares ...
Part 7 – As bad as it gets!
Image of a junior DBA
Imagine the scene – a broken database on an
unsupported version of DB2, ...
How did it happen?
An erroneous script had deleted a few
transaction log files that had a ‘last change
date’ of more than ...
Image of a junior DBA
The database had a number of web facing apps
relying on it for important features.
The version of DB...
Panic set in…
The Triton team were just a phone-
call away!
….let battle commence
• Ran db2dart on the database to check for any errors, got the Tablespaceid, Tableid and
total number of pages allocated t...
The database was down for a total of 20 hours but was
brought back in one piece with almost no data loss!
How long?
Have a scheduled clean-up procedure for the archive log directory.
If possible, keep at least one backup image on disk.
Be...
www.triton.co.uk/db2-support
Upcoming SlideShare
Loading in …5
×

Top 10 DB2 Support Nightmares #7

1,960 views

Published on

Imagine the scene – a broken database on an unsupported version of DB2, with no backups or log files to recover the database.

Yes – this one really was the stuff of nightmares!

Published in: Technology
  • My experience with essay services has generally been very positive. I requested a writer from HelpWriting.net to write my English essay on Jane Eyre because I was really short on time (that week my family had to move houses unexpectedly and I had no time whatsoever to sit down at a computer and do work.) Needless to say the services were good and my essay was done really quickly. The writer that I picked followed directions well. Of course, if you can do it yourself, then do so but if it’s an end-all-be-all situation I definitely recommend HelpWriting.net
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Top 10 DB2 Support Nightmares #7

  1. 1. Top 10 DB2 SupportTop 10 DB2 SupportTop 10 DB2 SupportTop 10 DB2 Support Nightmares & How toNightmares & How toNightmares & How toNightmares & How to Avoid ThemAvoid ThemAvoid ThemAvoid Them #7#7#7#7
  2. 2. Part 7 – As bad as it gets! Image of a junior DBA Imagine the scene – a broken database on an unsupported version of DB2, with no backups or log files to recover the database. Yes – this one really was the stuff of nightmares!
  3. 3. How did it happen? An erroneous script had deleted a few transaction log files that had a ‘last change date’ of more than 45 days.’ A database restart was required but the database did not start. The database was looking for an old log file which had just been deleted by the script. The log file had also been deleted from the archive logs.
  4. 4. Image of a junior DBA The database had a number of web facing apps relying on it for important features. The version of DB2 in use had passed it’s “End of Service” date. END OF SERVICE
  5. 5. Panic set in…
  6. 6. The Triton team were just a phone- call away!
  7. 7. ….let battle commence
  8. 8. • Ran db2dart on the database to check for any errors, got the Tablespaceid, Tableid and total number of pages allocated to each table. • Built db2dart command with the DDEL option to extract the data in delimited format. • The extract could not be scripted so this was done manually for 300+ tables! • Created a new database • Loaded the extracted data to the new database, ran runstats on the table and indexes 15 hours of db2dart, import/load, runstats and data fixes later the database was available for the application! Here’s what we did…..
  9. 9. The database was down for a total of 20 hours but was brought back in one piece with almost no data loss! How long?
  10. 10. Have a scheduled clean-up procedure for the archive log directory. If possible, keep at least one backup image on disk. Be aware of advanced recovery tools such as db2dart - they can be lifesavers in extreme situations. Make sure you know who to call if disaster strikes! The moral of the story
  11. 11. www.triton.co.uk/db2-support

×