Page 1 of 1

TIBCRestoreService Errors

Posted: Sat 18 Sep 2010 04:38
by Wade
If I use TIBCRestoreService to restore a multi-file database, it raises the error "unrecognized service parameter block."

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
The second AddServiceStartParam needs to be changed to:

Code: Select all

AddServiceStartParam32(isc_spb_res_length, StrToInt(Copy(FDatabase[i], p + 1, MaxInt)));
Also, in the same area of code, a few lines earlier:

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
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.

Posted: Wed 22 Sep 2010 10:08
by Dimon
Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next IBDAC build.

Posted: Mon 11 Oct 2010 05:06
by Wade
Fixed in version 3.5 ????????????????????????????????
More information on IBDAC 3.50 changes below.

Fixed bug with the LIKE keyword in the TDataSet.Filter property
Fixed bug with filling default expression for fields in the design mode for inactive dataset
Fixed bug in TIBCAlerter

Posted: Mon 11 Oct 2010 14:16
by AndreyZ
Notice that the latest version of IBDAC (3.50.0.17) was released on the 13th of September 2010. You started this topic on the 18th of September 2010.
Please, be more careful. This fix will be included in the next IBDAC build.