在搞Java的时候,Java是可以根据class文件逆向生成代码的;Cognos呢,居然也可以,在网上找到了一些资料,现分享一下。
有的时候会遇到,本地的FM被删掉或者其他的情况,想要将已经发布的Package逆向生成模型,这种场景还是很常见的。
1. 官方解决方案
How to recover a corrupted or lost Framework Manager model.
Cognos 10.x.x :
Steps :
1. Backup <Cognos_Root_Installation>/configuration/CQEConfig.xml.sample
2. Rename CQEConfig.xml.sample to CQEConfig.xml:
3. Under XML tag : <component name="CQE"> add content :
<section name="General Options">
<entry name="KeepModelXML" value="1" />
</section>
4. Save file and stop Cognos service
5. Rename the directory <Cognos_Root_Installation>/data/cqe/RTModels to "ORIGINAL_RTModels" .
6. Restart the Cognos Service.
7. Launch Cognos Report Studio and create a new report using the package you wish to recover and run it, noting the time.
8. Verify that a new <Cognos_Root_Installation>/data/cqe/RTModels directory has been created and an xml file with a creation time matching the run time o