freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

oracle9iwarehousebuilder培訓(xùn)資料(編輯修改稿)

2025-04-28 23:06 本頁面
 

【文章內(nèi)容簡介】 sures):Quantity NumberAmount Number該事實表的相關(guān)維為:ProductsTimes (use Smart Key PK on day level)CustomersSalesRepsOrderStatusInventory 事實表(name: Inventory) 保存有關(guān)產(chǎn)品庫存的信息,包含以下度量(measures):Quantity_on_Hand該事實表的相關(guān)維為(全部都是最低層次level與缺省值):ProductsTime (use Smart Key PK on day level)WarehousesSuppliers維(Dimensions)從事實表看出,數(shù)據(jù)倉庫中需要建立7個維表。為簡便起見,各層次在屬性上比較緊湊。以下描述了各維的詳細信息:* 標(biāo)有星號的屬性為關(guān)鍵域,缺省被命名為‘ID’ 。將其改名為如下所示。維表名維前綴ProductsPDLevel NameLevel PrefixCategoryCTProductPRLevel NameAttribute Datatype/LengthCategory*Prod_CategoryNumberProd_Cat_NameVarchar2(50)Prod_Cat_DescVarchar2(1000)Product*Prod_IDNumber Prod_NameVarchar2(125)Prod_DescVarchar2(2000)Prod_List_PriceNumber (precision 8,scale 2)Prod_Min_PriceNumber (precision 8, scale 2)Hierarchy NameHierarchy PrefixProd_RollupProd_RollupHierarchy NameLevelsProd_RollupCategoryProduct維表名維前綴Order_StatusOSLevel NameLevel PrefixStatusSTLevel NameAttribute Datatype/LengthStatus*Status_IDNumberStatus_CodeVarchar2(3)Status_DescVarchar2(15)Hierarchy NameHierarchy PrefixStat_RollupStat_RollupHierarchy NameLevelsStat_RollupStatus維表名維前綴WarehousesWHLevel NameLevel PrefixWarehouseWHLocationLNCountryCTLevel NameAttribute Datatype/LengthCountry*Country_IDVarchar2(2)CountryVarchar2(50)Location*Location_IDNumberStreetVarchar2(40)Postal_codeVarchar2(12)CityVarchar2(40)State_ProvinceVarchar2(30)Warehouse*WH_IDNumber WarehouseVarchar2(50)Hierarchy NameHierarchy PrefixWH_RollupWH_RollupHierarchy NameLevelsWH_RollupCountryLocationWarehouse維表名維前綴CustomersCSLevel NameLevel PrefixCountryCTCustomerCSLevel NameAttribute Datatype/LengthCountry*Country_IDVarchar2(2)CountryVarchar2(50)Customer*Cust_IDNumber Cust_First_NameVarchar2(40)Cust_Last_NameVarchar2(40)StreetVarchar2(40)Postal_codeVarchar2(12)CityVarchar2(40)State_ProvinceVarchar2(30)Account_MgrVarchar2(25)Hierarchy NameHierarchy PrefixCust_RollupCust _RollupHierarchy NameLevelsCust _RollupCountryCustomer維表名維前綴Sales_RepsSRLevel NameLevel PrefixSales_RepSRCountryCTRegionRGLevel NameAttribute Datatype/LengthCountry*Country_IDVarchar2(2)CountryVarchar2(50)Region*Region_IDNumberRegionVarchar2(40)Sales_Rep*SalesRep_IDNumber First_NameVarchar2(50)Last_NameVarchar2(50)ManagerVarchar2(50)DepartmentVarchar2(50)Hierarchy NameHierarchy PrefixSalesRep_RollupSalesRep_RollupHierarchy NameLevelsSalesRep_RollupRegionCountrySales_Rep維表名維前綴SuppliersSPLevel NameLevel PrefixSupplierSPLevel NameAttribute Datatype/LengthSupplier*Supplier_IDNumberSupplier_NameVarchar2(35)Supplier_StatusVarchar2(10)Hierarchy NameHierarchy PrefixSupp_RollupSupp_RollupHierarchy NameLevelsSupp_RollupSuppliers最后需要創(chuàng)建的維是時間維。 使用Warehouse Builder向?qū)?chuàng)建,最低級別為Day,可以選擇你希望看到得時間維,如季、月。所有命名都是標(biāo)準(zhǔn)的??梢栽跁r間維上創(chuàng)建多種層次。創(chuàng)建維表與事實表為了輸入上面提到的信息,需要首先創(chuàng)建一個新的模塊,命名為Warehouse。打開該模塊并:1. 在維節(jié)點,選擇創(chuàng)建維,然后利用向?qū)?chuàng)建維。2. 在創(chuàng)建完每一個維后,進行提交3. 作為創(chuàng)建維的最后一步,記得用向?qū)?chuàng)建一個時間維。4. 同樣也要提交。5. 創(chuàng)建兩個事實表,在事實表節(jié)點,利用向?qū)?chuàng)建6. 記住要在維的最低層次上進行鏈接7. 將外鍵重命名為描述性的名字(也可直接用默認(rèn)值)8. 選中從外關(guān)鍵字創(chuàng)建分段的唯一關(guān)鍵字。 9. 提交至此就完成了數(shù)據(jù)源、分段傳輸區(qū)及目標(biāo)數(shù)據(jù)倉庫的工作。下一步我們將創(chuàng)建映射以完成數(shù)據(jù)從數(shù)據(jù)源到數(shù)據(jù)倉庫的工作。 Module 4: 建立映射及轉(zhuǎn)換Warehouse Builder 允許在存儲庫中創(chuàng)建、導(dǎo)入及維護PL/SQL。本模塊將展示如何做并在映射中利用它。映射將在本模塊的后半部分練習(xí)。創(chuàng)建 PL/SQL Function1. 為了創(chuàng)建一個函數(shù)(function),在Warehouse 模塊中,打開轉(zhuǎn)換庫,點鼠標(biāo)右鍵創(chuàng)建一個新的function 2. 命名為GET_TIME_ID3. 不要設(shè)定輸入?yún)?shù),點擊 。4. 在窗口中輸入如下代碼,部分內(nèi)容已按照格式給出,粗體部分為添加進去的。:initialize variables herev_return number。 main bodyBEGIN select da_id into v_return from TIMES where = sysdate。 RETURN v_return。END。5. 保存,提交。導(dǎo)入一個已經(jīng)存在的過程(Procedure)1. 為了在Warehouse Builder中重用已經(jīng)存在的PL/SQL 代碼,進入需要使用存儲過程的模塊中選擇導(dǎo)入,本例中,導(dǎo)入Warehouse 模塊2. 創(chuàng)建一個指向HR的新的數(shù)據(jù)庫鏈路以導(dǎo)入數(shù)據(jù)。3. 選擇導(dǎo)入,并只選中PL/SQL轉(zhuǎn)換。4. 將會看到兩個對象。選擇導(dǎo)入其中的一個或兩個。5. 驗證導(dǎo)入6. 可選擇“添加到共享庫”創(chuàng)建映射裝載數(shù)據(jù)下面我們創(chuàng)建映射將數(shù)據(jù)從不同數(shù)據(jù)源將數(shù)據(jù)抽取到數(shù)據(jù)倉庫。首先是將數(shù)據(jù)裝載入維表,然后再是事實表。映射維首先創(chuàng)建產(chǎn)品Products維。下面描述創(chuàng)建數(shù)據(jù)源到數(shù)據(jù)目標(biāo)的映射。ProductsSource objects:Table: Table: Target:Dimension: Warehouse.ProductsMapping Activities:1. 在Warehouse模塊中創(chuàng)建維 wh_products_map 2. 添加合適的數(shù)據(jù)操作符3. 連接全部的列到j(luò)oiner4. 對于兩
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1