XBio:D Database Server Management
xBio:D Database Server Management (osuc.biosci.ohio-state.edu)
Contents
General Locations
- Apache Server Config: /etc/httpd/
- Apache Web Directory: /var/www/
- Oracle Home Directory: /opt/app/oracle/product/11.2.0/db_2
- Oracle Base Directory: /opt/app/oracle
Applications / Services
- OJ_Break API - http://xbiod.osu.edu/OJ_Break/
- Database Gateway - http://osuc.biosci.ohio-state.edu/hymDB/
- LSID / GUID Metadata Handler - http://bioguid.osu.edu/
- xBio:D Javascript Library - http://xbiod.osu.edu/xbiod_lib/xbiod.js
- HOL - http://hol.osu.edu/
- vSysLab - http://vsyslab.osu.edu/
- DB Manager - http://osuc-mgr.osu.edu/
- HNS - http://hns.osu.edu/
- Platy site - osuc.biosci.ohio-state.edu/hymDB/eol_scelionidae.home
- HOL-based sites (Acarology, Bivalves, Fishes, UCFC)
Startup Database
Although the database and all of the web services should automatically begin on startup, the database and its listener do not seem to obey. These instructions will provide you with information on starting the database. The assumption is that the user is already logged into the OSUC server.
- Startup the database: $
dbstart $ORACLE_HOME
- Start the database listener: $
lsnrctl start
Database Backup
The database is backup up daily at 10PM via the db_backup.sh script. This script create a database dump using the exp command and transfers this file via FTP to the dumpfiles directory of the hymfiles web directory.
Dataset Export
Data sets that are intended to be automatically updated in the xBio:D IPT must be specified within the export_dwca_collections.py found within the cgi-bin of the web server. Exports are placed into the data exports directory of the web server and present for harvesting by a supplementary script found on the hymfiles server where the IPT resides.
Automatic File Cleanup
The database server hosts the xBio:D database, the APIs, HOL, vSysLab, DB Manager, HNS, and the various HOL-based sites, however the available hard disk space is somewhat limited. Trace and log files quickly fill up available space that requires a solution that addresses the issue periodically. There are two scripts on server that remove temporary files that may cause problems.
- The first script, removeOldTraceFiles.py, removes the Oracle trace files used by the optimizer to make database usage efficient. If trace files are older than five days, the script will remove these files to save space.
- The second script, removeOldDataExports.py, removes data exports from the various web applications. This script removes any export that has resided on the server for over a month.