Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents


Chinese

Pagetitle
开发服务器数据清理
开发服务器数据清理

...

Note
titleNote

1. Please shutdown your application server.

Chinese

请关闭您的应用程序服务器。

Thai

โปรดปิดเซิร์ฟเวอร์แอปพลิเคชันของคุณ

2. Please do a full database backup before proceeding to the following steps.

Chinese

请在进行以下步骤之前先完成数据库备份。

Thai

กรุณาทำการสำรองฐานข้อมูลเต็มรูปแบบก่อนที่จะดำเนินการตามขั้นตอนต่อไปนี้


1. Check existing count of XPDLs

Chinese

1.检查XPDL的现有数量

Thai

1. ตรวจสอบจำนวน XPDL ที่มีอยู่

...

Code Block
languagesql
titleMySQL, MSSQL, Oracle
 select count(*) from SHKXPDLS

2. Check the count of unused XPDLs

Chinese

2.检查未使用的XPDL的数量

Thai

2.ตรวจสอบจำนวน XPDL ที่ไม่ได้ใช้

...

Code Block
languagesql
titleOracle
select * from SHKXPDLS x
where concat(x.XPDLId, x.XPDLVersion) not in (
    select concat(packageId,packageVersion) as id from (
        select def.PackageId as packageId, TO_CHAR(def.ProcessDefinitionVersion) as packageVersion 
        from SHKActivities act 
        join SHKProcesses pro on act.Process = pro.oid 
        left join SHKProcessDefinitions def on pro.ProcessDefinition = def.oid 
        group by def.PackageId, def.ProcessDefinitionVersion 
        union 
        select packageId, TO_CHAR(packageVersion) from app_package
    ) group by packageId, packageVersion
);

3. Delete completed process instances data to clean up more XPDLs from cache

Chinese

3.删除已完成的流程实例数据以清除缓存中的更多XPDL

...

Code Block
languagesql
titleOracle
delete from SHKAssignmentsTable;
delete from SHKAndJoinTable;
delete from SHKDeadlines;
delete from SHKActivityData;
delete from SHKActivities;
delete from SHKProcessData;
delete from SHKProcessRequesters;
delete from SHKProcesses;

4. Delete the unused XDPLs

Chinese

4.删除未使用的XDPL

Thai

4.ลบ XDPL ที่ไม่ได้ใช้

...