For some time, error with backup history file is repeating. For example, I have MaxDB 7.9.07.10 on Suse SLES 11SP02. In Database Studio when I want to open backups I get error message:
The backup history file /sapdb/AED/data/wrk/AED/dbm.knl is corrupted in line 231
-24763,ERR_BHIST_INVALID_ENTRY: The line "5251A5280245|DAT_000000048|SAVE WARM|2013-10-06 20:00:08|2013-10-06 20:00:08|2013-10-06 20:00:10|2013-10-07 13:28:05| 19449604| |NO |2_CompleteDataBackup | 15867400| 1| -903| " is an invalid line for the backup history
-24757,ERR_FORMAT_SEPARATORNOP: The separator '|' cannot be found 15 times within string "5251A5280245|DAT_000000048|SAVE WARM|2013-10-06 20:00:08|2013-10-06 20:00:08|2013-10-06 20:00:10|2013-10-07 13:28:05| 19449604| |NO |2_CompleteDataBackup | 15867400| 1| -903| "
-24762,ERR_FORMAT_SEPARATORMISSING: String " " does not contain the expected separator '|'
The backup history file /sapdb/AED/data/wrk/AED/dbm.knl is corrupted in line 231
-24763,ERR_BHIST_INVALID_ENTRY: The line "5251A5280245|DAT_000000048|SAVE WARM|2013-10-06 20:00:08|2013-10-06 20:00:08|2013-10-06 20:00:10|2013-10-07 13:28:05| 19449604| |NO |2_CompleteDataBackup | 15867400| 1| -903| " is an invalid line for the backup history
-24757,ERR_FORMAT_SEPARATORNOP: The separator '|' cannot be found 15 times within string "5251A5280245|DAT_000000048|SAVE WARM|2013-10-06 20:00:08|2013-10-06 20:00:08|2013-10-06 20:00:10|2013-10-07 13:28:05| 19449604| |NO |2_CompleteDataBackup | 15867400| 1| -903| "
-24762,ERR_FORMAT_SEPARATORMISSING: String " " does not contain the expected separator '|'
When I check backup log in dbacockpit I see:
*** SAVE/RESTORE result:
ERR
-24988,ERR_SQL: SQL error
-903,Host file I/O error
3,Data backup failed
1,Backupmedium #1 (/mnt/backup/data/2_completeDataBackup.aed)
Backup error occured, Error code 3700 "hostfile_error"
*** SAVE/RESTORE request:
SAVE DATA CANCEL
*** SAVE/RESTORE request accepted:
OK
*** SAVE/RESTORE result:
ERR
-24988,ERR_SQL: SQL error
-104,DBM command impossible at this time
*** DBA Action ends:
Timestamp: 20131230161007 State: Failure
It disturbs our backup quite a bit, backup can't be continued until I manually delete wrong lines in file /sapdb/AED/data/wrk/AED/dbm.knl, for example:
5251A5280245|DAT_000000048|SAVE WARM|2013-10-06 20:00:08|2013-10-06 20:00:08|2013-10-06 20:00:10|2013-10-07 13:28:05| 19449604| |NO |2_CompleteDataBackup
| 15867400| 1| -903|^A^@^@^@^@^@^@^@305<U+05CD>^@^@^@^@^@ 1)322300^?^@^@'1)322300^?^@^@01)322300^?^@^@|
Is this MaxDB error or is there something I can do to stop this error happening again?