大豌豆
作者大豌豆·2015-09-08 10:06
自由撰稿人·NA

Cognos系统急诊室——CM-CFG-5064

字数 1370阅读 2889评论 2赞 3

急诊室,顾名思义,进来的都是危重病人。来到Cognos系统急诊室的系统都是hang、启动不了、不能运行report,小病小灾请去门诊。


********************** 宕机

完全没有做任何操作,忽然间报错,然后就不能启动。

win2003/cognosPlanning

报错:CM-CFG-5064 A Content Manager configuration error was detected while creating the initialcontent objects. 

CM-SYS-5227 A database constraint violationwas detected. The current database transaction will be rolled back.Method-Name: "handleSQLExceptionForNewObject" Object-ID:"1031".  Violation of PRIMARYKEY constraint 'PK_CMOBJECTS'. Cannot insertduplicate key in object 'dbo.CMOBJECTS'. The duplicate key value is (1031).Cause: Violation of PRIMARY KEY constraint 'PK_CMOBJECTS'.Cannot insert duplicate key in object 'dbo.CMOBJECTS'.

The duplicate keyvalue is (1031).    Runtime Exceptionstack trace: com.jnetdirect.jsql.JSQLException:Violation of PRIMARY KEY constraint 'PK_CMOBJECTS'.

 

Untitled picture.png


解决方法:

1. 检查cognos日志,查看是否存在类似报错:unique constraint (schema.PK_name) violated. 如果存在有可能是数据库的问题导致CM不能正常工作,需要做以下的内容

2. 检查consistency check(官网:http://www-01.ibm.com/support/docview.wss?uid=swg21340998

 - 在Cognos Administration中,Server Administration - Internal Content Store Maintenance,check(如果有问题可以尝试fix),记得最后要查看详情

- 执行<install_dir>/configuration/schemas/content/你的数据库/dbCheckConsistency_你的数据库.sql

- 执行<install_dir>/configuration/schemas/content/你的数据库/dbMakeConsistent_你的数据库.sql

3. 重启

4. 不行的话只好拿出以前的资料库备份了

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

3

添加新评论2 条评论

magaochen521magaochen521软件开发工程师Lenovo
2015-09-08 15:09
不错不错 谢谢分享
大豌豆大豌豆自由撰稿人NA
2015-09-08 10:35
可以关注公众号:mosupport
Ctrl+Enter 发表

作者其他文章

相关问题

相关资料

X社区推广