CMS DT slow-control

Here yo will find the libraries and some command line utilities for CMS DT slow-control (DCS) and Database access. You can install them with RPM or by compiling sources.

RPM based installation

  1. Download and install ptypes: ptypes for SL3, ptypes for SL4; you can find more rpm's from http://rpm.pbone.net/.
  2. Download and install unixODBC.
  3. Download and install: SL3 version, SL4 version. This supplies the library to access the Database.
  4. Finally, download and install: SL3 version, SL4 version. This supplies the library and some utilities to run the DCS.
  5. If you are using bash, you must add: "ulimit -u 2048" and "ulimit -s 2048" to /etc/bashrc. If you are using tcsh, you must add: "limit maxproc 2048" and "limit stacksize 2048" to /etc/csh.cshrc.
  6. After the configuration of unixODBC, you must create an /etc/ccbdb.conf file telling the ccbdb library which one of the ODBC connection listed in odbc.ini has to be used. For example: ccbdb.conf.

Source based installation

  1. Download, compile and install ptypes: ptypes; the website is http://melikyan.com/ptypes/.
  2. Download, compile and install ccbcmds (contains ccbdb as well): after unzipping the package, see the README file in the main directory for instructions.

ODBC installation and configuration

  1. unixODBC can be found at the URL http://www.unixodbc.org/.
  2. ODBC drivers for MySQL are available at: http://dev.mysql.com/downloads/.
  3. ODBC drivers for Oracle are available at: http://www.oracle.com/technology/software/tech/oci/instantclient/index.html. You need both the Basic and the ODBC files. The /etc/tnsnames.ora file must contain the definition of the desired database. An example: tnsnames.ora. After the installation, you need to define the two environment variables,TNS_ADMIN=/etc, TWO_TASK=OMDS
  4. The /etc/odbcinst.ini file must contain the link to the correct odbc driver. An example: odbcinst.ini.
  5. The /etc/odbc.ini file must contain the information to access the desired database (eg server name, user name, etc.). An example: odbc.ini.

Valid HTML 4.01 Transitional

Andrea Parenti
Last modified: Mon Dec 10 11:48:43 CEST 2007