Skip to content

LOADING DATA INTO THE DB

barriap edited this page Dec 1, 2021 · 5 revisions

Data are automatically uploaded at CERN adding the option --write

  • user must be authorised by Giovanni Organtini
  • if local username is different from CERN username you need to add the option --user followed by your CERN username
  • Before using --write open an ssh tunnel

ssh -L 50022:dbloader-mtd.cern.ch:22 <CERN username>@lxplus.cern.ch

  • DB loader often is down so Giovanni has a DB loader simulator on a VM

ssh -L 50022:oms-mtd.cern.ch:22 <your-cern-username>@lxplus.cern.ch

Alternative, still using tunnel: manually copy XML file onto the db-loader machine

scp -P 50022 -oNoHostAuthenticationForLocalhost=yes registerMatrixBatch.xml <your-cern-username>@localhost:/home/dbspool/spool/mtd/int2r/<new-name>.xml (DBLOADER)

scp -P 50022 -oNoHostAuthenticationForLocalhost=yes registerMatrixBatch.xml pbarria@localhost:/home/dev/dbloader/xml/Array606_v1.xml (OMS VM)

The file is then automatically loaded into the DB

Clone this wiki locally