Difference between revisions of "XBio:D Database Server Management"

From xBio:D Wiki
Jump to navigation Jump to search
Line 3: Line 3:
  
 
'''xBio:D Database Server Management'''
 
'''xBio:D Database Server Management'''
 +
 +
 +
== 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''
  
  
 
== Startup Database ==
 
== Startup Database ==
  
This section is present to provide a step-by-step manner to restarting the OSUC database. Although the database and all of the web services should automatically begin on startup, these instructions will be valuable if an error does occur. The assumption is that the user is already logged into the OSUC server.
+
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: $ <code>dbstart $ORACLE_HOME</code>
 
# Startup the database: $ <code>dbstart $ORACLE_HOME</code>
Line 13: Line 20:
  
  
////// Everything below is currently deprecated. Custom python middleware is acting as DB gateway //////
+
== 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.
 +
 
  
# Start up Oracle WebLogic Server: $ '''$WL_HOME/server/bin/startNodeManager.sh'''
+
== Automatic File Cleanup ==
# Start up Oracle Enterprise Manager Cloud Control (may be deprecated?): $ '''$AGENT_INSTANCE_HOME/bin/emctl start agent'''
 
# Start up Oracle middleware applications: $ '''$ORACLE_INSTANCE/bin/opmnctl startall'''
 
  
'''Using Enterprise Manager Cloud Control'''
+
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.
  
# URL: '''https://osuc.biosci.ohio-state.edu:7802/em'''
+
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.
# Username: '''sysman'''
 
# Password: a special derivative
 
  
 +
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.
 
[[Category:OSUC Private]]
 
[[Category:OSUC Private]]

Revision as of 20:31, 21 July 2015



xBio:D Database Server Management


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


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.

  1. Startup the database: $ dbstart $ORACLE_HOME
  2. 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.