关于建模的几个问题

[复制链接]
查看11 | 回复2 | 2011-2-18 11:43:33 | 显示全部楼层 |阅读模式
1.Inmon理论建立的DataMart的建模方法是什么?还是ER方式吗?如何在实际中应用?
2.如果按照Inmon建立的3NF的数据仓库,是否一定要建立主外键约束关系?在维度建模中,这种主外键约束关系是否也必须建立?如果建立,是否有什
么问题?

3.对于Inmon建立的3NF的数据仓库,保持历史数据,是增加一个时间字段和原来的主键一起成为一个新主键?那他是否使用代理键?

4.如何处理多语言的问题?比如在Cognos做展现的时候,需要看到不同语言对应的分析内容,当然主要是维度信息?
回复

使用道具 举报

千问 | 2011-2-18 11:43:33 | 显示全部楼层
1、star or snow schema
2、一般不做强制约束,逻辑约束也都可以
3、keep history data 有几种办法,代理键算是一种
4、use parameter maps
回复

使用道具 举报

千问 | 2011-2-18 11:43:33 | 显示全部楼层
感谢回复
1.既然如此,那和Kimball的dimensional modeling建立的data mart有什么区别呢?
2.在物理层上不做约束,只是逻辑约束?
3.CIF一般好像都采用增加一个时间列和原来的主键共同作为新的主键,是这样吗?
4.你说的用parameter maps,具体如何使用。我看到一篇文章中有如下的方法:
If the mart needs to supports different languages for different users, some database system (such as Oracle) provide tricks to easily create transparent multilingual environments. In Oracle, a single database instance can support multiple schemas. It also allow you to create synonyms in one schema to reference a table in another schema.
As an example, let's say you need to create a data mart that must support both English and French users. Within Oracle you would create three schemas:

l One to hold non-language-sensitive data, such as fact tables

l One to hold English language dimension tables

l One to hold French language dimension tables


The dimension tables in both the English and French schemas would use the same table and column names and the same primary key values so they appear to be same to the query tools. The language-sensitive schemas would also contain synonyms pointing to the fact and other tables in the common schema.
The data delivery process would simply create two versions of the dimension tables, one in each language. User accounts would be established with either the English schema or the French schema as the default schema, based on the user's language preference. When the user logged into the database, the user would be presented with dimensional data in the language of choice.
建立了多个schema之后,如何在具体的工具,比如Cognos中应用呢,做到用户登录后就可以看到自己设定的语言的内容了,是数据库中的内容即报表上显示的内容,不是工具界面上。
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行