最近项目原型设计,使用MSTR基于excle数据源做了简单的报表项目,开发部署大致流程如下:
一、Excle数据源的导入与报表制作
基于Excle作为数据源,则会省略建模步骤,导入的Excle会自动生成Cube。
1、数据的导入
访问http://localhost/MicroStrategy/asp/Main.aspx,点击添加外部数据源-选择来自磁盘的文件-选择本地Excle文件-修改各个数据项的类型(指标/实体);
2、然后新建文档等新建报表
此处省略
二、项目迁移
MSTR项目迁移时只需要把元数据库进行移植即可;如果项目数据源来自oracle仓库,则只需新建数据源时配置基于对应仓库odbc连接即可。
1、安装MSTR
此处省略
2、元数据库数据生成
新建oracle用户作为元数据库,并且把开发环境元数据库内容导出为dmp文件,导入到新建的元数据库
3、配置元数据库库
点击MSTR Configuration Wizard-配置Intelligence Service(I)-下一步-新建基于DSN的对应元数据库odbc,然后点击下一步即可;
此步骤错误处理:
error1:
CAUSE:
The registry contains an instance of the DUMMY_SERVER data source left over from a previous unsuccessful attempt to configure the Intelligence Server using the Configuration Wizard. This can be verified by running the command './mstrctl -s IntelligenceServer li' in the <MSTR_HOME_PATH>/bin folder (use MSTRCtl.exe on a Microsoft Windows operating system platform) and checking to see if the DUMMY_SERVER name appears in the list.
ACTION:
The command './mstrctl -s IntelligenceServer di DUMMY_SERVER' can be used on Unix/Linux platforms from the <MSTR_HOME_PATH>/bin to remove this instance. On Microsoft Windows operating system platforms the command 'MSTRCtl.exe -s IntelligenceServer di DUMMY_SERVER' may be used. If this does not work, or no DUMMY_SERVER data source is seen, uses should contact MicroStrategy Technical Support for assistance in resolving this issue.
error2:
解决方法:
勾掉完成后启动Intelligence Derver(S),然后配置完之后,在System Manager中启动即可
4、打开Web Administrator
此处添加服务器ip,比如localhost,然后点击添加-连接即可进入项目
error3(运行报表出现错误):
解决办法;
因为基于Excle生成的报表,在迁移项目之后需要重新更新下对应Cube的数据(注意:不可以重新导入数据源,这样会使得Cube Id方式改变,对应的表数据找不到)
所以,编辑Cube,更新数据源数据即可。
附:
给大家推荐Mstr的学习社区
https://community.microstrategy.com/
哈哈,如果对您有帮助,记得帮我点赞<_>