firebird - 无法附加到服务管理器错误

标签 firebird firebird2.5

我是 firebird 的新手,我想跟踪我的 firebird 数据库事件,因此我尝试使用审核/跟踪服务。

我的firbird数据库位于服务器:10.7.105.8 我正在我的 cmd 中运行此命令:

C:\Program Files\Firebird\Firebird_2_5\bin>fbtracemgr -se     10.7.105.8:3050:service_mgr -user SYSDBA -password masterkey -start -name "User Trace 1" -config "fbtrace.conf" > C:\Users\Babak\Desktop\trace.out

但我收到此错误:

Can not attach to service manager 
Service 3050 : Service_mgr is not defined

我应该怎么做才能解决这个问题?

非常感谢

编辑

谢谢你的提示。我认为我的跟踪过程工作正常,但我无法在我的trace.out 文件中找到我需要的信息

如果我开始跟踪,我的命令提示符将如下所示:

enter image description here

如果在这一步中我查看 trace.out,我只能看到这个:

Trace Session ID 3 Started

我在我的 firebird 中运行一些选择查询,然后用 ctr+c 完成我的跟踪,然后我在 trace.out 中可以看到的唯一内容是这样的:

Trace session ID 3 started
2015-07-08 10:49:59.868874 ***** loading fbclient.dll proc=4116 64Bit DLL Preload
2015-07-08 10:49:59.869066 GetDllDirectoryA=""
2015-07-08 10:49:59.869075 GetModuleFileNameA="C:\Program Files\Firebird\Firebird_2_5\bin\fbclient.dll"
2015-07-08 10:49:59.869086 Log-Level is set to 0
2015-07-08 10:49:59.869096 fbclient.dll loaded by: C:\Program Files\Firebird\Firebird_2_5\bin\fbtracemgr.exe
2015-07-08 10:49:59.869113 ***** dimensio integration successfully fbclient.dll 

2015-07-08 10:58:10.091330 ***** cleanup unload fbclientorg.dll proc=4116

而不是有关我运行的查询的更多信息。 你能告诉我,我做错了什么吗?或者我还应该做什么?

最佳答案

正如 Mark 所说,检查文件“fbtrace.conf”。这是一个文本文件,您将看到如下内容:

# default database section 
#
<database>
# Do we trace database events or not
enabled false

# Operations log file name. For use by system audit trace only
#log_filename  
....
....

# Put transaction start/end records 
log_transactions false  <--- TO TEST, SET THIS TO TRUE 


# Put sql statement prepare records 
log_statement_prepare false <-- TO TEST, SET THIS TO TRUE

将需要跟踪的内容设置为true,保存文件并检查结果。

关于firebird - 无法附加到服务管理器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31271212/

相关文章:

java - WildFly 8.1.0.Final 上的 Firebird 数据源出现 "Failed to load module"错误

mysql - 将具有 1 到 N 关系的表合并为 1 行记录,并使用 N 条记录的最后一个值

sql - 在 Firebird DB 中创建外键时出错

c# - Guid.Tostring() 在我的数据库中给出了与 UUID_TO_CHAR 不同的表示

sql - Firebird2.5错误: "duplicate value in unique index" without duplicate data

Firebird - 如何枚举用户

sql - SQLCODE 中的标记未知

firebird - 插入查询中的数字溢出

delphi - 嵌入式 Firebird/Delphi 会导致防火墙 'hit' 吗?

sql - 在 firebird select 过程中显示给定月份和年份的所有日期