1. Install the purge script if not already installed
export MW_HOME=/u01/app/oracle/middleware
cd $MW_HOME/Oracle_SOA1/rcu/integration/soainfra/sql/purge
sqlplus dev_soainfra@orcl @purge_mediator_oracle.sql2. Log in as the SOAINFRA user and run the purge package as follows
oracle@oradev:/home/oracle> sqlplus dev_soainfra@orcl
DECLARE
filter INSTANCE_FILTER := INSTANCE_FILTER();
max_instances NUMBER;
deleted_instances NUMBER;
purge_partitioned_data BOOLEAN := TRUE;
BEGIN3. Apply filters to your purge script
filter.min_created_date := TO_TIMESTAMP('2009-07-01','YYYY-MM-DD');
filter.max_created_data := TO_TIMESTAMP('2010-12-10','YYYY-MM-DD');
deleted_instances := FABRIC.DELETE_COMPOSITE_INSTANCES (
FILTER => filter,
MAX_INSTANCES => max_instances,
PURGE_PARTITIONED_DATA => purge_partitioned_data
);
END;
/
Be aware that the command above will also purge 'running' instances within that timeframe.
You can add additional filters to the PL/SQL above to limit what you want to delete. For example:
filter.composite_partition_name :='default';Some other valid FILTER.STATES also include, in which you can further limit the type of instances you want to purge:
filter.composite_name := 'OrderBookingComposite';
filter.composite_revision := '1.0';
filter.state := FABRIC.STATE_TERMINATED_BY_USER;
max_instances := 100;
STATE_RECOVERY_REQUIREDApplicable Versions:
STATE_COMPLETED_SUCCESSFULLY
STATE_FAULTED
STATE_TERMINATED_BY_USER
STATE_SUSPENDED
STATE_STALE
- Oracle SOA Suite 11g (11.1.1.x)
- Chapter 8.11.2 "Procedures For Deleting Instances" of the Oracle® Fusion Middleware Administrator’s Guide for Oracle SOA Suite and Oracle Business Process Management Suite 11g Release 1 (11.1.1) E10226-04
No comments:
Post a Comment