How to check in which server mode (e.g. SuperClassic or Superserver) a Firebird database is running?
Asked Answered
A

2

10

The latest Firebird 2.5.x database can run in either Classic, SuperClassic, or SuperServer mode. How can I check in which of these modes an installed database is running?

Aitch answered 6/3, 2013 at 11:15 Comment(2)
From application or on a server?Backswept
On a server. But an application like Flamerobin won't tell me either. It allows me to retrieve the database version, but not the server mode.Aitch
B
15

There's no API that exposes this. But because you're on a server, you can check what process is running.

I.e. on Windows and Firebird 2.5:

  • One fb_inet_server.exe = very likely SuperClassic
  • Multiple fb_inet_server.exe = very likely Classic
  • fbserver.exe = very likely SuperServer
Backswept answered 6/3, 2013 at 15:19 Comment(2)
What if I am in client? I can't retrieve the executable file name from client.Jeraldinejeralee
The client should not have a knowledge on server edition. If you need to, you're doing probably something wrong.Backswept
C
3

Firebird 4+ has RDB$CONFIG table. To read ServerMode see record with rdb$config_name='ServerMode':

select rdb$config_value from RDB$CONFIG where rdb$config_name='ServerMode'
Courtly answered 18/7, 2022 at 14:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.