Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » MobiLink - 服务器管理 » 使用 MobiLink 服务器技术 » MobiLink 服务器选项

 

-o 选项

将输出消息记录到 MobiLink 服务器消息日志文件,并限制记录到 MobiLink 服务器消息窗口的数据。

语法
mlsrv11 -c "connection-string" -o logfile ...
注释

将所有日志消息写入指定文件。请注意 MobiLink 服务器窗口(如果出现)通常只显示记录的部分消息。

在同步期间发生错误时,MobiLink 服务器将在其输出文件中给出完整的错误上下文。错误上下文可能包括以下信息:

  • 用户名   这是由 MobiLink SQL Anywhere 应用程序在同步过程中提供的实际用户名。

  • 修改过的用户名   这就是 modify_user 脚本修改过的用户名。

  • 事务   它会列出出现错误的事务。事务可以是 authenticate_user、begin_synchronization、upload、prepare_for_download、download 或 end_synchronization。

  • 表名   显示表名称(如果存在)或为空。

  • 行操作   操作可以是 INSERT、UPDATE、DELETE 或 FETCH。

  • 行数据   显示引起错误的行的所有列值。

  • 脚本版本   当前用于同步的脚本版本。

  • 脚本   这是导致错误的脚本。

无论选择哪一种详细级别,错误上下文信息都会出现在日志中。

另请参见