infn-pisa glast database in pisa a practical solution based on msaccess luca latronico infn pisa
TRANSCRIPT
INFN-Pisa
Glast Database in Pisa
A practical solution based on MSAccess
Luca Latronico INFN Pisa
INFN-Pisa
Requirements and conventions
Requirements from Proposal of conceptual design of the GLAST Tracker Construction Database (UCSC – SLAC – INFN Pi – Hiroshima Un.) soon in CyberDocs
• local independent DBs at various institutions • central SLAC DB for higher level data (i.e. production monitoring during construction)• interface between local DBs• local DB take care of data flow from local suppliers• web read-only access to local DBs
Naming Conventions from Naming Convention for GLAST Tracker Construction and Tray Orientation in Tracker Tower – UCSC• for each part unique ID + location
Part ID location (example) Strip S0123 - - -Detector DH00012 [A-D] (L0001B)Ladder L0001 [F0-B3] (T123B2)Tray T123 [G1tr0-G16tr18] (G03tr18) - - - - - - - - -
• include ManID in ladders, trays• enrich tray coding to include type (superglast, top, bottom)
INFN-Pisa
MS AccessPros• availability (institutes, manufacturers)• runs on Windows (manufacturers)• built-in import/export of Office docs (e.g. Excel worksheets)• familiar “look” (manufacturer)• no extra cost (manufacturer)• lots of wizards and predefined macros to speed up programming and reporting• SQL compliant
Cons• limited workflow control (mandatory fields)• limited web access• web I/O possible in principle but ……• forced to program in VB and ASP for web scripts• very little insight into core of db • no automatic backup• no user access/action log file
evaluation prototype in use and under development
INFN-Pisa
System properties
• relational DB engine : MS Jet Access• distributed on local NT network• security : NT accounts/permissions + project accounts• one data repository (back-end DB)• distributed user interfaces (replicated)• data and interface backups (replicated)• manual backup by replicas synchronization tool• web interface (queries/reports) connected to a data server copy through ODBC DSN• ASP scripts running on a test PWS (unstable) • core data repository upgradeable to SQL Server for real client/server architecture, if needed
INFN-Pisa
System architecture
I/O
Central repository
Local replicas
Web client
ODBCASP
(read-only)
DB InterfaceUsers offices
Clean room
DB Interface
DB Interface
I/O
DB Interface
Data
backup
DB Interface
Data
Datadata serverProduction
and qualitymonitoring
INFN-Pisa
Data Transfer
localDBexport
SQL queryexchangetable
exchangetable
exchangeDB
ftp
import SQL query
Local Institute/Manufacturer Pisa
requests for manufacturers:• MSAccess2000• run export query• upload Pisa server
exchangetable
exchangeDB
link
PisaDB
requests for institutes:• local DB supporting SQL and ODBC• set up a server (Pisa, SLAC)
two working examples using Access as local DB:• ladder assembly from local supplier• TMCM from UCSC
INFN-Pisa
Relationship
INFN-Pisa
Main DB mask
INFN-Pisa
Example queries for SSD selection
relevant parameters sort
test/production date selection
V depletion selection
example
INFN-Pisa
Example Report I
Selected time
SSD statistics
INFN-Pisa
Example Report II
Ladders statistics
report content can be exported to Excel for
further analysis
INFN-Pisa
Plans
• finalize data queries and periodic reports for monitoring• translate queries and reports into scripts for remote production monitoring• install a full-functioning web server• test web interface• get feedback from users:
• improve interface• check speed with much data• write and test data queries for selection
• get feedback from tracker community• agree on data transfer protocol… local copy available on laptop …