HP ProLiant 3000 DSS Sizing and Tuning of Oracle8 for Windows NT on Compaq Ser - Page 29

Appendix A: TPC-D Schema

Page 29 highlights

DSS Sizing and Tuning of Oracle8 for Windows NT on Compaq Servers Appendix A Appendix A: TPC-D Schema Note: SF = Scale Factor of TPC-D database (i.e. For a 100G database, SF=100) PART Table Layout Column Name Datatype Requirements Comment P_PARTKEY identifier SF*200,000 are populated P_NAME variable text, size 55 P_MFGR fixed text, size 25 P_BRAND fixed text, size 10 P_TYPE variable text, size 25 P_SIZE integer P_CONTAINER fixed text, size 10 P_RETAILPRICE decimal P_COMMENT variable text, size 23 Primary Key: P_PARTKEY SUPPLIER Table Layout Column Name S_SUPPKEY S_NAME S_ADDRESS S_NATIONKEY Datatype Requirements identifier fixed text, size 25 variable text, size 40 identifier S_PHONE fixed text, size 15 S_ACCTBAL decimal S_COMMENT variable text, size 101 Primary Key: S_SUPPKEY Comment SF*10,000 are populated Foreign key reference to N_NATIONKEY PARTSUPP Table Layout Column Name Datatype Requirements Comment PS_PARTKEY PS_SUPPKEY PS_AVAILQTY identifier identifier integer Foreign key reference to P_PARTKEY Foreign key reference to S_SUPPKEY PS_SUPPLYCOST decimal PS_COMMENT variable text, size 199 Compound Primary Key: PS_PARTKEY, PS_SUPPKEY © 1998 Compaq Computer Corporation, All Rights Reserved Doc No ECG156/0398

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45

DSS Sizing and Tuning of Oracle8 for Windows NT on Compaq Servers
Appendix A
1998 Compaq Computer Corporation, All Rights Reserved
Doc No ECG156/0398
Appendix A: TPC-D Schema
Note:
SF = Scale Factor of TPC-D database (i.e. For a 100G database, SF=100)
PART Table Layout
Column Name
Datatype Requirements
Comment
P_PARTKEY
identifier
SF*200,000 are populated
P_NAME
variable text, size 55
P_MFGR
fixed text, size 25
P_BRAND
fixed text, size 10
P_TYPE
variable text, size 25
P_SIZE
integer
P_CONTAINER
fixed text, size 10
P_RETAILPRICE
decimal
P_COMMENT
variable text, size 23
Primary Key:
P_PARTKEY
SUPPLIER Table Layout
Column Name
Datatype Requirements
Comment
S_SUPPKEY
identifier
SF*10,000 are populated
S_NAME
fixed text, size 25
S_ADDRESS
variable text, size 40
S_NATIONKEY
identifier
Foreign key reference to
N_NATIONKEY
S_PHONE
fixed text, size 15
S_ACCTBAL
decimal
S_COMMENT
variable text, size 101
Primary Key:
S_SUPPKEY
PARTSUPP Table Layout
Column Name
Datatype Requirements
Comment
PS_PARTKEY
identifier
Foreign key reference to
P_PARTKEY
PS_SUPPKEY
identifier
Foreign key reference to
S_SUPPKEY
PS_AVAILQTY
integer
PS_SUPPLYCOST
decimal
PS_COMMENT
variable text, size 199
Compound Primary Key:
PS_PARTKEY, PS_SUPPKEY