Operational Analyst: Data is not being inserted into the OADB CmsCallHistory table.


Doc ID    SOLN210456
Version:    1.0
Status:    Published
Published date:    02 Feb 2015
Author:   
alyssape
 

Details

OA 7.2.4
CMS R 15

Problem Clarification

Data is not being inserted into the OADB cmscallhistory table.  CMS Interval data (agent, skill, vdn, cwc) is inserting fine.

Cause

Root cause of the inability for CMSCallhistory data to be inserted into the OA database to be a SQL deadlock that the reccmscallhistory process was a 'victim' of which occurred at 7:09:29 am ET on 09/12.


9/12/2012 7:09:29 AM
ALARM - emergency: OA reccmscallhistory 1080
= CmsCallHistory@r3comtn; (5) SQL call failed. 1205, -1, 40001,[Microsoft]
[ODBC SQL Server Driver][SQL Server]Transction (Process ID 82) was
deadlocked on lock resources with another process and has been chosen
as the deadlock victim. Rerun the transaction

Solution

- The recommendation is to insure that any activities such as the OA Purge job, database backup or large intrusive queries against the cmscallhistory and hcmsagent tables only occur during the middle of the night and/or during non-production/low-activity times. Included are 2 links below regarding deadlock troubleshooting and best practices. 
- Review of the cmscallhistory table size/row number indicates that it averages around 23GB with 104 million rows and a data retention period of 90 days. Please follow up with your report team to see if it is necessary to retain the data for 90 days or if 30 or 60 days worth of data is sufficient. If the retention period is changed in the OA Admin client recommend that you decrement the retention period only a couple days at a time.

- Lastly there are 7 indexes on the cmscallhistory table - 3 of those indexes appear to be the out of the box indexes and the other are custom indexes. If you also follow up with the report team as to whether or not these 4 indexes are needed.

 - SQL deadlock information links:


http://www.sqlusa.com/bestpractices/deadlock/

http://www.simple-talk.com/sql/learn-sql-server/how-to-track-down-deadlocks-using-sql-server-2005-profiler/


Avaya -- Proprietary. Use pursuant to the terms of your signed agreement or Avaya policy