cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
454
Views
0
Helpful
2
Replies

Difficults with Database UCCX

arnaldo.junior
Level 1
Level 1

Hi All!

 

We're deploying a custom real time report in a UCCX 9.0.2. The problem we're facing is the following:

 

Sometimes when our Select is executed, the table rtcsqssummary makes a locked and the CUIC returns a exception.

 

 

 

Follow below the query that is executed each 15 seconds: 

SELECT
SUBSTR(rtc.csqname,1,LENGTH(rtc.csqname)-3) AS nome, SUM(rtc.totalcalls) AS call_total, SUM(rtc.callsabandoned )AS abandoned_total, SUM(rtc.callswaiting) AS queue, MAX(rtc.oldestcontact) AS tme FROM rtcsqssummary rtc
WHERE
(MDY(MONTH(enddatetime),DAY(enddatetime),YEAR(enddatetime))-MDY(MONTH(startdatetime),DAY(startdatetime),YEAR(startdatetime)) < 5 )
AND
(rtc.csqname LIKE 'CSQ_CONEC%' OR rtc.csqname LIKE 'CSQ_MICRO%'  OR rtc.csqname LIKE 'CSQ_MONIT%'   OR rtc.csqname LIKE 'CSQ_TELEC%'  OR rtc.csqname LIKE 'CSQ_WINDOWS%')
AND (rtc.csqname NOT LIKE 'CSQ_MICROINFORMATICA%' )

GROUP BY 1
FOR READ ONLY;​

 

You guys have any ideia what can be? Tks 


Regards,

Arnaldo Junior

 

2 Replies 2

Gergely Szabo
VIP Alumni
VIP Alumni

Hi,

looks like UCCX has an exclusive lock on a table you are trying to read and your query simply can't get the lock.

Is it a wallboard-like real timeish report?

G.

Hi Gergely!

 

It's real time report.

 

We're using uccxrhuser to do the consult.

 

Regards,