<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Folks,</p>
<p>As you know, the guidance on what we should do for accessing CCDB
from the farm has been a moving target. I won't run down the
history for you; you're welcome. Let me emphasize: <b>the
following is for the JLab farm</b>.<br>
</p>
<h3>The Recommendation (simple form)</h3>
<p>1. Use the latest production version of CCDB: 1.06.07.<br>
</p>
<p>2. Set your JANA_CALIB_URL environment variable to
<a class="moz-txt-link-abbreviated" href="mailto:mysql://ccdb_user@hallddb-farm.jlab.org/ccdb">mysql://ccdb_user@hallddb-farm.jlab.org/ccdb</a></p>
<h3>The Same Recommendation (pedagogical form)</h3>
<p>1. Use the latest production version of CCDB: 1.06.07. Check your
CCDB_HOME environment variable to confirm this. This version has
the new, faster query for accessing the MySQL form of the CCDB. If
you are not using this version, I can help you get set up with it.</p>
<p>2. Set your JANA_CALIB_URL environment variable to</p>
<p> <a class="moz-txt-link-abbreviated" href="mailto:mysql://ccdb_user@hallddb-farm.jlab.org/ccdb">mysql://ccdb_user@hallddb-farm.jlab.org/ccdb</a></p>
<p>This happens automatically with the Build Scripts system. The key
line in the Build Scripts set-up script is:</p>
<p> setenv JANA_CALIB_URL `$BUILD_SCRIPTS/calib_url_chooser.sh`</p>
<p>for tcsh, and for bash:</p>
<p> export JANA_CALIB_URL=`$BUILD_SCRIPTS/calib_url_chooser.sh`<br>
</p>
<p>where the BUILD_SCRIPTS environment variable points to</p>
<p> /group/halld/Software/build_scripts</p>
<p>The script calib_url_chooser.sh senses whether or not you are on
the farm, and if so follows the current recommendation, i.e., uses
the MySQL server on hallddb-farm.jlab.org. If you are not on the
farm it uses hallddb.jlab.org, our default MySQL server.</p>
<p>Note that as the recommendation has changed, so too has the
choice made by calib_url_chooser.sh. So if you use Build Scripts,
you don't have to know what the current Recommendation is.<br>
</p>
<p> -- Mark</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>