The simple mode finds the GTR programs on a computer and migrates their Firebird 2.5 databases to Firebird 5. It then adapts the database configuration of each program and tests the connection. A log records each step.
The labels of the tool are in English.
Run the migration
- Download the GTR Firebird setup from https://dl.gtr.de/FirebirdServerSetup and run it. Store the credentials from the last setup page in a safe place.
- Close ProfDia and all other GTR programs.
- On the last setup page, leave Migrate GTR databases now ticked and click Finish. To start later, open the Start menu and click Migrate GTR Databases. The tool takes about 30 to 60 seconds to start, depending on the computer. Wait until its window opens and do not start it a second time.
- The tool needs administrator rights. It shows a notice, then Windows asks for confirmation. Someone from your IT department may have to enter an administrator password.
- The tool searches the computer and lists the programs it found. Remove the tick in the Use column for old copies you no longer use.
- Click Start migration. The tool runs its checks first. If a check fails, solve the problem named in the window and click Retry.
- Wait until each row is green or red. A large database can take a long time. Do not switch off the computer.
- Start ProfDia and check that it opens the migrated database. The test of the tool cannot load the 32-bit driver of your program.
Click Open log to read the log. Run Removing Firebird 2.5 after all programs work with the migrated databases.
What the search finds
The tool searches all local hard disks, three folder levels deep. A folder counts if its name contains profdia, exprog or nestcut and it holds NCPro_db.ini or Nestcut_db.ini. Case does not matter. The folders Windows, Users and ProgramData on the top level are not searched.
A folder without an exe counts as a working copy. ExProg machines keep such copies of the configuration for manual mode, automation and other contexts. The tool leaves these folders out of the list and names them in the log.
Use Add… to add a program folder or a database file the search did not find. A folder you add counts even without an exe.
The tool reads the active section of each INI file:
| Active section | What the tool does |
|---|---|
| Firebird, database on this computer | Works on the database, see the next table |
| Firebird, database on another computer | Adapts the configuration only, see Client computers |
SQL Server (ADO) | Nothing. If all programs use SQL Server, the tool says that no migration is needed |
| Alias instead of a path, missing file, or a file that is not on a local hard disk | Nothing. The row names the reason |
The file header of the database decides the action:
| Database | INI file | Action |
|---|---|---|
| Firebird 2.5 | Any | Migrate, adapt configuration, test |
| Firebird 5 | Firebird 2.5 | Adapt configuration, test |
| Firebird 5 | Firebird 5 | Test |
The tool can run again at any time. A database that is already migrated stays as it is.
If two programs use one database, the tool migrates it once and adapts both programs. If you remove the tick of one of them, the window warns that this program will stop working. If you remove all ticks of a database, the database stays unchanged.
Checks before the migration
The tool changes nothing until these checks pass:
- The Firebird 5 server answers and accepts the login.
- A Firebird 2.5 server accepts the login, or the embedded Firebird 2.5 package of the setup is present.
- No program runs from the program folder, and the database file is not open.
- The drive has enough free space. Each database needs its own size, the largest database counts twice, and the tool adds 10 percent.
- Firebird 5 can write to the folder of the database, the INI file is writable, and the new driver exists.
If a server rejects the password, a password field appears. The tool does not store the password you type.
If one database fails a check, you can remove its tick and continue with the others.
Not enough disk space
- Copy the database to another computer and run the migration there.
- Copy the migrated file back to the same place on the original computer.
- Start the tool again. It sees the migrated database and only adapts the configuration.
What happens to the database
- The tool creates a backup in a work folder next to the database.
- Firebird 5 restores the backup into a temporary file next to the database.
- The tool connects to the temporary file.
- The old database gets the name
<database>_orig, and the temporary file takes the name of the database. An existing_origfile stays, and the new copy gets a time stamp in its name. - The tool removes the work folder and adapts all INI files of this database.
- The tool tests the connection with the new values and checks the driver.
A failure up to step 3 leaves the database unchanged, and the tool continues with the next database.
If a step after the migration fails, the row turns red. Start the tool again to repeat that step. It does not migrate the database a second time.
The tool keeps a copy of each INI file as <file>.<date_time>.bak and the old values in a backup section of the file. For details, see Migrating the database configuration.
Database server
A database server often has no GTR program. In this case the search finds nothing.
- Click This is a database server.
- Select the database file. The file must be on a local hard disk of this computer.
- Click Start migration.
The tool reads the ports and the passwords from .env. The migration of a database on a server stops the clients from working until they are adapted.
Client computers
The tool does not migrate a database on another computer. Migrate it on the server first, then run the GTR Firebird setup and this tool on each client. The setup installs the driver the client needs.
For a program whose database is on another computer, the tool asks:
- whether the migrated database is still on the same server
- for the Firebird 5 password of the server
If the database moved to another server, select The migrated database is on another server and enter the server, the port and the path.
The tool connects to the server and checks that the database has the Firebird 5 format. Only then does it adapt the INI file. If the check fails, the message is Migrate the database on the server first.
For several programs on one server, the tool asks once.
Log file
The log is migration_<date_time>.log in C:\ProgramData\GTR mbH\Firebird-Management. It contains the steps with time stamps, the results and the complete error messages. It contains no passwords.
The log also lists the old databases. Delete them after about 10 days of successful use of the new databases. Firebird 5 cannot open these files.
Switching from the full application
The button Switch to simple mode at the bottom of the full application starts the simple mode after a question and closes the window. It is disabled while an operation runs.