Warning, /OnlineDB/EcalCondDB/doc/README is written in an unsupported language. File is not indexed.
0001 EcalCondDB README
0002
0003
0004 This code provides an interface to the Ecal Databases, using OCCI.
0005 For the moment see the header files and the examples in the test/
0006 directory for documentation.
0007
0008
0009
0010
0011 0. === Use within CMSSW projects ===
0012
0013 # setup a scram project based on the latest release (pre8 in this example)
0014 prompt> scramv1 project CMSSW_0_0_1_pre8
0015
0016
0017 # sets your $CVSROOT
0018 project CMSSW
0019
0020 # change to the project source directory
0021 cd CMSSW_0_0_1_pre8/src
0022
0023 # check out the code from CVS
0024 cvs co OnlineDB
0025
0026 # change to the EcalCondDB package directory
0027 cd OnlineDB/EcalCondDB
0028
0029 # View the tests in the test/ directory. Edit them to provide the
0030 # correct connection information to your database.
0031
0032 # build the package
0033 scramv1 b
0034
0035 # run the tests
0036 ../../../test/slc_ia32_gcc323/Test<test name>
0037
0038
0039
0040 I. === STANDALONE INSTALLATION ===
0041
0042
0043 1. ORACLE_HOME
0044
0045 In order to compile, make sure your $ORACLE_HOME is set
0046 correctly.
0047
0048 On standard CERN systems (like lxplus) the normal $ORACLE_HOME does not
0049 have the neccessarry OCCI header files in its directory structure.
0050 You can use the following for your $ORACLE_HOME:
0051
0052 prompt> export ORACLE_HOME=/afs/cern.ch/cms/external/lcg/external/oracle/10.1.0.3-1/slc3_ia32_gcc323
0053
0054 NOTE: Be sure there is no trailing slash at the end of this directory
0055 name! If there is you may get a run-time error "ERROR: Connection
0056 Failed: ORA-32101: cannot create OCI Environment".
0057
0058 If the $ORACLE_HOME is not prepared on your machine you can download
0059 the ORACLE instant client from
0060
0061 http://oracle.com/technology/software/tech/oci/instantclient/index.html
0062
0063 You may have to register a free account on oracle.com.
0064
0065
0066 2. LD_LIBRARY_PATH
0067
0068 Next you should set your $LD_LIBRARY_PATH:
0069
0070 prompt> export LD_LIBRARY_PATH=$ORACLE_HOME/lib
0071
0072
0073 3. Connection Information
0074
0075 Edit the test/TestCondDB.cpp file to set the correct connection
0076 information for the database you plan to use.
0077
0078
0079 4. Compiling
0080
0081 Compile the program by running 'make -f makefile.standalone' in the src directory.
0082
0083
0084 5. Running
0085
0086 When the compiling is finished you can run the example programs
0087 from the test/ directory.
0088
0089 prompt> ./test/TestCondDB
0090