Design help - incorporating Budget information into star schema
I currently have a star schema.
At the fact level the data is broken down to be as grannular as possible, one row per order line Item with the line price being the main measure.
There is a DimDate
The DimProduct Dimension has ProductCode & Product Category ( I may break this up into two dimensions)
I have now been given a budget that contains Monthly and annual estimates of each test category and expected sales and sale prices, and asked to produce a report that:
On a monthly basis, shows if the actual sales match up with estimates in budget, and if not, lists if its due to insufficient quantity sold, discounted pricing or a combo of the two.
Im not sure how to implement this budget data. Should i:
Create a Budget Dimension that has a row for each month of the budget that contains the estimates?
Should this be imported directly into the fact table without a budget dimension?
Create a seperate new fact table that is a Periodic Snapshot . Would contain One row for each test category per month, with measures for expected and actual amounts.
Any advice on the best way of adding a budget to my model would be appreciated.
Thanks a mil
I was posting in the public forum as someone who may have tackled this before might be able to advise on a solution that may be better than what i come up with. I will try another public forum like sql server central. Thanks
I think what you can do is this
Populate budget info by reducing to day level granularity ie while putting in fact table make date as first day of the month ie datekey corresponding to start of the month from DimDate
This will you can use the existing DimDate itself for relating within the cube
While analysing because you analyze it at month level it will work fine
ie for actuals it will aggregate every transaction (sales) from day level to month and compare it with month level budget (single entry at start of the month)
so you'll get % attained and you can find reasons for that from other sales attributes like discounts etc
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page
Similar Messages
-
How to make this into star schema
Hi experts
I have 4 tables that I would like to turn into a star schema.
table1(fact) has a N:1 to table2(dim)
table2(dim) also has a 1:1 to table3(dim) and 1:1 to table4(dim)
Is it possible to model this into a star schema where table1 (fact) has a N:1 relationship to all tables (dimensions)?
I have modeled this in the administration tool and any queries between table1 and table 2 work but they dont if I involved table3 and 4.
Am unsure how to define 1 to 1 relationships in the physical layer.
cheers
TimTim, could you give us any details on what the dimensions 2, 3, and 4 actually are? Sorry, I think better when I can replace "dim 2" with "person" or whatever.
In any case, pretty unusual to have 1 to 1 relations like that. Sounds more to me like you have a single fact table, with 1 dimension that is "snowflaked"...but with the snowflakes not representing aggregate levels?
I'd try just modeling it as a single dimension joining to the fact table (i.e. combine all three physical dimension tables into one logical dimension table). Then maybe break it up in the presentation layer if you really want to split it for the end users?
Hope this helps,
Scott -
Hi Experts,
Please tell me the places in OBIEE 11G where i can design the start schema.is it only in Physical Layer or In BBM too?
Thanks-BhaskarFinal point, for performance reasons you should also try to model data into star schema in the physical layer.
If the data is modelled as a true star then there are database features which optimise query performance. These features are set by a DBA when the Warehouse is configured (e.g. enable_star_transformations). The results with this parameter on/off can be staggering (query time reduced from minutes to seconds), showing the power of star schema.
When snowflakes occur, these performance features will not work as designed, and performance will be degraded. There are certain criteria that have to be met by the data e.g. bitmap indices on all of the foreign key columns in the fact.
Please mark if helpful / correct,
Andy
www.project.eu.com -
Snow flake schema to star schema
Hi Gurus,
I am having a snow flake schema how can i turn it into star schema.
thanks,
kumarIn Obiee You can use multiple table source and join 2 tables abd make as singel table.
EX A->B->C
Now we need to join B,C and call it D. Then A->D is star Schema.
Steps is. Join B and C in the physical layer. join B to A Drop B into the Logical layer, Now Drop C on top od the B.
Table B wil get all the column from C. Here it wont create 2 sources, It will look like single source only.
IN the column mapping you can mpa the column to desired physical table.
Later as usula you can join B and A in logical layer.
Get A and B into presentaion layer.
mak if correct/helpful
fiaz -
Help to design Star Schema facts and dimensions
Hi
I have the following summarized table that I need to convert to the star schema.
I am totally confused how to create the dimensions. Any help to start with this will be highly appreciated.
I am in an urgent need of it.
Month
AccountId
Cust_id
City
State
Zip
Zip4
AccountMonthsOnBooks
APR
APY
AccountType
OriginationChannel
RewardType
BankProductType
BranchId
CycleEndDate
CycleStartDate
DaysInCycle
DaysInStatement
DirectDepositLastUseDate
FlagElectronicBilling
FlagOverdrawnThisMonth
FlagOverdrawnThisCycle
FlagPaidOverdraft
NumberofTimesOverdraft
OnlineBankingEnrolledIndicator
OnlineBankingLastUseDate
WebLoginCount
OpenDate
OverdraftAmount
OverdraftCount
OverdraftLastDate
OverdraftProtectionIndicator
OverDraftProtectionSourceType
PaidOverdraftAmount
PaidOverdraftCount
PopulationClassIndicator
ProductId
RewardAccruedAmount
RewardBalance
RewardCurrency
RewardRedeemedAmount
RewardsDateEnrolled
RewardsExpirationAmount
RewardTypeBank
RiskScore
RiskScorePlugged
StatementEndDate
StatementStartDate
SubProductId
BalanceADBAmount
BalanceADBNonSweepNonZBAAmount
CycleBeginningBalance
CycleEndingBalance
MonthBeginningBalance
MonthEndingBalance
StatementBeginningBalance
StatementEndingBalance
NonSystemCreditTotalAmount
NonSystemCreditTotalCount
NonSystemDebitTotalAmount
NonSystemDebitTotalCount
ACHCreditTotalAmount
ACHCreditTotalCount
ACHDebitTotalAmount
ACHDebitTotalCount
ACHPPDBillPayCreditAmount
ACHPPDBillPayCreditCount
ACHPPDBillPayDebitAmount
ACHPPDBillPayDebitCount
ACHPPDPayrollDirectDepositCreditAmount
ACHPPDPayrollDirectDepositCreditCount
ACHPPDPayrollDirectDepositDebitAmount
ACHPPDPayrollDirectDepositDebitCount
ATMCreditAmount
ATMCreditCount
ATMDebitAmount
ATMDebitCount
ATMOffUsCashDepositAmount
ATMOffUsCashDepositCount
ATMOffUsCashWithdrawalAmount
ATMOffUsCashWithdrawalCount
ATMOffUsCheckDepositAmount
ATMOffUsCheckDepositCount
ATMOffUsTransferCreditAmount
ATMOffUsTransferCreditCount
ATMOffUsTransferDebitAmount
ATMOffUsTransferDebitCount
ATMOnUsCashDepositAmount
ATMOnUsCashDepositCount
ATMOnUsCashWithdrawalAmount
ATMOnUsCashWithdrawalCount
ATMOnUsCheckDepositAmount
ATMOnUsCheckDepositCount
ATMOnUsTransferCreditAmount
ATMOnUsTransferCreditCount
ATMOnUsTransferDebitAmount
ATMOnUsTransferDebitCount
BranchCheckDepositAmount
BranchCheckDepositCount
BranchCheckWithdrawalAmount
BranchCheckWithdrawalCount
BranchCreditTotalAmount
BranchCreditTotalCount
BranchDepositAmount
BranchDepositCount
BranchDebitTotalAmount
BranchDebitTotalCount
BranchMiscellaneousCreditAmount
BranchMiscellaneousCreditCount
BranchMiscellaneousDebitAmount
BranchMiscellaneousDebitCount
BranchWithdrawalAmount
BranchWithdrawalCount
BranchTransferCreditAmount
BranchTransferCreditCount
BranchTransferDebitAmount
BranchTransferDebitCount
ChargeOffDebitAmount
ChargeOffDebitCount
CheckCausingOverdraftCreditAmount
CheckCausingOverdraftCreditCount
CheckCausingOverdraftDebitAmount
CheckCausingOverdraftDebitCount
CheckCreditTotalAmount
CheckCreditTotalCount
CheckDebitTotalAmount
CheckDebitTotalCount
CheckReturnedCreditAmount
CheckReturnedCreditCount
CheckReturnedDebitAmount
CheckReturnedDebitCount
CheckStopPaymentCreditAmount
CheckStopPaymentCreditCount
CheckStopPaymentDebitAmount
CheckStopPaymentDebitCount
CreditTotalAmount
CreditTotalCount
DebitTotalAmount
DebitTotalCount
FeeACHBillPayAmount
FeeACHBillPayCount
FeeAnnualAmortizedAmount
FeeAnnualAmount
FeeAnnualCount
FeeATMOffUsAmount
FeeATMOffUsBalanceInquiryAmount
FeeATMOffUsBalanceInquiryCount
FeeATMOffUsCount
FeeATMOffUsTransferAmount
FeeATMOffUsTransferCount
FeeATMOnUsCheckInquiryAmount
FeeATMOnUsCheckInquiryCount
FeeDormantAmount
FeeDormantCount
FeeEarlyWithdrawalAmount
FeeEarlyWithdrawalCount
FeeForeignTransactionAmount
FeeForeignTransactionCount
FeeMonthlyAmount
FeeMonthlyCount
FeeNSFAmount
FeeNSFCount
FeeODPTransferAmount
FeeODPTransferCount
FeeOtherAmount
FeeOtherCount
FeeOverdraftAmount
FeeExtendedOverdraftAmount
FeeOverdraftCount
FeeExtendedOverdraftCount
FeePOSPINPurchaseAmount
FeePOSPINPurchaseCount
FeeReturnedCheckAmount
FeeReturnedCheckCount
FeeStopPaymentAmount
FeeStopPaymentCount
FeeTotalAmount
FeeTotalATMCreditAmount
FeeTotalATMCreditCount
FeeTotalATMDebitAmount
FeeTotalATMDebitCount
FeeTotalNonPenaltyAmount
FeeTotalNonPenaltyCount
FeeTotalPenaltyAmount
FeeTotalPenaltyCount
FeeWaiverACHBillPayAmount
FeeWaiverAnnualAmount
FeeWaiverATMOffUsAmount
FeeWaiverATMOffUsBalanceInquiryAmount
FeeWaiverDormantAmount
FeeWaiverForeignTransactionAmount
FeeWaiverMonthlyAmount
FeeWaiverNSFAmount
FeeWaiverODPTransferAmount
FeeWaiverOtherAmount
FeeWaiverOverdraftAmount
FeeWaiverExtendedOverdraftAmount
FeeWaiverStopPaymentAmount
FeeWaiverTotalAmount
FeeWaiverTotalNonPenaltyAmount
FeeWaiverTotalPenaltyAmount
FeeWaiverWireTransferAmount
FeeWireTransferAmount
FeeWireTransferCount
FraudTransactionAmount
FraudTransactionCount
InterestPaymentCreditAmount
InterestPaymentDebitAmount
InternetTransferCreditAmount
InternetTransferCreditCount
InternetTransferDebitAmount
InternetTransferDebitCount
ODPTransferCreditAmount
ODPTransferCreditCount
ODPTransferDebitAmount
ODPTransferDebitCount
OtherCreditAmount
OtherCreditCount
OtherCreditReversalAmount
OtherDebitAmount
OtherDebitCount
OtherDebitReversalAmount
OtherTransferCreditAmount
OtherTransferCreditCount
OtherTransferDebitAmount
OtherTransferDebitCount
PhoneTransferCreditAmount
PhoneTransferCreditCount
PhoneTransferDebitAmount
PhoneTransferDebitCount
POSSIGForeignCreditAmount
POSSIGForeignCreditCount
POSSIGForeignDebitAmount
POSSIGForeignDebitCount
POSPINCreditTotalAmount
POSPINCreditTotalCount
POSPINDebitTotalAmount
POSPINDebitTotalCount
POSSIGCreditTotalAmount
POSSIGCreditTotalCount
POSSIGDebitTotalAmount
POSSIGDebitTotalCount
ReversalFeeACHBillPayAmount
ReversalFeeEarlyWithdrawalAmount
ReversalFeeForeignTransactionAmount
ReversalFeeMonthlyAmount
ReversalFeeNSFAmount
ReversalFeeODPTransferAmount
ReversalFeeOtherAmount
ReversalFeeOverdraftAmount
ReversalFeeExtendedOverdraftAmount
ReversalFeePOSPINPurchaseAmount
ReversalFeeReturnedCheckAmount
ReversalFeeStopPaymentAmount
ReversalFeeTotalAmount
ReversalFeeTotalNonPenaltyAmount
ReversalFeeTotalPenaltyAmount
ReversalFeeWireTransferAmount
SubstituteCheckDepositAmount
SubstituteCheckDepositCount
SubstituteCheckWithdrawalAmount
SubstituteCheckWithdrawalCount
SystemCreditTotalAmount
SystemCreditTotalCount
SystemDebitTotalAmount
SystemDebitTotalCount
TargetSweepCreditAmount
TargetSweepCreditCount
TargetSweepDebitAmount
TargetSweepDebitCount
WaiverFeeReturnedCheckCount
WireTransferFedCreditAmount
WireTransferFedCreditCount
WireTransferFedDebitAmount
WireTransferFedDebitCount
WireTransferInternalCreditAmount
WireTransferInternalCreditCount
WireTransferInternalDebitAmount
WireTransferInternalDebitCount
WireTransferInternationalCreditAmount
WireTransferInternationalCreditCount
WireTransferInternationalDebitAmount
WireTransferInternationalDebitCount
ZBACreditAmount
ZBACreditCount
ZBADebitAmount
ZBADebitCount
AllocatedEquityAmount
CapitalCharge
ContraExpenseCreditLossRecoveryAmount
ContraExpenseFraudRecoveryAmount
EquityCreditAmount
ExpenseCorporateTaxAmount
ExpenseCreditLossWriteOffAmount
ExpenseDepositInsuranceAmount
ExpenseFraudWriteOffAmount
ExpenseMarketingAmount
ExpenseNetworkFeesAmount
ExpenseOperatingAmount
ExpenseOriginationAmortizedAmount
ExpenseOtherAmount
ExpenseTotalAmount
RevenueInterchangeTotalAmount
RevenuePINInterchangeAmount
RevenueSIGInterchangeAmount
RevenueInterestAmount
RevenueOtherAmount
RevenueNetIncomeAmount
RevenuePreTaxIncomeAmount
RevenueTotalAmount
StatusCode
ClosedCode
ClosedDateuser13407709 wrote:
I have the following summarized table that I need to convert to the star schema.
I am totally confused how to create the dimensions. Any help to start with this will be highly appreciated. The first step should be to tell whoever gave you this task that you have no idea what you are doing and set their expectations accordingly.
I am in an urgent need of it.Then it would no longer be urgent and you would have the time to read and learn this.
http://download.oracle.com/docs/cd/E11882_01/server.112/e16579/toc.htm -
Need help with an extended star schema.
I have the following data in spreadsheet form and I need to transpose this into an extended star schema in order to prdouce my characteristics and key figures, however I'm having a little trouble understanding where to include the Product Group in the star schema and also what to do with the Sales Doc (Invoice Number) in the sales information spreadsheet.
I need to summarise the data into the following also:
1. Total quantity and revenue for each Channel and product group
2. Total quantity and revenue for each Channel and product group (July 2009 to September 2009)
3. Total Quantity and Revenue for iphone sales
So my question in short is what would the star schema look like? I'm hoping somebody can help me over this hurdle.
The following are the details from the spreadsheet:
Product Details (Attributes)
File Name: Product_Details.csv
Structure FieldName Length Description
ProdID 5 Uniquely identifies a product
PG_Group 20 Identifies products in specific groups (Navigational field)
Sample Data
ProdID,PG_Group
PDS01,COMPUTER
PDS02,COMPUTER
PDS03,COMPUTER
PDS04,ACCESSORIES
PDS05,ACCESSORIES
PDS06,ACCESSORIES
PDS07,ACCESSORIES
PDS08,HARDWARE
Product Description (Text)
File Name: Product.csv
Structure FieldName Length Description
ProdID 5 Uniquely identifies a product
Prod_Desc Medium Text Represents the product description
(Navigational field)
Language 2 Represents the language descriptor
Sample Data
ProdID,Prod_Desc,Language
PDS01,Notebook Speedy I,EN
PDS02,Notebook Speedy II,EN
PDS03,PC Thinkbox I,EN
PDS04,USB Adaptor,EN
PDS05,iPhones PX2,EN
PDS06, Stereo Kit,EN
PDS07,Camera Connector,EN
PDS08,USB Storage,EN
Transactional Data
Sales information
File Name: Sales.txt
Structure FieldName Length Description
Product 5 Uniquely identifies a product
Sales Doc 4 Sales Document number (Invoice Number)
Calendar Year 8 YYYYMMDD format
Channel 1 Represents the distribution channel the product was sold by
Quantity 4 Numeric value indicating the number of each product sold on a specific sales document
Unit 2 Refers the unit specified by the quantity
Revenue 8 Refers the sales amount of a specific product on a specific sales document
Currency 3 Relates the revenue currency type
Sample Data
Product;Sales Doc ,Calendar Day,Channel,Quantity,Unit;Revenue,Currency
ZD_PROD,0DOC_NUMBER,0CALDAY,ZD_CHAN,ZD_QTY,0UNIT,ZD_REV,0CURRENCY
PDS07,7389,20090705,A,95,EA,151905,USD
PDS08,7389,20090705,A,115,EA,264385,USD
PDS02,7473,20090706,B,55,EA,3580445,USD
PDS01,7472,20090706,C,110,EA,604989,USD
PDS02,7472,20090706,C,43,EA,2799257,USD
PDS03,7472,20090706,C,75,EA,4507425,USD
PDS04,7472,20090706,A,339,EA,301032,USD
PDS06,7472,20090706,A,120,EA,47976,USD
PDS01,7473,20090718,D,55,EA,3024945,USD
PDS02,6845,20090806,B,30,EA,195297,USD
PDS07,6877,20090807,C,800,EA,12792,USD
PDS08,6877,20090807,C,250,EA,57475,USD
PDS03,6912,20090812,C,250,EA,1502475,USD
PDS04,6900,20090812,B,70,EA,6216,USD
PDS01,6899,20090812,C,12,EA,659988,USD
PDS04,6899,20090812,D,55,EA,4884,USD
PDS04,7479,20090815,C,80,EA,7104,USD
PDS05,7479,20090815,C,300,EA,70497,USD
PDS05,6809,20090818,A,1000,EA,234990,USD
PDS06,6809,20090818,A,130,EA,51974,USD
PDS03,6831,20090822,C,15,EA,901485,USD
PDS04,6831,20090822,C,500,EA,4440,USD
PDS03,6830,20090822,C,125,EA,7512375,USD
PDS06,6830,20090822,C,400,EA,15992,USD
PDS04,6841,20090825,C,53,EA,47064,USD
PDS05,6841,20090825,C,350,EA,822465,USD
Distribution Channel
Channel (text)
File Name: Channel.csv
Structure FieldName Length Description
ChanID 1 Uniquely identifies a specific distribution channel
Chan_Desc Medium
Text Full name of each distribution channel
(Navigational field)
Sample Data
ChanID, Chan_Desc
A,Phone
B,Fax
C,Internet
D,Other
Star Schema Model:Potentially the issue may be the combination of actual distance and the presence of any Wi-Fi interference at the location of the AirPort Express that may be the culprit here. The bottom line is you would want the Express to be within a 25+ dB range of the Extreme to be sure that it can consistently stay connected to it.
For more details on proper base station placement, check out the following AirPort User tip. Please post back your results. -
Design Fixed Assets Star Schema from OLTP DB
Hi,
Scope : Design Fixed Assets logical Star Schema for Demonstrate with OLTP tables
Our platform is Oracle 10g Forms and Reports deployed on Oracle 10g App Server._ At the moment we don’t have data warehouse constructed. We are pumping OLTP Data into Staging DB thru jobs and then by using materialized views getting the data in DWH DB which is in progress.
OBIEE 10g installed and working fine for testing.
We are planning to implement OBIEE for Reporting. As a starting point I would like to design Fixed Assets star schema to demonstrate FA reports in OBIEE from OLTP Tables.
FA- OLTP Tables:_
AC_UNIT_MASTR – Business Units
AC_ACNT_MASTR - Nominal Codes
AC_COST_CENTR_MASTR - Departments
AC_MANTN_ASTS - Assets transaction table
AC_AST_BAL_DETLS – Period wise Asset summary
AC_AST_BAL_DETLS_V - View
To achieve this
1).Import tables in physical layer and set physical joins
2).identify and create dimensions and set complex joins and then move to presentation layer.
Please suggest best approach to design Repository
Thanks
Regards,
Kulkarni
Edited by: hai_shailesh on Jan 25, 2012 11:36 PM
Edited by: hai_shailesh on Jan 25, 2012 11:38 PM
Edited by: hai_shailesh on Jan 25, 2012 11:39 PMHi Saichand,
Thanks for the response.
Already i referred that doc and completed practically. now i have to work on Finance data . as a starting point working with Fixed Assets module. already i designed centralised fact with dimensions as below
in physical&BMM layer defined relationship as below()
AC_UNIT_MASTR_D --> AC_AST_BAL_DETLS_F
AC_ACNT_YEAR_MASTR_D --> AC_AST_BAL_DETLS_F
AC_ACNT_PERD_MASTR_D --> AC_AST_BAL_DETLS_F
AC_COST_CENTR_MASTR_D --> AC_AST_BAL_DETLS_F
AC_AST_GRP_MASTR_D --> AC_AST_BAL_DETLS_F
AC_AST_SUBGRP_MASTR_D --> AC_AST_BAL_DETLS_F
and
AC_ACNT_YEAR_MASTR_D --> AC_ACNT_PERD_MASTR_D
When iam trying to create a dimension for Periods(AC_ACNT_PERD_MASTR) , Periods dimesnion created with two tables
AC_ACNT_YEAR_MASTR_D,AC_ACNT_PERD_MASTR_D
Please advice..
Regards,
Kulkarni -
Star schema design, metrics dimension or not.
Hello Guys,
I just heard from one of my colleagues that its wise to
have an "KPI" or "metrics" dimension in my DWH star schema (later used in OBIEE).
Now, we have quite a lot of data 100 000 rows per day (botton leve, non-aggregated, the aggregations are obviously far less then that, lets say 200 rows per day) and
we have build pre-aggregated data marts for each of the 5 very static reports (OBIEE Publisher).
The table structure is very simple
e.g.
Date,County,NumberofCars,RevenuePerCar, ExpensesPerCar, BreakEvenPerCar, CarType
One could exclude the metrics "NumberofCars","RevenuePerCar", "ExpensesPerCar", "BreakEvenPerCar"
and put them into a metrics dimension.
MetricID Metric
1 NumberofCars
2 RevenuePerCar
3 ExpensesPerCar
4 BreakEvenPerCar
and hence the fact table design would be simpler.
Date,County,MetricID,Metric, CarType
Disadvanatages: A join is required
We would have to redesign our tables
tables are not aggregated anymore for specific metric types
if we notice performance is bad, we would need to go back to the old design
Advantages : Should new metrics appear, we dont have to change the design of the tables
its probably best practice
Note: date, country and cartype are already dimensions. we are just missing one to differentiate the metrics/KPI's
So I struggle a bit, what should I do? Redesign, or stick to the way I have done it, having
performance optimization in mind.
Thanks"Usually the date is stored in sales table or product table.
ut here why they created separate Dimension table for date(Dim_date)? "
You should provide the link.
A good place to start with the basic concepts is :
http://www.ralphkimball.com/
Pick up some of his books and start going through them.
My recommendation would be
The Data Warehouse Toolkit, 2nd Edition: The Complete Guide to Dimensional Modeling
John Wiley & Sons, 2002 (436 pages
Good Luck., -
Hi,
I know that in classical star schema the dimension tables sits within the info cube and so we cannot use this dimension table in any other cube we need to have separate dimension table for that cube thought it might be having same data. I also know to over come this redundancy extended star schema came into picture where we have SID table and we keep the dimension table out of the cube and reuse the dimension tables across many cubes.
Now what i don't understand is that instead of having Separate SID tables for linking the dimension and fact tables why cant we make the DIMENSION table generic and keep them out of the infocube so that we can same the same dimension table for many infocube in this case we wont need SID tables.
suppose i have one info cube which has dimension vendor material and customer and its keyfigure is quantity and price and i have a separate infocube which has dimesnion material customer and location and its key figure is something else ......so here in why cant i keep the dimensions out of the infocube and use the dimension material customer for both infocube.Your dimension tables are filled based on your transaction data - which is why dimension table design is very important you decide to group related data for the incoming transaction data into your dimension tables .
The dimension tables have SIDs which in turn point to master data = in the classic star schema - the dimension tables are outside the cube but the dim tables have the master data within them whhich is overcome using the extended star schema.
The reason why dimension tables can be reused is that the dim IDs and SIDs in the simension table correspond to the transaction data in the cube - and unless the dim IDs in both your cubes match you cannot reuse the dim tables - which means that you have exactly the same data in both the cubes - which means you need not have two cubes with the same data.
Example :
Cube 1 : Fact Table
Dim1ID | DIM2ID | KF1
1|01|100
2|02|200
Dimension Table : Dim 1 ( Assumin that there are 2 characteristics in this dimension ) - here the DIM1ID is Key
Dim1ID | SID1 | SID2
1|20|25
2|30|35
Dimension Table Dim 2 - Here the Dim2ID field is key
Dim2ID| SID1 | SID2| SID3
01| 30| 45
02|45|40
Here the Dim IDs for the cube Fact table are generated at the time of load and this is generated from the NRIV Table ( read material on Number Ranges ) - this meanns that you cannot control DIM ID generation across cubes which means that you cannot reuse Dimension Tables -
How you we design and create a star schema in Oracle BI?
We can use Informatica to generate ETL. But how do we design the star-schema?? Is there a design tool like Oracle Designer??
What is the purpose of the DAC??Hi,
You can handle the star schema design in the BMM layer. No separate tool for that.
Refer-
http://gerardnico.com/wiki/data_modeling/star_schema
DAC-
Data Warehouse Application Console (DAC) works together with Informatica to acomplish the ETL for pre-packaged BI application.
- DAC publish the changes from OLTP
- Informatica extracts the changes from the change log published by DAC as well as from the base table
- Informatica load the data to the stage tables and the target tables in the data warehouse
- DAC manage the performance by dropping indexes, truncating stage tables, rebuilding the indexes, and analyzing the tables during the process
If you do not use DAC, you have to write your own custom change capture process and need to redesign from scratch an ETL method that allow the restart of the ETL process from point of failure at record level. The biggest saving is that DAC can survive during the upgrade , while your custom processes cannot.
Refer-
http://obieetraining11.blogspot.in/2012/06/how-to-use-dac-source-system-parameter.html
Hope this helped/ answered.
Regards
MuRam
Edited by: MuRam on Jun 25, 2012 2:37 AM -
Star Schemas with designer 6.0
How can I easily create star schemas for a Datawarehouse in Designer6? Where can I still find documentation for such release?
MauroMauro,
You should be able to create start schemas - search in the online help for all references to data warehousing
and star schemas. There should be a few topics.
Regards,
Dominic
Designer Product Management
Oracle Corp -
Hi,
What are the factors or the things that we should consider while designing star schema ?
Thanks
VaishaliVaishali,
The major things to be considered while designing start could be ..
1. Proper maintenance of Master data which will be shared across all the infocubes.
2. Deciding upon dimensions. Which characteristics should be assigned to which dimension? Try to reduce the number of dimensions.
3. Design deimensions based upon the characteristic relation 1:M...
4. If the char has more no of values for eg, document number which come in huge volumes to BW that can be designed as Line item dimension instead of assigning it to a dimension.....
Hope this helps you..... -
Since switching to Yosemite, I am unable to paste any information into calendar events, instead having to type out all info such as location, notes, etc. This is true both in daily view and weekly/monthly views as well. Help?
You welcome
-
Injecting data into a star schema from a flat staging table
I'm trying to work out a best approach for getting data from a very flat staging table and then loading it into a star schema - I take a row from a table with for example 50 different attributes about a person and then load these into a host of different tables, including linking tables.
One of the attibutes in the staging table will be an instruction to either insert the person and their new data, or update a person and some component of their data or maybe even to terminate a persons records.
I plan to use PL/SQL but I'm not sure on the best approach.
The staging table data will be loaded every 10 minutes and will contain about 300 updates.
I'm not sure if I should just select the staging records into a cursor then insert into the various tables?
Has anyone got any working examples based on a similar experience?
I can provide a working example if required.The database has some elements that make SQL a tad harder to use?
For example:
CREATE TABLE staging
(person_id NUMBER(10) NOT NULL ,
title VARCHAR2(15) NULL ,
initials VARCHAR2(5) NULL ,
forename VARCHAR2(30) NULL ,
middle_name VARCHAR2(30) NULL ,
surname VARCHAR2(50) NULL,
dial_number VARCHAR2(30) NULL,
Is_Contactable CHAR(1) NULL);
INSERT INTO staging
(person_id, title, initials, forename, middle_name, surname, dial_number)
VALUES ('12345', 'Mr', 'NULL', 'Joe', NULL, 'Bloggs', '0117512345','Y')
CREATE TABLE person
(person_id NUMBER(10) NOT NULL ,
title VARCHAR2(15) NULL ,
initials VARCHAR2(5) NULL ,
forename VARCHAR2(30) NULL ,
middle_name VARCHAR2(30) NULL ,
surname VARCHAR2(50) NULL);
CREATE UNIQUE INDEX XPKPerson ON Person
(Person_ID ASC);
ALTER TABLE Person
ADD CONSTRAINT XPKPerson PRIMARY KEY (Person_ID);
CREATE TABLE person_comm
(person_id NUMBER(10) NOT NULL ,
comm_type_id NUMBER(10) NOT NULL ,
comm_id NUMBER(10) NOT NULL );
CREATE UNIQUE INDEX XPKPerson_Comm ON Person_Comm
(Person_ID ASC,Comm_Type_ID ASC,Comm_ID ASC);
ALTER TABLE Person_Comm
ADD CONSTRAINT XPKPerson_Comm PRIMARY KEY (Person_ID,Comm_Type_ID,Comm_ID);
CREATE TABLE person_comm_preference
(person_id NUMBER(10) NOT NULL ,
comm_type_id NUMBER(10) NOT NULL
Is_Contactable CHAR(1) NULL);
CREATE UNIQUE INDEX XPKPerson_Comm_Preference ON Person_Comm_Preference
(Person_ID ASC,Comm_Type_ID ASC);
ALTER TABLE Person_Comm_Preference
ADD CONSTRAINT XPKPerson_Comm_Preference PRIMARY KEY (Person_ID,Comm_Type_ID);
CREATE TABLE comm_type
comm_type_id NUMBER(10) NOT NULL ,
NAME VARCHAR2(25) NULL ,
description VARCHAR2(100) NULL ,
comm_table_name VARCHAR2(50) NULL);
CREATE UNIQUE INDEX XPKComm_Type ON Comm_Type
(Comm_Type_ID ASC);
ALTER TABLE Comm_Type
ADD CONSTRAINT XPKComm_Type PRIMARY KEY (Comm_Type_ID);
insert into comm_type (comm_type_id, NAME, description, comm_table_name) values ('23456','HOME PHONE','Home Phone Number','PHONE');
CREATE TABLE phone
(phone_id NUMBER(10) NOT NULL ,
dial_number VARCHAR2(30) NULL);
Take the record from Staging then update:
'person'
'Person_Comm_Preference' Based on a comm_type of 'HOME_PHONE'
'person_comm' Derived from 'Person' and 'Person_Comm_Preference'
Then update 'Phone' with the number based on a link derived from 'Phone' which is made up of Person_Comm Primary_Key where 'Comm_ID' (part of that composite key)
relates to the Phone table Primary_Key which is Phone_ID.
Does you head hurt as much as mine? -
Whenever I try to enter my credit card information into iTunes via either my mac book or my iphone it says there is an error and says "for assistance, please contact itunes support, etc...". Can anyone help with this?
I haven't had any luck at all getting it resolved using iTunes support so I'm hoping someone who's encountered the problem can help me.What did itunes suport tell you?
They will need to solve this.
Maybe you are looking for
-
Macbook not (completely) detecting USB audio device
Here's what I'm doing. I am ripping my cassette collection using a tape deck, a Roxio video capture device (VHS to DVD), Soundflower, and Adobe Audition. Everything was working fine. I finished a tape and unplugged the USB device to make room for my
-
My beloved MacBook Pro (mid 2010) has been the victim of water damage.
My beloved MacBook Pro (mid 2010) has been the victim of some water damage. They cleaned and dried it out at Apple. Now it turns on, the fan runs, the Apple logo screen pops up, and then it shuts down immediately. Is this repairable, aside from th
-
Why can't i sign in to iMessages or FaceTime on my iMac
hi there i have been having this problem since i upgraded my imac 2008 core 2 duo to osx mavericks which was 31 oct 2013 everything else works fine however imessages and facetime just wint sign in i put my apple username and password in imessages and
-
Hi Experts Scenario: Intercompany STO. Shipping plant posted the Goods issue and the material is in Transit. Now how do i get the stock in Transit Material cost (Std Cost) in Report. I used the MB5T it shows the Purchase Order Net Value only and not
-
Seeking help to create new apple ID
i am new user of apple mobiles. while creating apple ID. I have typed my mail address which is not at all existing. Now to create new apple ID what i need to do? Please do help me