Prior to version 2.10.1, Darwin was shipped with Firebird 2.5 as database server. From version 2.10.1, Darwin uses Firebird4 by default. However, it remains compatible with older versions. For existing installations, you do not need to change anything: even with the old Firebird server installed, everything will continue to work.

Update Darwin2 from Firebird 2.x to Firebird3 or higher

You may wish to upgrade Firebird, for example to use network traffic encryption.

Please observe: You CAN NOT just install the new version of Firebird, as the firebird file format has changed. You have to create a backup of the evolution-database with the old firebird, then upgrade firebird and then restore the backup.

Here's how this is being done:

If you just update the server from Firebird 2 to Firebird 3 or higher and try to connect to the same old database file, an error message is displayed: "Error opening Darwin-database! unsupported on-disk structure for file C:\xyz\EVOLUTION2.FDB; found 11.2, support 12.0". 

The correct way to update Firebird is as follows:

First check that you are currently running Darwin 2.10.1 or later. Older versions of DARWIN2 will not work properly with Firebird 3 or later. If this is not the case, first upgrade DARWIN2, check that everything works and then perform the update of fiebird.

On all PCs (including the server):

  • Close all programs/services connecting to the Darwin database.

On the server:

  • If Liberty is installed
    • Make sure Liberty 2.10.1 or later is installed
    • Stop the Liberty service
  • Create a backup
    • Start the Admin tool, open the "Backup" tab and click "Recording database" / "Backup"
    • If clients are still connected to the database, a warning is displayed -> make first sure that no clients are connected anymore
    • Specify an empty folder, e.g. "C:\MyBak", untick "Reports" and click "OK"
    • Close the AdminTool
    • Rename the old database file (usually located in folder "C:\ProgramData\Darwin2\") from "EVOLUTION2.FDB" to "EVOLUTION2.old"
  • Uninstall Firebird 2.5
  • Install Firebird 4. The installer lets you set a sysdba password. Use the new password in the gbak command below
  • Restore the backup in the new format:
    In a command shell enter:
    • cd "C:\Program Files\Firebird\Firebird_4_0"
    • gbak -R -user sysdba -password masterkey C:\MyBak\EVOLUTION2.Fbk C:\ProgramData\Darwin2\EVOLUTION2.Fdb

 

A list of disc structure numbers can be found here