Objective
Provisioning tasks in CloudPortal Services Manager are logged to the SQL database. Over time this can begin to have an impact on the performance of the platform showing below symptoms:
- Extremely slow performance on the CPSM web portal.
- Timeout errors while expanding customer/user details.
This procedure is aimed to allow the Service Provider to delete older logs from the system to recover this lost performance
This process can also be executed during production up-time, as the script provided will perform the deletes in small chunks which will not cause any transaction log blowout which could be the case normally with deleting a lot of data in one transaction.
Instructions
-
Log on to SQL server.
-
Backup the OLM database.
-
Run the attached SQL file sp_RequestDelete2.sql. This creates a new stored procedure called sp_RequestDelete2 against the OLM database.
-
The stored procedure accepts the number days worth of request log entries for retention. In this case we want to keep 6 months worth of data or 180 days worth of entries (30 days a month X 6 months = 180 days).
-
Open a new query in SQL Management Studio against the OLM database, enter and run the following query:
exec sp_RequestDelete2 @RetentionDays=180 -
When the query completes the request log will only have request log entries for the specified number of days. For several entries to be deleted it could take really long.
Note: Due to the batch processing of this procedure, there could be little impact on the production system while this is running.
NOTE: We might also want to consider scheduling this query to run on a daily basis in order to ensure that the Request Logs are kept at a manageable size
??
Supporto Citrix
Traduzione automatica
Questo articolo ?? ¨ stato tradotto da un sistema di traduzione automatica e non ?? ¨ stata valutata da persone. Citrix fornisce traduzione automatica per aumentare l'accesso per supportare contenuti; tuttavia, articoli automaticamente tradotte possono possono contenere degli errori. Citrix non ?? ¨ responsabile di incongruenze, errori o danni derivanti dell'uso di articoli automaticamente tradotte.
Citrix技術支持
自動翻譯
這篇文章被翻譯由一個自動翻譯系統,並沒有受到人們的審查。 Citrix提供自動翻譯,增加獲得支持的內容;但是,自動翻譯的文章可能可以包含錯誤。思傑不負責不一致,錯誤或損壞因使用自動翻譯的文章的結果。
Поддержка Citrix
Tradução automática
Эта статья была переведена автоматической системой перевода и не был рассмотрен людьми. Citrix обеспечивает автоматический перевод с целью расширения доступа для поддержки контента; Однако, автоматически переведенные статьи могут может содержать ошибки. Citrix не несет ответственности за несоответствия, ошибки, или повреждения, возникшие в результате использования автоматически переведенных статей.
시트릭스 지원
자동 번역
이 문서 자동 번역 시스템에 의해 번역 된 사람들에 의해 검토되지 않았다. 시트릭스는 컨텐츠를 지원하기 위해 접근을 높이기 위해 자동 번역을 제공합니다; 그러나, 자동으로 번역 기사 오류를 포함 할 수있다. 시트릭스는 자동으로 번역 된 기사의 사용의 결과로 발생하는 불일치, 오류 또는 손해에 대해 책임을지지 않습니다.