我又查了一下,OLAP是不是根据不同的dimension设置权限?是不是Security Subset 权限的问题? With OLAP data, permission conditions can be specified only on dimension objects. The SECURITY_SUBSET option can affect results. See About the SECURITY_SUBSET Option. The members that are returned by the MDX expression must all belong to the dimension on which the permission condition is defined. The returned set of members cannot be a union of members from other dimensions. A permission condition that filters a non-default hierarchy must include at least one member of the default hierarchy. If a requesting user does not have access to any members in the default hierarchy, then the query fails with a permissions error.
看了半天,感觉还是权限问题。。DB的人一口咬定, 说是因为我们输错密码,真是吐血。 Instance level A set of permissions is envisaged for each role. Permission is related to a certain object. At the same time, different permission sets can be provided for one and the same object. It means that users with diverse roles can have access to the same document but see only a specified piece of data. For example, a certain user can recall information about annual sales in Europe for 2017 and in parallel the access to the information about sales of some products can be denied for the same user. The functionality of Ranet OLAP allows to define access rights for users down to rows and even cells. These options enable administrators to implement flexible database security policy. User’s query results in Ranet OLAP pivot table are shown based on SQL Server security model. Ranet OLAP Pivot Grid control is responsible for proper performing of referred actions. To learn more about strong OLAP security capacities of Ranet OLAP Pivot Grid control read our blogpost.
Data warehouse (DW) is a dimensional structure deployed in a RDBMS, e.g. SQL Server DB Engine. An OLAP cube is a dimensional structure implemented in a multidimensional DB, e.g. SQL SSAS server. DW stores the data and supports the cube. Cube stores the structure of the data for fast query. 通常用户run report, 是access the cube, not the DW Access DW vs. Access the DW, 需要连接的database server是不一样的, query language 也是不一样的
回复 35楼ted.hanks的帖子 DB 给的密码。但是我觉得是要改成Windows NT authentication, 这样就不用老输密码 温室小玛茄 发表于 2022-02-01 17:59
SQL Server Analysis Services only supports Windows security identities。你的Excel report如果连的是olap cube, 就只能用windows authentication. 如果是用的SQL Server authentication, 那说明连的是data warehouse
回复 37楼sorasky的帖子 我来抛砖引玉一下,Data warehouse 和OLAP cube是已经建好的系统,不会因为user access/ run report而产生任何变化。DW和Cube是一个Business Intelligence系统的两个重要组成部分,DW is the central data repository on which all reporting and analysis is based. OLAP cube stores the structure of the data for fast query, it is a user interface layer of the BI system
但是这个authentication error只在refreshing的时候发生,重新连接的话是没问题的?我琢磨着是不是security subset还是dimension 权限问题? 不懂,这方面完全小白。真的很迷为什么一开始设置用的了,一refresh就彻底瘫了。。
恳求好心人解答,再次谢过!
我快疯了,Excel建了一个automate report,结果用了没几次就出问题了,每次refresh必然弹出以下窗口。。。然后重新输入密码也没用,就和中毒似的一个劲弹出来。。但是我重新开个file, 链接Server的话,一点问题没有。。 是我这边setting不对吗?
网上找了个类似的图,我是14.0版本。
这和我这贴有什么关系?
你是不是最近改了连接Excel的其他数据库的密码?
没有啊,密码是外部database 公司提供的,我输密码都是原封不动copy & paste。而且应该不是密码的问题,我重新开一个excel file, 连接同样的data server,用同样的credentials,一点问题没有。就是我原来的file用不了,我怀疑是一开始connection设置出错了/refresh时候链接外部数据库trigger了某一个安全设置。。 不知道怎么修理,才能继续用原来的file
maybe you need to remove the cached data source?
不起作用。。
对,估计是权限的问题
问题是我没有权限View OLAP data,所以输了密码,也没用,对话框会一直弹出来。。
这个权限是要database 那边改,还是我们这边IT?
OLAP cube owner要在cube里设置权限
恩,估计是这样。
谢谢谢谢!
十分感谢大家!
不懂,说实话我其实对olap cube 也不是了解很多,用的更多的是data warehouse。
With OLAP data, permission conditions can be specified only on dimension objects. The SECURITY_SUBSET option can affect results. See About the SECURITY_SUBSET Option. The members that are returned by the MDX expression must all belong to the dimension on which the permission condition is defined. The returned set of members cannot be a union of members from other dimensions. A permission condition that filters a non-default hierarchy must include at least one member of the default hierarchy. If a requesting user does not have access to any members in the default hierarchy, then the query fails with a permissions error.
谢谢,我重新设置连接, 倒是没有任何问题,但我发现只要r如果弄了pivot保存file再打开,魔咒输密码的那个弹窗就来了。。。 而且还要输密码也不管用。。 现在研究怎么解决,才能不白费了我之前做好的file
再请问一下,在Cube里面设定权限,是不是会根据不同的dimension。比如说如果我一开始the olap pivot,是从level 2 过来的,Level 2 有权限,后来的pivot弄了个level 3,level 3 刷新的时候没有权限,所以就一直让输密码? 不过这也说不通啊,我刚开始有几次成功过的,后来莫名其妙就不行了。
这个会对olap有影响吗?
Instance level A set of permissions is envisaged for each role. Permission is related to a certain object. At the same time, different permission sets can be provided for one and the same object. It means that users with diverse roles can have access to the same document but see only a specified piece of data. For example, a certain user can recall information about annual sales in Europe for 2017 and in parallel the access to the information about sales of some products can be denied for the same user.
The functionality of Ranet OLAP allows to define access rights for users down to rows and even cells. These options enable administrators to implement flexible database security policy. User’s query results in Ranet OLAP pivot table are shown based on SQL Server security model. Ranet OLAP Pivot Grid control is responsible for proper performing of referred actions.
To learn more about strong OLAP security capacities of Ranet OLAP Pivot Grid control read our blogpost.
OLAP cube user access 是先设定role, 每个role都可以有很详细的规定,具体到不同的dimensions, 或者甚至到某个dimension里的某几个attributes. 然后再把具体的user加入到合适的role里。你这种情况,不管是用existing Excel, 或新开一个Excel, 都应该是用同一个user Credentials 去access这个cube, 不存在权限的差异
你screenshot里的message, 更像是有没有VPN的差异,access cube时你的网络环境应该和cube在同一个局域网,所以需要vpn之后再access, 而不是只通过平时普通的网络连接。如果在公司on-site run 这个Excel, 应该不会有问题,如果WFH, 就需要先VPN,再run这个Excel
太感谢你了,那个图是我在网上找到个类似的。我在公司在家连接VPN都尝试过,都是一个模式,一开始建都能用,保存了后重新打开,那个输密码的窗口就来了,怎么输密码都弄不走,我按了取消之后,就会收到下面的对话框。。
https://social.msdn.microsoft.com/Forums/azure/en-US/d738ed9c-a89d-41f0-8dec-d4ee1790318d/erroran-operation-that-uses-the-database-driver-could-not-be-completed-if-the-driver-is-a?forum=ssdsgetstarted
https://social.msdn.microsoft.com/Forums/office/en-US/f63e756d-e8ea-46f1-825b-544b94926db5/pivot-table-error-an-application-that-uses-the-database-driver-could-not-be-completed?forum=exceldev
谢谢你! 感觉这已经是超出了我的能力范围,算了明天打电话问问IT咋整 #/# 。。
看了楼上大侠给的link的内容,说是firewall block的原因。那只有问IT的人了。 问题解决了,上来回复一下吧,学习学习:)
周五和DB的人有call,看看能不能一次性解决了问题,这个问题解决了,那我现在工作上很多manual的东西都可自动化~
顺便再问一个白痴的问题,Olap cube 和data warehouse 运作是不一样的吧?
DB 给的密码。但是我觉得是要改成Windows NT authentication, 这样就不用老输密码
我这个白痴试着说说我的粗浅认识。 BI report产生流程是这样的。 data warehouse⇨① analysis sever(Olap cube)⇨② excel report 怀疑两个地方出错, ①这里抽取数据失败形成不了第二步的Olap cube ②链接不到Olap cube,也就是analysis sever,需要权限认证。 看报错的画面好像是②有问题。对此好像比较明确。 1的地方是否如我想象的这样,我也想了解。 以上,敬请专业人士指正。
谢谢,有一点我不能理解的是,据我们DB说,貌似olap pivot如果数据库里chart of account变了,原来的pivot 就用不了了。但我原来用data warehouse pivot 从来没听说过会有这种情况?DB说要转成formula,但是convert成formula,原来的reference如果变了,也用不了啊。。 非常迷茫。
你说的这个就是我想了解的。是不是第一步就已经出了问题?你试着做个测试,先保证一定能抽取成功,看能不能成功出report。
我周五问了后上来更新。 现在心里忐忑啊,DB平时邮件语气感觉很傲,不知道到时在老板面前怎么削我,才想着上来取经,有个准备。
通常用户run report, 是access the cube, not the DW
Access DW vs. Access the DW, 需要连接的database server是不一样的, query language 也是不一样的
SQL Server Analysis Services only supports Windows security identities。你的Excel report如果连的是olap cube, 就只能用windows authentication. 如果是用的SQL Server authentication, 那说明连的是data warehouse
我来抛砖引玉一下,Data warehouse 和OLAP cube是已经建好的系统,不会因为user access/ run report而产生任何变化。DW和Cube是一个Business Intelligence系统的两个重要组成部分,DW is the central data repository on which all reporting and analysis is based. OLAP cube stores the structure of the data for fast query, it is a user interface layer of the BI system
这个DB听起来不靠谱啊🤔,chart of account应该只是cube 某个dimension的一个attribute,attribute里的member的value的变化不会影响cube structure,也就不会影响Excel pivot. 如果DB提及的变化会影响cube的structure, 那cube在routine的data refresh过程中,cube process会fail, 所有的用户都不能再access这个cube了,不单单是影响到你的Excel report.
越听越糊涂了,这听起来不像是个正规的DW/cube系统啊
太谢谢你啦,我记得每次refresh的时候,Excel下边说的是olap cube running query。但是有可能是连的是DW?有点糊涂了。
超级感谢你提供这方面的信息,我周五就从这方面入手问问他们。这个DB是我接触过这么多个DB以来,最粗糙的一个,功能/report都像是从上世纪继承衣钵下来的,但是公司所有的人和subsidies都习惯用这个了,一时半会儿是没法更改,只能捏着鼻子勉强继续用。