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

cannot attach to service manager-error

我是 firebird 的新手,我想跟踪我的 firebird 数据库活动,因此我正在尝试使用 Audit/Trace 服务。

我的firbird数据库在服务器:10.7.105.8 我在我的 cmd 中 运行ning 这个命令:

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 文件

中找到我需要的信息

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

如果在这一步我看一下我的 trace.out 我只能看到这个:

Trace Session ID 3 Started

我在我的 firebird 中 运行 宁一些 select 查询,然后我用 ctr+c 完成跟踪,然后是我在 [=43 中可以看到的唯一东西=] 是这样的:

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

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

Firebird 连接字符串的格式为:

host/port:database

其中 /port 是可选的,默认为 3050,database 是数据库的别名或路径,或者是服务的名称。将 :3050 替换为 /3050(或完全不使用)。

正如 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需要跟踪的内容,保存文件并查看结果。

以下对我有用:

  1. 打开开始菜单
  2. 搜索服务并打开
  3. 在服务列表中搜索 Firebird Guardian。
  4. 如果 Firebird Guardian 已停止,则启动它;如果它 运行,则重新启动。
  5. 现在尝试连接您的服务器。它会起作用。