Enterprise Software Solutions  [Company Logo Image]Oracle

Home Up Feedback Contents Search  Jump to: DW University, Employment

[Under Construction]

News
Products
Programming
DW University
Services
Employment

 

Oracle

bulletLearn about PL/SQL programming
bulletModeling Notes:
bulletAvoid tables in excess of 1 billion rows
bulletIf large tables are needed, use partitioning across a dimensional attribute such an month.
bulletFor best performance, fact tables should always have primary keys and other indexes for most combinations of dimensions.

DDL

bulletDDL to build time dimension tables with indexes:
bulletCREATE TABLE Time_Month(
Time_Month_ID INT, Time_Month_Desc VARCHAR2(12),
PRIMARY KEY(Time_Month_ID));
bulletCREATE TABLE Time_Date(
Time_Date DATE, Time_Month_ID INT,
PRIMARY KEY(Time_Date));
bulletCreate Bitmap Index:
bulletCREATE BITMAP INDEX Call_Day_Base_Fact_XIE1 ON MySchema.Fact_Sales_Calls
(Period_ID ASC)
PCTFREE 5
INITRANS 2
MAXTRANS 255
TABLESPACE mdidx;
bulletCreate uniqu index:
bulletCREATE UNIQUE INDEX Fact_Sales_Call_Base_XPK ON MySchema.Fact_Sales_Call_Base
(Terr_ID ASC, Cust_ID ASC, Period_ID ASC, Cust_ID_Seq ASC)
PCTFREE 5
INITRANS 2
MAXTRANS 255
TABLESPACE mdidx;
bulletCreate Foreign Key Constraint:
bulletALTER TABLE MySchema.Fact_Sales_Call_Account
ADD ( CONSTRAINT R_275
FOREIGN KEY (Acct_ID, Acct_ID_Seq)
REFERENCES MySchema.LU_ACCOUNT ) ;

 

 

 

Home ] Up ] Oracle PL/SQL ]

Send mail to Webmaster@ESScorporation.com with questions or comments about this web site.
Copyright © 2004 Enterprise Software Solutions, Inc.
Last modified: July 29, 2004