急诊室,顾名思义,进来的都是危重病人。来到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'.
解决方法:
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 条评论
2015-09-08 15:09
2015-09-08 10:35