Gratia Administration
System Administration
Starting/Stopping Database Update Services:
Current Status: #threadstatus#
Stop Update Services
Start Update Services
Creating/Recreating Report Summary Tables:
Unfortunately, this process cannot be (safely) automated. Specifically what you have to do is:
- Bring down the tomcat service accessing your Gratia database.
- In your $CATALINA_HOME/gratia subdirectory you will find a script called build-summary-tables.bat (or build-summary-tables.sh) which will drop/create the various summary tables used by reporting and install an "after insert" trigger on the JobUsageRecord table which will dynamically update the summary tables as new information is received by the Gratia system.
- The actual SQL that is being executed is in $CATALNA_HOME/gratia/build-summary-tables.sql.
- Restart your tomcat service.
Warnings:
- Be very, very careful if you modify the build-summary-table.sql code. Any errors in this can cause the Gratia data collector to hang. If this happens you must stop the tomcat service and delete the trigger.
- MySQL does not, repeat does not, backup triggers and stored procedures as part of a mysqldump. If you have to do a restore, you must recreate the trigger.