/DetectorDescription/OnlineDBLoader/scripts/CMS_DTCTR_GEOMETRY_OWNER/loading-scripts/load_all_tables.sh

https://github.com/aivanov-cern/cmssw · Shell · 77 lines · 30 code · 22 blank · 25 comment · 0 complexity · a0b9c151f656154e0ed4c4a5294bf311 MD5 · raw file

  1. #!/bin/sh
  2. # This script load all the tables in DGD using sqlldr.
  3. # Yuyi Guo May 13, 2005
  4. #
  5. echo -n 'database TNS name: '
  6. read DB_NAME
  7. echo -n 'schema writer name: '
  8. read USER_NAME
  9. echo -n 'schema writer password: '
  10. read PASSWD
  11. CONN_ID=$USER_NAME@$DB_NAME/$PASSWD
  12. #echo "$CONN_ID"
  13. echo 'Loading Table SOLIDS'
  14. sqlldr $CONN_ID control=solids.ctl log=solids.log
  15. #echo 'Loading Table boxes'
  16. sqlldr $CONN_ID control=boxes.ctl log=boxes.log
  17. #echo 'Loading Table trapezoids '
  18. sqlldr $CONN_ID control=trapezoids.ctl log=trapezoids.log
  19. #echo 'Loading Table trapezoids '
  20. sqlldr $CONN_ID control=pseudotraps.ctl log=pseduotraps.log
  21. #echo 'Loading Table cones '
  22. sqlldr $CONN_ID control=cones.ctl log=cones.log
  23. #echo 'Loading Table polyhedras'
  24. sqlldr $CONN_ID control=polyhedras.ctl log=polyhedras.log
  25. #echo 'Loading Table polycones'
  26. sqlldr $CONN_ID control=polycones.ctl log=polycones.log
  27. #echo 'Loading Table tubesections'
  28. sqlldr $CONN_ID control=tubesections.ctl log=tubesections.log
  29. #echo 'Loading Table trd1s '
  30. sqlldr $CONN_ID control=trd1s.ctl log=trd1s.log
  31. #echo 'Loading Table rotations '
  32. sqlldr $CONN_ID control=rotations.ctl log=rotations.log
  33. #echo 'Loading Table booleansolids '
  34. sqlldr $CONN_ID control=booleansolids.ctl log=booleansolids.log
  35. #echo 'Loading Table zsections'
  36. sqlldr $CONN_ID control=zsections.ctl log=zsections.log
  37. #echo 'Loading Table materials'
  38. sqlldr $CONN_ID control=materials.ctl log=materials.log
  39. #echo 'Loading Table compositematerials '
  40. sqlldr $CONN_ID control=compositematerials.ctl log=compositematerials.log
  41. #echo 'Loading Table elementarymaterials '
  42. sqlldr $CONN_ID control=elementarymaterials.ctl log=elementarymaterials.log
  43. #echo 'Loading Table materialfractions'
  44. sqlldr $CONN_ID control=materialfractions.ctl log=materialfractions.log
  45. #echo 'Loading Table categories '
  46. sqlldr $CONN_ID control=categories.ctl log=categories.log
  47. #echo 'Loading Table logicalparttypes & detectorparts'
  48. sqlldr $CONN_ID control=logicalparts.ctl log=logicalparts.log
  49. sqlldr $CONN_ID control=detectorparts.ctl log=detectorparts.log
  50. #echo 'Loading Table pospartsgraph & replacements '
  51. sqlldr $CONN_ID control=pospartsgraph.ctl log= pospartsgraph.log
  52. #echo 'Loading Table physicalpartstree '
  53. sqlldr $CONN_ID control=physicalpartstree.ctl log=physicalpartstree.log
  54. #echo 'Loading Table nominalplacements '
  55. sqlldr $CONN_ID control=nominalplacements.ctl log=nominalplacements.log