How to run "gfix -icu" bay API calls.

17 views
Skip to first unread message

Elmar Haneke

unread,
Jul 16, 2025, 7:10:13 AMJul 16
to firebird-support

Hello,

I do need some hint and sample how to initiate the "gfix -icu" by API calls.

Elmar

Mark Rotteveel

unread,
Jul 16, 2025, 7:14:14 AMJul 16
to firebird...@googlegroups.com
On 16/07/2025 13:09, Elmar Haneke wrote:
> I do need some hint and sample how to initiate the "gfix -icu" by API calls.
Execute a repair (isc_action_svc_repair) service operation with
isc_spb_rpr_icu.

For an example, see
https://github.com/FirebirdSQL/jaybird/blob/master/src/main/org/firebirdsql/management/FBMaintenanceManager.java
(method fixIcu()).

Mark
--
Mark Rotteveel

Dimitry Sibiryakov

unread,
Jul 16, 2025, 7:14:50 AMJul 16
to firebird...@googlegroups.com
Elmar Haneke wrote 16.07.2025 13:09:
> I do need some hint and sample how to initiate the "gfix -icu" by API calls.

Do exactly what gfix does: add isc_dpb_reset_icu clumplet to DPB on connect.

--
WBR, SD.

Mark Rotteveel

unread,
Jul 16, 2025, 7:15:51 AMJul 16
to firebird...@googlegroups.com
That is not the "proper" way to handle it IMHO. The service operation is
the way to go.

Mark
--
Mark Rotteveel

Dimitry Sibiryakov

unread,
Jul 16, 2025, 7:17:46 AMJul 16
to firebird...@googlegroups.com
'Mark Rotteveel' via firebird-support wrote 16.07.2025 13:15:
> That is not the "proper" way to handle it IMHO. The service operation is the way
> to go.

The service internally call gfix which perform attach using this DPB item, so
both methods should do the same in the end.

--
WBR, SD.

Mark Rotteveel

unread,
Jul 16, 2025, 7:19:26 AMJul 16
to firebird...@googlegroups.com
Yes, but one is the user API, and the other is basically an internal
kludge that users IMHO shouldn't use directly.

Mark
--
Mark Rotteveel

Dimitry Sibiryakov

unread,
Jul 16, 2025, 7:22:43 AMJul 16
to firebird...@googlegroups.com
'Mark Rotteveel' via firebird-support wrote 16.07.2025 13:19:
> Yes, but one is the user API, and the other is basically an internal kludge that
> users IMHO shouldn't use directly.

isc_attach_database() and DPB items are exactly the same, no matter what
application use them. There is no "internal API" here.

--
WBR, SD.
Reply all
Reply to author
Forward
0 new messages