Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

table size and preferred storage parameters

294544Jul 12 2002 — edited Mar 13 2003
Hi, I need some advice on the preferred way to define the following table, and a quick refresher on size estimating for tables. Info and DDL on the table is below:

Approx. 1 Mil rows populated / day. (one rec for every PARTID and LOCATIONDETAILID and INVENTORYDTTM combination where INVENTORYDTTM = the current days date, the table is populated daily.

Effectivley, taking a snapshot of inventory QTY for every LOCATIONDETAILID with a PARTID every day.

Based on the width of the table, how do I best calculated the size in bytes for this many rows? Once I know that, and the number of and frequency of inserts, is there an obvious choice for a preferred storage paramter?

Many thanks in advance for you help,
Scott


CREATE TABLE INVENTORY (
INVENTORYTYPE CHAR (1),
INVENTORYDTTM DATE,
LOCATIONDETAILID NUMBER,
PARTID NUMBER,
QTY NUMBER,
POSTED CHAR (1),
POSTEDDTTM DATE)
TABLESPACE CATS
PCTFREE 10
PCTUSED 40
INITRANS 1
MAXTRANS 255
STORAGE (
INITIAL 65536
MINEXTENTS 1
MAXEXTENTS 2147483645
FREELISTS 1 FREELIST GROUPS 1 )
NOCACHE;


CREATE INDEX INVENTORY_1 ON
INVENTORY(INVENTORYDTTM)
TABLESPACE CATS PCTFREE 10 STORAGE(INITIAL 65536 )
;

CREATE INDEX INVENTORY_2 ON
INVENTORY(LOCATIONDETAILID)
TABLESPACE CATS PCTFREE 10 STORAGE(INITIAL 65536 )
;

CREATE INDEX INVENTORY_3 ON
INVENTORY(PARTID)
TABLESPACE CATS PCTFREE 10 STORAGE(INITIAL 65536 )
;


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2003
Added on Jul 12 2002
9 comments
550 views