Unsolved
This post is more than 5 years old
161 Posts
0
2899
DB2 transaction log backup
Hi folks,
a while ago I started a discussion about DB2 transaction log backup with NMDA, here: DB2 transaction log backup with NMDA. I didn't get much response, so I'm gonna ask again.
I have a DB2 instance with multiple databases. Online backup of all instances runs fine. But I wanna backup the transaction logs every few hours and delete them afterwards. The NMDA documentation offers 1 1/2 pages about this (p.116-117).
If I configure the backup like described, I get multiple messages that parameters are not set in the NMDA config file. I insert them one after one and in the end it won't run either:
64673:nsrdasv: Unable to backup database due to backup request failure, SQLCODE : -1035, SQL1035N The operation failed because the specified database cannot be
connected to in the mode requested.
Which is just some random message because online backup runs fine.
I'm asking myself: Is it possible to backup up just the transaction logs with NMDA and delete them afterwards (like RMAN and oracle does it for years)?
Cheers
Jan
ble1
2 Intern
2 Intern
•
14.3K Posts
0
January 27th, 2015 05:00
You could have simply replied to existing thread instead of creating new one
According to IBM
User response
ble1
2 Intern
2 Intern
•
14.3K Posts
0
January 27th, 2015 05:00
Also check you don't run circular logging.
ble1
2 Intern
2 Intern
•
14.3K Posts
0
January 27th, 2015 06:00
I believe that is all supported via db2 command. For some options, see dBforums Everything on Databases, Design, Developers and Administrators (third response, by Marcus_A, explains it).
JayJay9882
161 Posts
0
January 27th, 2015 06:00
Thanks for the lecture .
I don't trust the failure message but that's not what I'm after.
I need to know if it's possible to do transaction log backup with automatic deletion of the logs with NMDA? Or do I need to script something to make it work.
I need a solution similar to oracle with RMAN.
oldhercules
116 Posts
1
January 27th, 2015 23:00
Hello!
I don't know how to set up db2 log backup similar to rman (time based archlog schedule), we configured LOGARCHMETH1 & LOGARCHOPT1 DB2 parameters and now DB2 backups it's logs "when he wants".
It's important to have a short path in the logarchopt1 (nmda config file) because if it's longer than ~50 chars the backup may fail.
I'm not a db2 admin, but I belive it's possible to use a db2 command to force that backup any time you want.