TIBCRestoreService Errors
Posted: Sat 18 Sep 2010 04:38
If I use TIBCRestoreService to restore a multi-file database, it raises the error "unrecognized service parameter block."
In "procedure TIBCRestoreService.SetServiceStartOptions;"
The second AddServiceStartParam needs to be changed to:
Also, in the same area of code, a few lines earlier:
I may be wrong on this, but why is isc_spb_bkp_length (the second AddServiceStartParam line) being specified for a restore? It's not like you can tell FB to restore part of a backup file.
In "procedure TIBCRestoreService.SetServiceStartOptions;"
Code: Select all
p := Pos('=', FDatabase[i]);
if p 0 then begin
AddServiceStartParam(SPBConstantValues[isc_spb_dbname], Copy(FDatabase[i], 1, p - 1));
AddServiceStartParam(isc_spb_res_length, StrToInt(Copy(FDatabase[i], p + 1, MaxInt)));
end
Code: Select all
AddServiceStartParam32(isc_spb_res_length, StrToInt(Copy(FDatabase[i], p + 1, MaxInt)));
Code: Select all
p := Pos('=', FBackupFile[i]);
if p 0 then begin
AddServiceStartParam(isc_spb_bkp_file, Copy(FBackupFile[i], 1, p - 1));
AddServiceStartParam(isc_spb_bkp_length, StrToInt(Copy(FBackupFile[i], p + 1, MaxInt)));
end