Presentation is loading. Please wait.

Presentation is loading. Please wait.

14.03.2006 ALICE DCS WorkshopSvetozár Kapusta and Peter Chochula General recommendations Focus on representing the modularity of the detector when creating.

Similar presentations


Presentation on theme: "14.03.2006 ALICE DCS WorkshopSvetozár Kapusta and Peter Chochula General recommendations Focus on representing the modularity of the detector when creating."— Presentation transcript:

1 ALICE DCS WorkshopSvetozár Kapusta and Peter Chochula General recommendations Focus on representing the modularity of the detector when creating the tables Implement constrains on table columns –Use Primary keys PK on columns which contain the version number –Use Foreign keys FK on the columns which reference the primary keys. Since no deletes and no updates will be run- –Use IOTs (Index Organized Tables) (CREATE TABLE… …ORGANIZATION INDEX…) to assure for future performance

2 ALICE DCS WorkshopSvetozár Kapusta and Peter Chochula Once the schema is ready… When populating the tables (e.g. from configuration files) you might use the /*+APPEND/ hint (example: insert /*+append / into mytable values (1, 255);) You can let the version column increment itself by creating a sequence and a trigger –create or replace sequence myseq increment by 1 start with 1 nomaxvalue nocycle; –create or replace trigger mytrigger before insert on mytable for each row begin select myseq.nextval into :new.version from dual;end;/)

3 ALICE DCS WorkshopSvetozár Kapusta and Peter Chochula SPD Side A Side C x y z

4 ALICE DCS WorkshopSvetozár Kapusta and Peter Chochula SPD Sector Half-stave

5 ALICE DCS WorkshopSvetozár Kapusta and Peter Chochula SPD

6 ALICE DCS WorkshopSvetozár Kapusta and Peter Chochula xxxxx Hierarchical organization of DCS FERO configuration data SPD Data SDD Data TypeOfRun PK SPDVersion PK SDDVersion PK SSDVersion PK … … … … TRDVersion PK SPDVersion PK SSDVersion PK SDDVersion PK TRDVersion PK TRD Data SSD Data SPDMode TypeOfRun PK SPDversion FK …xxxxx ppRunIDxxxxx CosmicsRunIDxxxxx … … … PbPbRunIDxxxxx number(4,0)number(7,0) Table Name Column Name Oracle Datatype ALIVersion A view created from the individual detector versions xxxxx SPDRemark SPDversion FK xxxxx number(7,0) Remark xxxxx varchar2(1000) Actual configuration modes (Fixed number of rows, only updates)

7 ALICE DCS WorkshopSvetozár Kapusta and Peter Chochula Hierarchical organization of DCS SPD FERO configuration data version 2 1 SPDVersion PK SIDAVer FK SIDCVer FK SIDVersion PK SEC0Ver FK SEC1Ver FK SEC2Ver FK … … SEC9Ver FK SECA0Version Halfstave 0 Halfstave 1 Halfstave 2 … … Halfstave 5 SIDVersion PK SEC0Ver FK SEC1Ver FK SEC2Ver FK … … SEC9Ver FK SECA1Version Halfstave 0 Halfstave 1 Halfstave 2 … … Halfstave 5 SECA2Version Halfstave 0 Halfstave 1 Halfstave 2 … … Halfstave 5 … Halfstave 0 Halfstave 1 Halfstave 2 … … Halfstave 5 … Halfstave 0 Halfstave 1 Halfstave 2 … … Halfstave 5 SECA9Version SECVersion PK HAS0Ver FK HAS1Ver FK … … HAS5Ver FK 120 SPDVersion SIDAVersion SIDCVersion HASVersion PK MCMVer FK MASVer FK DACVer FK HASA90Version 220

8 ALICE DCS WorkshopSvetozár Kapusta and Peter Chochula Hierarchical organization of DCS SPD FERO configuration data version 2 continued DACVersion DACVect CHAR(440) DACVersion Number(9) PK HASVersion PK MCMVer FK MBRVer FK DACVer FK HASA90Version MBRVersion Number(9) PK MBR Varchar(1640) MBRVersion 1 Version 1: 508 Tables 507 Primary Keys 3862 Foreign Keys MCMVersion ACO Blob APIVect Char(6) DPIVect Char(8) MCMVersion Number(9) PK 1 GOLVect Char(4) Version 2: 147 Tables 146 Primary Keys 502 Foreign Keys Redesign


Download ppt "14.03.2006 ALICE DCS WorkshopSvetozár Kapusta and Peter Chochula General recommendations Focus on representing the modularity of the detector when creating."

Similar presentations


Ads by Google