如何从 Firebird 服务器获取命令历史记录

How to get a commands history from Firebird server

是否有可能从 firebird 服务器接收命令历史记录?我在其他引擎中看到过类似的东西,提交的命令保存在 txt 文件中。

我想你要找的是 Firebirds Trace and Audit Services:

The new trace and audit facilities enable various events performed inside the engine, such as statement execution, connections, disconnections, etc., to be logged and collated for real-time analysis of the corresponding performance characteristics.

A trace takes place in the context of a trace session. Each trace session has its own configuration, state and output.

The Firebird engine has a fixed list of events it can trace. It can perform two different sort of traces: a system audit and a user trace. How the engine forms the list of events for a session depends on which sort of trace is requested.