最具影响力的数字化技术在线社区

168大数据

 找回密码
 立即注册

QQ登录

只需一步,快速开始

1 2 3 4 5
打印 上一主题 下一主题
开启左侧

[Framework] Framework Manager入门教程(十二) - FM逆向工程(MotioPI)

[复制链接]
跳转到指定楼层
楼主
发表于 2015-5-27 11:28:41 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多数据大咖,获取更多知识干货,轻松玩转大数据

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

在搞Java的时候,Java是可以根据class文件逆向生成代码的;cognos呢,居然也可以,在网上找到了一些资料,现分享一下。

有的时候会遇到,本地的FM被删掉或者其他的情况,想要将已经发布的Package逆向生成模型,这种场景还是很常见的。

1. 官方解决方案

How to recover a corrupted or lost Framework Manager model.

[java] view plaincopy

  • 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 of the report exists.
  • 9. Rename CQEConfig.xml created to CQEConfig.xml.recoversave or delete it.
  • 10. Move the newly created <Cognos_Root_Installation>/data/cqe/RTModels directory to a working location.
  • 11. Rename <Cognos_Root_Installation>/data/cqe/ORIGINAL_RTModels directory back to "RTModels".
  • 12. Restart the Cognos Service.
  • 13. Open Framework Manager, create and save a new empty project.
  • 14. Close Framework Manager.
  • 15. Locate the empty Framework Manager project directory and rename the model.xml file to model.xml.origin
  • 16. Copy the the xml file created in steps 8 into the empty Framework Manager project directory and rename the file "model.xml".
  • 17. It should now be possible to open the model in Framework Manager

官方的这里看上去复杂点,以后有机会在尝试吧。

2. 使用MotioPI工具

这个略坑啊,官网上找了半天没找到下载地址,在经过一系列的波折后终于下载到了,

官方的使用教程:http://info.motio.com/Blog/bid/70358/Recover-a-Lost-Cognos-Framework-Manager-Model-in-60-seconds-or-less

官方教程:http://www.motio.com/products/pi/gettingStarted.do

工具下载:

http://download.csdn.net/detail/jolingogo/7785129

这里就分享下我的使用过程吧:

2.1 安装

。。。。。。后面就不贴了,没什么特别的,一路安装就可以了。

我们打开使用:

。。。刚刚使用了下,看上去很强大啊,我们继续

2.2 使用

打开后的界面


在这里,我们需要输入服务器的Dispatch,Gateway,NameSpace,namespace的话可以自动带出来,如果有权限认证的话,需要填上账号,然后登陆即可。

我们暂时找到需要逆向工程的菜单


好了,到这里,就可以导出model.xml了,最后我们新建个项目,把model.xml文件覆盖一下就可以了。



楼主热帖
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 转播转播 分享分享 分享淘帖 赞 踩

168大数据 - 论坛版权1.本主题所有言论和图片纯属网友个人见解,与本站立场无关
2.本站所有主题由网友自行投稿发布。若为首发或独家,该帖子作者与168大数据享有帖子相关版权。
3.其他单位或个人使用、转载或引用本文时必须同时征得该帖子作者和168大数据的同意,并添加本文出处。
4.本站所收集的部分公开资料来源于网络,转载目的在于传递价值及用于交流学习,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。
5.任何通过此网页连接而得到的资讯、产品及服务,本站概不负责,亦不负任何法律责任。
6.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源,若标注有误或遗漏而侵犯到任何版权问题,请尽快告知,本站将及时删除。
7.168大数据管理员和版主有权不事先通知发贴者而删除本文。

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

站长推荐上一条 /1 下一条

关于我们|小黑屋|Archiver|168大数据 ( 京ICP备14035423号|申请友情链接

GMT+8, 2024-5-6 11:35

Powered by BI168大数据社区

© 2012-2014 168大数据

快速回复 返回顶部 返回列表