OWB试验手册3.docx

上传人:b****0 文档编号:9087717 上传时间:2023-05-17 格式:DOCX 页数:63 大小:1.66MB
下载 相关 举报
OWB试验手册3.docx_第1页
第1页 / 共63页
OWB试验手册3.docx_第2页
第2页 / 共63页
OWB试验手册3.docx_第3页
第3页 / 共63页
OWB试验手册3.docx_第4页
第4页 / 共63页
OWB试验手册3.docx_第5页
第5页 / 共63页
OWB试验手册3.docx_第6页
第6页 / 共63页
OWB试验手册3.docx_第7页
第7页 / 共63页
OWB试验手册3.docx_第8页
第8页 / 共63页
OWB试验手册3.docx_第9页
第9页 / 共63页
OWB试验手册3.docx_第10页
第10页 / 共63页
OWB试验手册3.docx_第11页
第11页 / 共63页
OWB试验手册3.docx_第12页
第12页 / 共63页
OWB试验手册3.docx_第13页
第13页 / 共63页
OWB试验手册3.docx_第14页
第14页 / 共63页
OWB试验手册3.docx_第15页
第15页 / 共63页
OWB试验手册3.docx_第16页
第16页 / 共63页
OWB试验手册3.docx_第17页
第17页 / 共63页
OWB试验手册3.docx_第18页
第18页 / 共63页
OWB试验手册3.docx_第19页
第19页 / 共63页
OWB试验手册3.docx_第20页
第20页 / 共63页
亲,该文档总共63页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

OWB试验手册3.docx

《OWB试验手册3.docx》由会员分享,可在线阅读,更多相关《OWB试验手册3.docx(63页珍藏版)》请在冰点文库上搜索。

OWB试验手册3.docx

OWB试验手册3

设计目标数据仓库

一、DefiningaTargetWarehouseModule

Tobegindesigningthemodelofyourtargetwarehouse,youcanstartbydefiningatargetmodule.Targetmodulescontainthemetadatadefinitionofthetargetobjectsyoudesign.Everytargetmodulemustbemappedtoatargetuserschema.

Therefore,beforeyoucreateaWarehouseBuildertargetmodule,youneedtocreateatargetschemathatwillphysicallystoreyourtargetobjectsondeployment.Then,youmakesurethatthetargetmodulereferencesthistargetschemabyassigninganappropriatelocation.

Tosetupyourtargetwarehousemodule,youperformthefollowingsteps:

CreateaTargetUser

CreateaTargetModule

1、CreateaTargetUser

WhenyoulogintoWarehouseBuilderDesignCenterasrepositoryowner,WarehouseBuilderdisplaystheGlobalExplorerinthelower-rightcorneroftheconsole.YoucandefinethemetadatasecuritystrategiesaccordingtoyourimplementationrequirementsinthisGlobalExplorerpanel.

Youwillnowcreateatargetuserbyperformingthefollowingsteps:

Note:

Alternatively,youcanalsousetheRepositoryAssistanttocreatethistargetuser.

1.

IntheGlobalExplorerpanel,expandtheSecuritynode.Right-clicktheUsersnodeandselectNew.

Note:

Youmustsaveorrevertyourchangesbeforecreatinganewuser.Tosavepreviouschanges,selectSaveAllfromtheDesignmenuorclick

onthetoolbar.

TheRegisterWarehouseBuilderUsersWizardislaunched.ClickNextontheWelcomepage.

 

2.

OntheSelectDBusertoregisterpage,youcanselectfromtheavailablelistofdatabaseusersorcreateanewonethatwillbeautomaticallyregisteredasWarehouseBuildertargetuser.

ClickonCreateDBUsertocreateanewtargetuser.

 

3.

Tobeabletocreateanewtargetuser,youneedtohaveSYSDBAprivileges.IntheCreateDatabaseUserdialogbox,entersysasusernameandsysorasthepassword.

EnterEXPENSE_WH/EXPENSE_WHastheusername/passwordforthenewDBuser.Acceptthedefaultsforthetablespaceproperties.ClickOK.

ObserveEXPENSE_WHhasbeenaddedtotheSelectedUserslist.ClickNext.

 

4.

OntheCheckuserastargetschemapage,ensurethatUsedastargetschemaisselectedfortheEXPENSE_WHuser.ClickNext.

TheTargetUserPassworddialogboxlaunches.Re-enterthesamepassword,expense_whthatyouspecifiedintheCreateDatabaseUserdialogboxfornewDBuser.ClickOK.

OntheSummarypage,examinethedetailsandclickFinish.TheRegisterUsersProgresswindowwillshowthetaskprogress.

 

5.

ExaminetheUsersnode.YoufindtheEXPENSE_WHuseraddedtothelistofexistingtargetusers.

Also,intheConnectionExplorerpanel,expandtheOracleLocationsnodeandnotethatanewlocation,EXPENSE_WH_LOCATION,hasbeenadded.

Note:

Locationsdefineinformationaboutthedatabaseschemaortargettoolwhereyouwillbedeployingobjects.Locationsarespecifictoatypeofmodule,suchasOracleDatabase,SAP,orflatfile.

 

Youhavecreatedanewtargetschema,EXPENSE_WH,whichwillphysicallystoreyourtargetwarehouseobjects.

二、CreateaTargetModule

Younowcreateatargetmodulethatpointstothenewtargetschema.

1.

IntheOWB_DEMOproject,expandtheDatabasesnode,right-clicktheOraclenode,andselectNew.

TheCreateModuleWizardislaunched.ClickNextontheWelcomepage.

 

2.

OntheNameanddescriptionpage,enterEXPENSE_WHasthenameofthemodule.AcceptDevelopmentasthemodulestatusandensurethatWarehouseTargetisselectedasthemoduletype.ClickNext.

 

3.

OntheConnectioninformationpage,fromtheLocationdrop-downlist,selectEXPENSE_WH_LOCATIONasthelocationofthemodule.Observethatalltherelevantconnectiondetailsarealreadyspecified.ThisisbecauseWarehouseBuilderderivesthelocationinformationdirectlyfromtheuseryoucreated.ClickNext.

Note:

BeforeyouselectedEXPENSE_WH_LOCATIONfromtheLocationdrop-downlist,EXPENSE_WH_LOCATION1wasselectedbydefault.Thisisbecausewheneveryoutrytocreateamodule,WarehouseBuilderautomaticallyassignsalocationwith_LOCATIONsuffixedtothemodulename.

Youhaveselectedthelocation,EXPENSE_WH_LOCATION,whichwascreatedwhenyoucreatedtheEXPENSE_WHtargetuser.

OntheSummarypage,examinethedetailsandclickFinish.

 

4.

ObservethattheEXPENSE_WHtargetmodulehasbeenaddedundertheOraclenodeoftheOWB_DEMOproject.ExpandEXPENSE_WHandexamineitscontents.

Untilnow,youhavecreatedanemptytargetmoduleEXPENSE_WHthatmapstoanemptytargetschemaEXPENSE_WH.Now,youstartdesigningyourtargetobjectsinthistargetmodule.

三、CreatingExternalTables

Inthepreviouslesson,youcreatedaflatfilemoduleinwhichyouimportedandsampledtwoflatfiles.Tomoveandtransformdatafromflatfilesintorelationalordimensionaltargets,youcanuseeitheraflatfileoperatororanexternaltable.Externaltablesenableyoutorepresentdatafromfilesourcesinrelationaltableformat.

ExternaltablesallowyoutodirectlyqueryflatfilesfromtheOracledatabaseandalsoquery,join,transform,andconstrainflatfiles.

Usingexternaltablestoaccesssourcedatafromnonrelationalsources,offersanumberofadvantages:

SQLSupportandHeterogeneousJoins:

Whenyouuseexternaltables,youcanqueryandtransformdatacontainedintheflatfilesdirectly;SQLcodeisgeneratedbyWarehouseBuilder.Inaddition,heterogeneousjoinsbetweenflatfilesandrelationaltablesareenabled.

 

EnablingParallelSELECTStatements:

Youcangetparallelaccesstothefilethroughthetable.Forexample,SELECTstatementscanberuninparalleltherebyoptimizingperformance.

 

EliminatingFlat-FileStagingTables:

Whenyouuseaflatfileoperator,WarehouseBuildergeneratesSQL*Loadercodeandyouneedarelationalstagingtabletoloadthedata.Externaltableseliminatetheneedforastagingtablethusreducingtheprocessingtimetoloadflat-filedataandtheneedforextrastoragespace.

InWarehouseBuilder,youcandefineexternaltablesontopofflat-filestructures,deployexternaltablestothedatabase,anduseexternaltablesinmappings.

Now,youcreatetwoexternaltablesthatwillpointtothetwopreviouslysampledflatfiles.

1.

IntheProjectExplorerpanel,expandOWB_DEMO.ExpandDatabases>Oracle>EXPENSE_WH.Right-clickExternalTablesandselectNew.

TheCreateExternalTableWizardislaunched.ClickNextonthewelcomepage.Thewizardguidesyouthroughthecreationofanexternaltable.

 

2.

OntheNameandDescriptionpage,enterEXPENSE_CATEGORIESasthenameoftheexternaltable.ClickNext.

 

3.

OntheFileSelectionpage,selectEXPENSE_CATEGORIES_CSVandclickNext.Thisfile,whichyousampledinthepreviouslesson,containsthemetadatafortheexternaltable.

 

4.

OntheLocationspage,youselectthedefaultlocationthatisusedbytheexternaltable.SelectSOURCE_LOCATIONfromthelocationdrop-downbox.ClickNext.

OntheSummarypage,reviewthedetailsandclickFinish.Thewizardcreatestheexternaltable.InProjectExplorer,youseeEXPENSE_CATEGORIESaddedtotheExternalTablesnode.

Now,yourepeatthesamestepstocreateanexternaltablefortheexport_csvfile.

5.

Right-clickExternalTablesandclickNew.ClickNexttoskipthewelcomepageoftheCreateExternalTableWizard.OntheNameandDescriptionpage,enterEXPENSE_DATAasthenameoftheexternaltable.ClickNext.

 

6.

OntheFileSelectionpage,selectEXPORT_CSVandclickNext.

 

7.

OntheLocationspage,youselectthesamedefaultlocationthatyouselectedforthepreviousexternaltable.SelectSOURCE_LOCATIONfromthelocationdrop-downbox.ClickNext.OntheSummarypage,reviewthedetailsandclickFinish.Thewizardcreatestheexternaltable.

Observe,thatbothexternaltablesareaddedtothetargetmodule.

 

8.

Youneedtoconfigurethephysicalfilesystemdetailsforthetwoexternaltables.Right-clickEXPENSE_CATEGORIESandselectConfigure.

IntheConfigurationPropertiesdialogbox,right-clickDataFilesandselectCreate.Acceptthedefaultname,NEW_DATAFILE_1.

 

9.

OntherightsideintheConfigurationPropertiesdialogbox,selectSOURCE_LOCATIONfortheDataFileLocationproperty.FortheDataFileNameproperty,enterexpense_categories.csv.ClickOK.

 

10.

RepeatthesamestepstoconfiguretheEXPENSE_DATAexternaltable.Theconfigurationshouldlookasshowninthescreenshot.

文件名:

export.csv

ClickOK.

Youhavefinishedcreatingtwoexternaltablespointingtothetwosampledflatfiles.

三、DesigningDimensions

Dimensionsaretheprimaryorganizationalunitofdatainastarschema.ExamplesofsomecommonlyuseddimensionsareCustomer,Product,andTime.

Adimensionconsistsofasetoflevelsandasetofhierarchiesdefinedusingtheselevels.Usersoftenanalyzedatabydrillingdownonknowndimensionhierarchies.Thequeryperformanceisimprovedbecausethequeryoptimizermakessmartdecisionsaboutchoosingwhatdatatouse.

Tocreateadimension,youmustdefinethefollowing:

DimensionAttributes

Levels

LevelAttributes

Hierarchies

Inthissection,youperformthefollowing:

ExaminethePredefinedPRODUCTSDimensionintheDataObjectEditor

CreateREL_TIMEDimensionUsingtheTIMEDimensionWizard

CreateREL_CATEGORYDimensionUsingtheWizard

ExaminethePredefinedPRODUCTSDimensionintheDataObjectEditor

Thistopicintroducesyoutoabasicexampleofadimension.Beforecreatingdimensions,youexamineanexistingonetounderstandthebasicdesignofadimension.

LetusexaminethepredefinedPRODUCTSdimensionforitsdimen

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 经管营销 > 经济市场

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2