Relational database for ATLAS Detector Description primary numbers

In July 2004 we started to put primary numbers for ATLAS DD into CERN Oracle database server. For this purpose we developed a special database schema and also tools for data retrieval within ATHENA applications. Using only SQL scripts for schema and data management, we have put in the new database quite big amount of primary numbers for all ATLAS subsystems, which are currently used by GeoModel based applications to build various layouts of ATLAS geometry.

Putting data into database, manipulating versions

There are two different ways for data manipulation in the ATLAS Geometry DB:
  1. SQL scripts. This is the most powerful way to work with SQL-enabled databases, since it gives you the whole control on the data and database schema. The main drawback of this approach is that it requires from user some knowledge of SQL.

    SQL scripts can be executed on LXPLUS using SQLPLUS command line utilite. The quickest way to start SQLPLUS and connect directly to CERN Oracle PDB01 (Production Database server) with username 'atlasdd_reader' is to source shell script ~tsulaia/public/start_sqlplus.sh. When you are asked for password you should type 'reader'. As one can guess from the name, the user 'atlasdd_reader' has readonly access to ATLAS DD primary number tables which reside to 'atlasdd' schema.

    The SQLPLUS utility is used by ATLAS subsystem experts to put new primary numbers to the data tables. For this purpose the special Writer account is used.

  2. PHP enabled web server. The php-enabled web site provides dual functionality: 1. Database browsing; 2. Various manipulations with HVS nodes including: node and tag creation, tag collection and locking etc.

In the HowTo 1 and 2 we explain how to manipulate the data in the ATLAS Geometry DB using SQL commands and web tool.

HowTo 1. Create new data table. Create initial version for it.
HowTo 2. Create new version for existing data table.

Reading data from database within ATHENA applications

To access versioned data for ATLAS Detector Description applications, we have developed ATHENA service RDBAccessSvc, based on POOL Relational Access abstraction layer.

The functionalities of this service include:
  1. Mechanism for database connection;
  2. Classes for uniform access of versioned data in relational database;

Here we provide general description of RDBAccessSvc member classes. Please note that users can communicate to all these object through abstract interfaces only.

In the following HoTo 3 we provide some instructions for the use of RDBAccessSvc package.

Thank you for your feedback sent to Vakho Tsulaia and Joe Boudreau.