收藏 分销(赏)

A1-Administration-Tool培训资料.doc

上传人:精*** 文档编号:3868061 上传时间:2024-07-22 格式:DOC 页数:88 大小:1.39MB
下载 相关 举报
A1-Administration-Tool培训资料.doc_第1页
第1页 / 共88页
A1-Administration-Tool培训资料.doc_第2页
第2页 / 共88页
A1-Administration-Tool培训资料.doc_第3页
第3页 / 共88页
A1-Administration-Tool培训资料.doc_第4页
第4页 / 共88页
A1-Administration-Tool培训资料.doc_第5页
第5页 / 共88页
点击查看更多>>
资源描述

1、A1-Administration Tool精品文档Creating a Repository Using the Oracle Business Intelligence Administration ToolPurposeThis tutorial covers using the Oracle Business Intelligence (BI) Administration Tool to build, modify, enhance, and manage an Oracle BI repository.OverviewThis tutorial shows you how to b

2、uild an Oracle BI metadata repository using the Oracle BI Administration Tool. You learn how to import metadata from databases and other data sources, simplify and reorganize the imported metadata into a business model, and then structure the business model for presentation to users who request busi

3、ness intelligence information via Oracle BI user interfaces.Building the Physical Layer of a RepositoryCreate a New Repository1.SelectStart Programs Oracle Business Intelligence BI Administrationto open the Administration Tool. 2.SelectFile New Repository.3.Enter a name for the repository. In this t

4、utorial the repository name isBISAMPLE.4.Leave the default location as is. It points to the default repository directory.5.Leave Import Metadata set toYes.6.Enter and retype a password for the repository. In this tutorialBISAMPLEis the repository password.7 .ClickNext.Import Metadata1 .Change the Co

5、nnection Type toOCI 10g/11g. The screen displays connection fields based on the connection type you selected.2 .Enter a data source name. In this example the data source name isorcl. This name is the same as the tnsnames.ora entry for this Oracle database instance.3 .Enter a user name and password f

6、or the data source. In this example the username and password are bothBISAMPLE. Recall that BISAMPLE is the name of the user/schema you created in the prerequisite section.4 .ClickNext.5 .Accept the default metadata types and clickNext.6 .In the Data source view, expand theBISAMPLEschema.7 .UseCtrl+

7、Clickto select the following tables:SAMP_ADDRESSES_DSAMP_CUSTOMERS_DSAMP_PRODUCTS_DSAMP_REVENUE_FSAMP_TIME_DAY_D8 .Click theImport Selected buttonto add the tables to the Repository View.9 .The Connection Pool dialog box appears. Accept the defaults and clickOK.10 .The Importing message appears.11 .

8、When import is complete, expandBISAMPLEin the Repository View and verify that the five tables are visible.12 .ClickFinishto open the repository.13 .Expandorcl BISAMPLEand confirm that the five tables are imported into the Physical layer of the repository.Verify Connection1 .SelectTools Update All Ro

9、w Counts.2 .When update row counts completes, move the cursor over the tables and observe that row count information is now visible, including when the row count was last updated.3 .Expand tables and observe that row count information is also visible for individual columns.4 .Right-click a table and

10、 selectView Datato view the data for the table.5 .Close the View Data dialog box when you are done. It is a good idea to update row counts or view data after an import to verify connectivity. Viewing data or updating row count, if successful, tells you that your connection is configured correctly.Cr

11、eate Aliases1 .It is recommended that you use table aliases frequently in the Physical layer to eliminate extraneous joins and to include best practice naming conventions for physical table names. Right-clickSAMP_TIME_DAY_Dand selectNew Object Aliasto open the Physical Table dialog box.2 .EnterD1 Ti

12、mein the Name field.3 .In the Description field, enterTime Dimension Alias at day grain. Stores one record for each day.4 .Click theColumnstab. Note that alias tables inherit all column definitions from the source table.5 .ClickOKto close the Physical Table dialog box.6 .Repeat the steps and create

13、the following aliases for the remaining physical tables.SAMP_ADDRESSES_D =D4 AddressSAMP_CUSTOMERS_D =D3 CustomerSAMP_PRODUCTS_D =D2 ProductSAMP_REVENUE_F =F1 RevenueCreate Keys and Joins1 .Select the five alias tables in the Physical layer.2 .Right-click one of the highlighted alias tables and sele

14、ctPhysical Diagram Selected Object(s) Onlyto open the Physical Diagram. Alternatively, you can click the Physical Diagram button on the toolbar.3 .Rearrange the alias table objects so they are all visible. If desired, right-click in the white space of the diagram and select Zoom to change the size o

15、f the objects in the Physical Diagram.4 .Click theNew Foreign Keybutton on the toolbar.5 .Click theD1 Timetable, and then click theF1 Revenuetable. The Physical Foreign Key dialog box opens. It matters which table you click first. The join creates a one-to-many (1:N) relationship that joins the key

16、column in the first table to a foreign key column in the second table.6 .Select theD1 Time. CALENDAR_DATEcolumn, and then selectF1 Revenue.BILL_DAY_DTto join the tables. Ensure that the Expression edit box (at the bottom) contains the following expression:orcl.BISAMPLE.D1 Time.CALENDAR_DATE = orcl.B

17、ISAMPLE.F1 Revenue.BILL_DAY_DT7 .ClickOKto close the Physical Foreign Key dialog box. The join is visible in the Physical Diagram.8 .Repeat the steps to create joins for the remaining tables. Use the following expressions as a guide:orcl.BISAMPLE.D2 Product.PROD_KEY = orcl.BISAMPLE.F1 Revenue.PROD_K

18、EYorcl.BISAMPLE.D4 Customer.CUST_KEY = orcl.BISAMPLE.F1 Revenue.CUST_KEYorcl.BISAMPLE.D5 Address.ADDRESS_KEY = orcl.BISAMPLE.D4 Customer.ADDRESS_KEY9 .Click theXin the upper right corner to close the Physical Diagram.10 .SelectFile Saveor click theSavebutton on the toolbar to save the repository.11

19、.ClickNowhen prompted to check global consistency. Checking Global Consistency checks for errors in the entire repository. Some of the more common checks are done in the Business Model and Mapping layer and Presentation layer. Since these layers are not defined yet, bypass this check until the other

20、 layers in the repository are built. You learn more about consistency check later in this tutorial.12 .Leave the Administration Tool and the repository open for the next topic.Congratulations! You have successfully created a new repository, imported a table schema from an external data source into t

21、he Physical layer, created aliases, and defined keys and joins.In the next topic you learn how to build the Business Model and Mapping layer of a repository.Building the Business Model and Mapping Layer of a RepositoryCreate a Business Model1.Right-click the white space in the Business Model and Map

22、ping layer and selectNew Business Modelto open the Business Model dialog box.2.EnterSample Salesin the Name field. LeaveDisabledchecked.3.ClickOK. The Sample Sales business model is added to the Business Model and Mapping layer.4.In the Physical layer, select the following four alias tables:D1 TimeD

23、2 ProductD3 CustomerF1 RevenueDo not selectD4 Addressat this time.5 .Drag the four alias table from the Physical layer to theSample Salesbusiness model in the Business Model and Mapping layer. The tables are added to the Sample Sales business model. Notice that the three dimension tables have the sa

24、me icon, whereas the F1 Revenue table has an icon with a # sign, indicating it is a fact table.Examine Logical Joins1.Right-click theSample Salesbusiness model and selectBusiness Model Diagram Whole Diagramto open the Business Model Diagram.2 .If necessary, rearrange the objects so that the join rel

25、ationships are visible.Because you dragged all tables simultaneously from the Physical layer onto the business model, the logical keys and joins are created automatically in the business model. This is because the keys and join relationships were already created in the Physical layer. However, you t

26、ypically do not drag all physical tables simultaneously, except in very simple models. Later in this tutorial, you learn how to manually build logical keys and joins in the Business Model and Mapping layer. The process is very similar to building joins in the Physical layer.3.Double-click any one of

27、 the joins in the diagram to open the Logical Join dialog box. In this example the join between D1 Time and F1 Revenue is selected.Notice that there is no join expression. Joins in the BMM layer are logical joins. Logical joins express the cardinality relationships between logical tables and are a r

28、equirement for a valid business model. Specifying the logical table joins is required so that Oracle BI Server has necessary metadata to translate logical requests against the business model into SQL queries against the physical data sources. Logical joins help Oracle BI Server understand the relati

29、onships between the various pieces of the business model. When a query is sent to Oracle BI Server, the server determines how to construct physical queries by examining how the logical model is structured. Examining logical joins is an integral part of this process. The Administration Tool considers

30、 a table to be a logical fact table if it is at the “many” end of all logical joins that connect it to other logical tables.4 .ClickOKto close the Logical Join dialog box.5 .Click theXto close the Business Model Diagram.Examine Logical Columns1 .Expand theD1 Timelogical table. Notice that logical co

31、lumns were created automatically for each table when you dragged the alias tables from the Physical layer to the BMM layer.Examine Logical Table Sources1 .Expand theSourcesfolder for theD1 Timelogical table. Notice there is a logical table source, D1 Time. This logical table source maps to the D1 Ti

32、me alias table in the Physical layer.2 .Double-click theD1 Timelogical table source (not the logical table) to open the Logical Table Source dialog box.3 .On the General tab, rename the D1 Time logical table source toLTS1 Time. Notice that the logical table to physical table mapping is defined in th

33、e Map to these tables section.4 .On the Column Mapping tab, notice that logical column to physical column mappings are defined. If mappings are not visible, selectShow mapped columns.5 .You learn more about the Content and Parent-Child Settings tabs later in this tutorial when you build logical dime

34、nsion hierarchies. ClickOKto close the Logical Table Source dialog box. If desired, explore logical table sources for the remaining logical tables.Rename Logical Objects Manually1.Expand theD1 Timelogical table.2.Click on the first logical column,BEG_OF_MONTH_WID, to highlight it.3.Click onBEG_OF_MO

35、NTH_WIDagain to make it editable.4 .RenameBEG_OF_MONTH_WIDtoBeg of Mth Wid. This is the manual method for renaming objects. You can also right-click an object and selectRenameto manually rename an object.Delete Unnecessary Logical Objects1 .In the BMM layer, expandSample Sales F1 Revenue.2 .UseCtrl+

36、Clickto select all F1 Revenue logical columns except forRevenueandUnits.3 .Right-click any one of the highlighted logical columns and selectDelete. Alternatively you can select Edit Delete or press the Delete key on your keyboard.4 .ClickYesto confirm the delete.5 .Confirm that F1 Revenue contains o

37、nly theRevenueandUnitscolumns.Create Simple Measures1 .Double-click theRevenuelogical column to open the Logical Column dialog box.2 .Click theAggregationtab.3 .Change the default aggregation rule toSum.4 .ClickOKto close the Logical Column dialog box. Notice that the icon has changed for the Revenu

38、e logical column indicating that an aggregation rule has been applied.5 .Repeat the steps to define theSUMaggregation rule for theUnitslogical column.Measures are typically data that is additive, such as total dollars or total quantities. The F1 Revenue logical fact table contains the measures in yo

39、ur business model. You aggregated two logical columns by summing the column data.6 .Save the repository without checking global consistency.Congratulations! You have successfully built a business model in the Business Model and Mapping layer of a repository and created business measures.Creating Cal

40、culation MeasuresCreate a Calculation Measure Derived from Existing Columns1 .In the BMM layer, expandSample Sales F1 Revenue.2 .Right-clickF1 Revenueand selectNew Object Logical Columnto open the Logical Column dialog box.3 .On the General tab, enterActual Unit Pricein the Name field.4 .Click theCo

41、lumn Sourcetab.5 .SelectDerived from existing columns using an expression.6 .Click theEdit Expressionbutton to open Expression Builder.7 .In the left pane selectLogical Tables F1 Revenue Revenue.8 .Click theInsert selected itembutton to move the Revenue column to the right pane.9 .Click thedivision

42、operatorto add it to the expression.10 .In the left pane selectLogical Tables F1 Revenueand then double-clickUnitsto add it to the expression.11 .ClickOKto close Expression Builder. Notice that the formula is added to the Logical Column dialog box.12 .ClickOKto close the Logical Column dialog box. T

43、heActual Unit Pricecalculated measure is added to the business model.13 .DragActual Unit Pricefrom the BMM layer to theBase Factspresentation table in the Presentation layer.14 .Save the repository and check consistency. Fix any errors or warnings before proceeding.Create a Calculation Measure Using

44、 a Function1 .In the BMM layer, right-clickF1 Revenueand selectNew Object Logical Columnto open the Logical Column dialog box.2 .On the General tab, enterRevenue Rankin the Name field.3 .Click theColumn Sourcetab.4 .SelectDerived from existing columns using an expression.5 .Click theEdit Expressionb

45、utton to open Expression Builder.6 .In the left pane selectFunctions Display functions Rank.7 .Click theInsert selected itembutton to move the Rank function to the right pane.8 .Clickin the expression.9 .In the left pane selectLogical Tables F1 Revenueand then double-clickRevenueto add it to the expression.10 .ClickOKto close Expression Builder. Notice that the formula is added to the Logical Column dialog box.11 .ClickOKto close the Logical Column dialog box. The Revenue Rank calculated measure is added to the

展开阅读全文
相似文档                                   自信AI助手自信AI助手
猜你喜欢                                   自信AI导航自信AI导航
搜索标签

当前位置:首页 > 教育专区 > 其他

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        获赠5币

©2010-2024 宁波自信网络信息技术有限公司  版权所有

客服电话:4008-655-100  投诉/维权电话:4009-655-100

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :gzh.png    weibo.png    LOFTER.png 

客服