跳转到主内容
Waters China

无法登录 NuGenesis SDMS Audit Trail Viewer - WKB17253

故障描述

  • 登录 SDMS Audit Trail(审计追踪)时出现以下错误信息:
    • A general exception occurred during database access.(数据库访问期间发生一般异常。)
  • 单击 OK(确定)后,用户将进入 Audit Trail(审计追踪)主页面,但没有 Data View(数据视图)可用,Audit Trail Viewer 不起作用
  • Apache Tomcat 日志文件中出现以下错误信息:
    • Exception: java.sql.SQLException: [Oracle][ODBC]Driver not capable.(异常:java.sql.SQLException:[Oracle][ODBC] 驱动程序不支持。)
  • NuGenesis SDMS WebVision 站点正常运行

环境

  • NuGenesis 9 SDMS
    • Windows Server 2012 或 2016
    • 适用于 NuGenesis 9.1 中的早期 Audit Trail Viewer Web 应用程序,但不适用于新的 Audit Trail Viewer Web 应用程序
  • NuGenesis 8 SDMS
    • Windows Server 2008 或 2012

原因

Web 服务器上 NuGenesis 系统 DSN 的 ODBC 驱动程序设置未正确配置。

解决方法

  1. 登录 NuGenesis SDMS Web 服务器。
  2. 单击 Start menu > All Programs > Waters Oracle Client > Configuration Tools > Microsoft ODBC Administrator(“开始”菜单 >“所有程序”> Waters Oracle Client >“配置工具”> Microsoft ODBC Administrator)
  3. 单击 System DSNs(系统 DSN)选项卡。
  4. 选择 _NG_PROJ80_ORACLEINFO_ (NuGenesis 8) 或 _NG_PROJ_ORACLEINFO_ (NuGenesis 9),然后单击 Properties(属性)按钮。
  5. 在 Application(应用程序)、Oracle、Workarounds(解决方法)和 SQLServer Migration(SQLServer 迁移)选项卡上设置下面列出的属性:
    • Application(应用程序):
      • Enable Result Sets(启用结果组):选中
      • Enable Query Timeout(启用查询超时):选中
      • Read-Only Connection(只读连接):未选中
      • Enable Closing Cursors(启用关闭光标):未选中
      • Enable Thread Safety(启用线程安全):选中
      • Batch Autocommit Mode(批量自动提交模式):仅在所有语句都成功时提交
      • Numeric Settings(数值设置):使用 Oracle NLS settings 设置
    • Oracle:
      • Fetch buffer size(提取缓冲大小):64000
      • Enable LOBs(启用 LOB):选中
      • Enable statement caching(启用语句缓存):未选中
      • Cache buffer size(缓存缓冲大小):20
      • Enable failover(启用故障转移):选中
      • Retry(重试):10
      • Delay(延迟):10
    • 解决方法:
      • Bind TIMESTAMP as DATE(将时间戳绑定为日期):选中
      • Disable SQLDescriptionParam(禁用 SQLDescriptionParam):未选中
      • Force SQL_WCHAR Support(强制 SQL_Wchar 支持):未选中
      • Bind NUMBER as FLOAT(将数值绑定为浮点数):未选中
      • Disable Microsoft Transaction Server(禁用 Microsoft Transaction 服务器):选中
      • Disable RULE Hint(禁用规则提示):选中
      • Set Metadata Id Default to SQL_TRUE(将元数据 ID 设置为缺省值 SQL_TRUE):未选中
    • SQLServer Migration(SQLServer 迁移):
      • Enable EXEC Syntax(启用 EXEC 语法):未选中
  6. 单击 OK(确定)。
  7. 验证其他 DSN (_NG_PROJLIST_MASTER80_ / _NG_PROJLIST_MASTER_) 的属性已按上述方式配置。
  8. 关闭所有打开的浏览器会话,然后重新登录 NuGenesis Audit Trail Viewer。