(2022.1) Database Maintenance and Data Refreshes
Hosted Customers
For Hosted Customers of PCR-360, PCR acts as the Database Administrator. As such, PCR is responsible for all Database Administrative functions:
- Configuration and setup.
- Database upgrades and patches.
- Server upgrades and patches.
- Restoring the database after a system failure.
- Backing up the database.
- Refreshing Test system with Production data.
When the Test data is refreshed from Production data, the customer is responsible for changing any "Production" specific information. This includes, but is not limited to:
- Production-specific API keys.
- Custom Events, Custom API endpoints, or Escalations that contain Production specific URIs.
- Service Host entries for switch interfaces i.e. Cisco, Avaya, and SL100 settings.
PCR does not automatically refresh Test Systems with Production Data. This is done upon request and is limited to a single data refresh per quarter. Additional requests will be considered on a case-by-case basis. Typically, Test Data refreshes will only be scheduled for a weekday. Alternatively, PCR will also release a schedule of available weekend dates for data refreshes, with a limited number of slots. All weekend dates are first-come-first-serve.
Licensed Customers
Licensed Customers of PCR-360 are responsible for all Database Administration. This includes, but is not limited to, backups, modifying database settings, and refreshing Test data with Production data.
PCR does have a few requests when it comes to copying Production data to the Test database. Abiding by these requests will help avoid any potential issues caused by the data restoration.
- PCR would like to be informed when data is copied from Production to Test or restored from a backup. If the version of the data in the backup, or from Production does not match the patch installed on the system, the application will not function properly.
- If possible, coordinate the copying of Production Data to Test with new Patch Upgrades. This should reduce the possibility of any unforeseen issues since PCR would be installing the upgrade right after the data is copied. This allows PCR to verify everything is in order after the data transfer.
Refreshing Test Data Guidelines
Inform PCR before copying data from the Production system to the Test system, or restoring data from a backup. If the version of the data in the backup, or from Production, does not match the patch installed on the system, the application will not function properly.
If possible, coordinate the copying of Production Data to the Test system with new Patch Upgrades. This should reduce the possibility of any unforeseen issues since PCR would be installing the upgrade right after the data is copied. This allows PCR to verify everything is in order after the data transfer.
Backup the Test database (optional) - This is only necessary if you suspect you will need to restore any data from the Test system that is not in the Production data.
Export the Production database, or prepare a backup copy of the Production database that you can import into the Test database.
All PCR-360 installations require three schemas/databases; pcr360_prod, pcr360_prod_metadata, and pcr360_prod_archive. The names may vary by installation, however, there should be a primary schema, metadata schema, and archive schema.
All tables must be exported, including empty tables. The application may not run properly if any schemas, or tables are missing.
Disable the cron for the Test system by commenting out the entry in the crontab. (This is typically found in the root crontab, but could be in the Apache crontab for some customers).
Import the data into each of the schemas on the Test Database.
Note: Always verify that you are importing the data into the test schemas, you may not be able to fix the production data if any data changes occurred since the data was exported.
Save the output of the import process to a log file. You should review the log after the import has completed and verify no issues occurred during the import process.
After the data has imported, you will need to rebuild the views.
Rebuild the MT-Views (from the browser)
<application url>/update/create/mt-views
The mt-views will be automatically updated
Rebuild the standard Views (from the browser)
<application url>/update/create/views
The views will be automatically updated
Restore any triggers, custom views, etc. on the Test system.
Uncomment the Test system entry in the crontab to enable the cron.
Log into the application to verify everything works and you're done!