Steps to Implement SOA Purging in 12c Fusion:
- Shutdown SOA 12c Fusion domain (please follow sequence Managed servers, Admin Server, and Node Manager)
- Login to SOA 12c Fusion database as SYS and execute the following
NOTE: SOAINFRA schema name could be different to what I am referring here as “SOAINFRA”
GRANT ALTER SESSION TO SOAINFRA
- Ensure you take the backup of Scripts for Constraint ‘FA_CORR_FLOW_INSTANCE_FK’ under SOAINFRA Schema
- Log into SOAINFRA schema of SOA 12c Fusion Database and execute below SQL statement
alter table “SCA_FLOW_ASSOC” drop constraint “FA_CORR_FLOW_INSTANCE_FK”;
- Start SOA 12c Fusion domain (please follow sequence Node Manager, Admin Server, and Managed servers)
- Run the following query on SOA 12c Fusion Database and note down the count of total instances present
select count(1) from SOAINFRA.SCA_FLOW_INSTANCE;
- Login to SOA 12c Fusion EM console
- In Target Navigation pane, Under SOA, right-click on soa-infra (soa server1), Navigate to SOA Administration> Auto Purge

- Update the Schedule as follows for SOA Flow Purge Job 1 as seen in the screenshot below and then Click on More Auto Purge Configuration Properties

NOTE: The above values can be configured as per your requirement.
- Click on PurgeJobDetails

- Expand DELETE_INSTANCES_AUTO_JOB1
- Set the following parameter values

DOP = 4
batchSize = 20000
ignoreState = true
maxCreationPeriodDays = 15
minCreationPeriodDays = 30
purgeType = PARALLEL
retentionPeriod = 14
retentionPeriodUnit = D
NOTE: The above values can be configured as per your requirement.
- Click on Apply to save the changes.

- To test whether the above schedule purging is working fine or not. We will perform an ad-hoc run by going to SOA Infrastructure > SOA-Administration > Auto Purge and click on Run Now

- Wait for 15-20 minutes and run the following query on Retail Fusion SOA DB to ensure whether SOA Purge is running fine
select count(1) from SOAINFRA.SCA_FLOW_INSTANCE;
Note: Count from the above step should be relatively lower than one obtained in step 6.

Well explained!!
LikeLike
Well done
LikeLike
Nice explanation.
LikeLike
Superb
LikeLiked by 1 person
Great article
LikeLike
Great
LikeLike
Nice one
LikeLike
Ohh nice to know about automatic purging in 12c
LikeLike
Very useful n informative article
LikeLike
Interesting fact about SOA purging.
LikeLike
Just what I needed.
LikeLiked by 1 person
Indeed a helpful blog!
LikeLike
very well articulated about automatic purging in 12c !!!
LikeLiked by 1 person
Informative article… Nice one
LikeLike