The --dbs-lite option changes the behaviour to:-
$SRT_PUBLIC_CONTEXT/DatabaseMaintenance/tools/dump_table_context_query.perl \
--host <host> --username <user> --password <pswd> --dbs-lite \
--database <database (usually offline)> UGLIDBIGEOMETRY
which should create the file:-
UGLIDBIGEOMETRY-DBS-LITE.tar.gzA list of the minimal set of tables required to run standard off line code is maintained at:-
/afs/fnal.gov/files/data/minos/d210/database_dumps/prime_xxxxxxxx.lis where xxxxxxxx = current update numberso to generate a complete set of tables for your laptop, start from a place where you can access your favourite maintained database server, and do the following:-
mkdir <some scratch directory> cd <some scratch directory>and then, for sh/bash shells:-
for table in `cat /afs/fnal.gov/files/data/minos/d210/database_dumps/prime_*.lis`
do
$SRT_PUBLIC_CONTEXT/DatabaseMaintenance/tools/dump_table_context_query.perl \
--host <host> --username <user> --password <pswd> --dbs-lite \
--database <database> $table
done
or for csh/tcsh shells:-
foreach table (`cat /afs/fnal.gov/files/data/minos/d210/database_dumps/prime_*.lis`)
$SRT_PUBLIC_CONTEXT/DatabaseMaintenance/tools/dump_table_context_query.perl \
--host <host> --username <user> --password <pswd> --dbs-lite \
--database <database> $table
end
To apply a single update file, e.g. UGLIDBISTRIPSTRUCT-DBS-LITE.tar.gz held in the current work directory, do:-
$SRT_PUBLIC_CONTEXT/DatabaseMaintenance/tools/load_tables.sh \
--host <host> --username <user> --password <pswd> \
--database <database> --tar_dir ./ UGLIDBISTRIPSTRUCT-DBS-LITE.tar.gz
To do this on your laptop for a complete set of tables as described in
the previous section, collect up the files and place them on the
laptop and cd to the directory that holds them. Then, for
sh/bash shells:-
for file in `ls *-LITE.tar.gz`
do
$SRT_PUBLIC_CONTEXT/DatabaseMaintenance/tools/load_tables.sh \
--host <host> --username <user> --password <pswd> \
--database <database> --tar_dir ./ $file
done
or for csh/tcsh shells:-
foreach table (`ls *-LITE.tar.gz`)
$SRT_PUBLIC_CONTEXT/DatabaseMaintenance/tools/load_tables.sh \
--host <host> --username <user> --password <pswd> \
--database <database> --tar_dir ./ $file
end