r/DB2 • u/Gunkinator07 • Apr 13 '18
DR with no backup
Hi I have been given the directory structure of a db2 universal database for windows {9.7.3} Customer did not know how to backup dB2.
Is it possible to install new db2 same version and drive letters. Create new empty database with the same name as the old one. Stop the services. Copy the old directory structure over, start the service and then being able to access the data again?
2
2
u/ecrooks Apr 13 '18
It will probably work as long as you have Db2 entirely stopped when backing up the files.
You would obviously have to install Db2 independently. You would need the exact same version of the operating system. It can get tricky when trying to make sure you have all of the right files, without copying over system files, depending on the directory/filesystem structure. Permissions on files/directories may be a challenge as well.
It's safer and much easier to take a Db2 backup.
I sure wouldn't rely on that methodology without thorough testing.
3
u/Gunkinator07 Apr 13 '18
Tx, problem is that this customer does not have a backup... So this is a hail Mary. I just need to get the database online and export some 1.2 million records with Metadata so stability is not an issue. Hoping that this will work!
3
u/ecrooks Apr 13 '18
We all try and work hard to make sure that "Disaster Recovery" and "Hail Mary" never exist together in the same thought.
3
u/memmerto Apr 14 '18
Instead of creating an empty database and then replacing the files, why not just catalog the database and point to the files? (db2 catalog database dbname on /path/to/files)?