Home > Ask the Oracle Database / Applications Experts > Data Warehousing, ETL, and business intelligence Questions & Answers > Primary keys and foreign keys on fact tables
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Primary keys and foreign keys on fact tables

Ian Abramson EXPERT RESPONSE FROM: Ian Abramson

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 10 November 2003
I've taken over a data warehouse/reporting database. All the fact tables have primary keys and foreign keys. The fact tables have a mixture of measures (inventory, shipments, etc.). Aren't PK and FK unnecessary if all I'm doing for the load is summing from the individual base tables. I would guess all I would need are individual indexes on the keys.

>
The inclusion of primary and foreign keys should not be seen as an optional add-on to a warehouse, it is a standard option. I understand that there is an impact during the loading of the warehouse, but the potential data cost may be higher at a later time. So I always recommend that all warehouses include referential integrity. At times we disable this during loading cycles, but they are always restored after a load is complete. However, if these constraints are not re-enabled to fail to re-enable, this is a clear indication that your load routines did not perform as expected. Of course the choice is yours, but if this was my warehouse I would recommend that you retain your constraints. As for indexes, you definitiely want to keep these if the data utilizes these indexes during data retrieval.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Data Warehousing, ETL, and business intelligence
Analyzing an index after rebuild
Speed of low-cost query
Data warehouse based on operational data model
Method other than DB link for large data transfer
Data migration with ETL
Basic steps for implementing a DBMS
Importing 8i dump file to 9i
Using export/import process to clone to data warehouse
Areas of impact while migrating database from 8i to 9i/10g
External tables explained

Oracle data warehousing
Oracle data warehousing tutorial
Oracle's supply chain BI the answer for SaaS provider
Oracle business intelligence guide
BI strategies of Oracle and the megavendors
Exadata: A first look at Oracle's entry into the appliance market
Oracle New Year's resolutions, part 2: GRC tips and customer resolutions revealed
Oracle's Top 8 stories of 2008
IOUG chief discusses OpenWorld, DBA pay and security
Oracle enters the appliance market with Exadata
Tip: Exposing logical attributes with virtual columns

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
multidimensional database  (SearchOracle.com)
operational data store  (SearchOracle.com)
repository  (SearchOracle.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Oracle White Papers: Fusion Middleware
HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts