由于使用的用户定义的度量名称类似于预定义度量名称,而导致业务度量模型导入失败

如果导入的业务度量模型包含名称类似于任何预定义度量名称的用户定义的度量,那么业务度量模型的导入可能会失败。

当您在业务度量编辑器中利用任何预定义度量的名称对度量进行建模时,不能在业务度量模型中定义任何度量。 这会导致 WebSphere® Business Monitor 管理控制台中的业务度量模型失败,出现下列异常:

COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL0803N One or more values in theINSERT statement, UPDATE statement, or foreign key update caused by a DELETE statement are notvalid because the primary key, unique constraint or unique index identified by "2" constrainstable "REPOS.META_MONITOR_METRIC" from having duplicate rows for those columns.SQLSTATE=23505
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(Unknown Source)
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throw_SQLException(Unknown Source)
at COM.ibm.db2.jdbc.app.SQLExceptionGenerator.check_return_code(Unknown Source)
at COM.ibm.db2.jdbc.app.DB2PreparedStatement.execute2(Unknown Source)
at COM.ibm.db2.jdbc.app.DB2PreparedStatement.execute(Unknown Source)
at com.ibm.wbimonitor.repository.importer.OMEntity.insertEntity(OMEntity.java:714)
at com.ibm.wbimonitor.repository.importer.Metric.accept(Metric.java:48)
at com.ibm.wbimonitor.repository.importer.RepositoryManager.
importModelList(RepositoryManager.java:409)
at com.ibm.wbimonitor.repository.importer.RepositoryManager.
repositoryImport(RepositoryManager.java:234)
at com.ibm.wbimonitor.repository.importer.RepositoryManager.
repositoryImport(RepositoryManager.java:198)
at com.ibm.wbimonitor.repository.importer.Run.main(Run.java:60)

以下列出了所有预定义的 名称,业务度量编辑器中的所有度量、计数器和秒表的名称都不能采用这些名称。

业务度量编辑器中的预定义名称
过程 本地过程和循环
Process Instance Parent ID  
Process Instance ID  
Process Instance Name  
Process Instance Description  
Start Time Start Time
Elapsed Duration Elapsed Duration
Working Duration Working Duration
State State
Is Delayed  
Caller MC Definition Id  
Caller MCIID  
Caller Table Physical Name  
  Instance Parent ID
  Instance Description

Copyright IBM Corporation 2005, 2006. All Rights Reserved.