
{"id":7471,"date":"2020-06-10T06:49:14","date_gmt":"2020-06-10T06:49:14","guid":{"rendered":"https:\/\/rax-stg-wp-aws.com\/blogs\/introduction-to-the-soa-purging-process\/"},"modified":"2026-11-03T19:28:41","modified_gmt":"2026-11-03T19:28:41","slug":"introduction-to-the-soa-purging-process","status":"publish","type":"blogs","link":"https:\/\/www.rackspace.com\/es\/blogs\/introduction-to-the-soa-purging-process\/","title":{"rendered":"Introduction to the SOA purging process"},"content":{"rendered":"<p><strong>Introduction<\/strong><\/p>\n<p>The term <em>purge<\/em>&nbsp;means to remove or erase something completely. Data purging is a&nbsp;process or activity mostly related with&nbsp; database technologies and tasks, such as&nbsp;cleaning up databases.<\/p>\n<p>Any organization expects or prefers to preserve all its historical data&nbsp;accumulated over a period for data mining and analysis.&nbsp; There is always a finite&nbsp;amount of storage available to warehouse those bits and bytes. When you don&#8217;t&nbsp;purge this data regularly, the tables in a database can grow so enormous that&nbsp;performance deteriorates. Purging is the most important aspect of database<br \/>\nperformance tuning because it frees up space in the database or deletes&nbsp;obsolete data that the system no longer needs. You can base the purge process&nbsp;on either the data age or type.<\/p>\n<p><strong>Background<\/strong><\/p>\n<p>Oracle\u00ae included purging for the first time in version 11g, released in&nbsp;November 2009. Scripts included filters for the composite name and state. Purging&nbsp;considerations include performance issues along with the orphaned references.<\/p>\n<p><strong>Why purge?<\/strong><\/p>\n<p>Consider the following reasons to purge data:<\/p>\n<ul>\n<li>&nbsp;Because databases expand at an uncontrollable rate, storage and retrieval processes can create issues.<\/li>\n<li>&nbsp;Ever-expanding databases badly affect system performance and, thereby, business efficiency.<\/li>\n<li>&nbsp;Though data storage is relatively cheap, upgrading hardware is a very cost-intensive activity.<\/li>\n<li>&nbsp;You need to ensure agility in case of disaster recovery.<\/li>\n<\/ul>\n<p><strong>Key benefits<\/strong><\/p>\n<p>Purging data has the following benefits:<\/p>\n<p><strong>Improves performance&nbsp;<\/strong><\/p>\n<p>Purging data serves you in the following areas.<\/p>\n<ul>\n<li>&nbsp;Advantage processes run faster because there are fewer records to process<\/li>\n<li>&nbsp;Decreased backups and restore periods<\/li>\n<li>&nbsp;Reduced disk space requirements<\/li>\n<li>&nbsp;Speedier advantage lookups<\/li>\n<\/ul>\n<p><strong>&nbsp;Simplifies data management<\/strong><\/p>\n<p>Less data is easier to manage! Data duplication consumes an average of 25% of&nbsp;software system data allowances. With an archiving solution, you can identify&nbsp;and remove redundant data and purge files you no longer need. You can also remove<br \/>\nolder files from the file servers and replace them with stubs that hold predefined&nbsp;data for testing purposes.<\/p>\n<p><strong>&nbsp;Reduces Backups Windows<\/strong><\/p>\n<p>With data accumulating in your database, backup times can stretch even beyond 24&nbsp;hours. By archiving or purging unnecessary&nbsp; data, you can reduce backup times and&nbsp;avoid backing up historical data.<\/p>\n<p><strong>&nbsp;Increase data report visibility<\/strong><\/p>\n<p>Reporting your data accurately enables you to pinpoint and identify improper&nbsp;usage, wastage, and abuse of your organization&#8217;s storage. You can perform in-depth&nbsp;analysis when you can view files by various attributes such as server, owner,&nbsp;size, type, name, oldest, newest, largest, or most frequently changed.<\/p>\n<p><strong>Protects from accidental deletion<\/strong><\/p>\n<p>You can create simple rules and policies to protect your data. &nbsp;For example,&nbsp;&#8220;After file deletion, do not remove the copy from the archive for 120 days&#8221;.<\/p>\n<p><strong>&nbsp;Auto-purge configuration<\/strong><\/p>\n<p>To perform instance purging, Oracle Service-oriented architecture (SOA) 12c<br \/>\nautomated jobs at the Enterprise Manager (EM) Console level.<\/p>\n<p>Perform the following steps to configure automatic purging:<\/p>\n<p><strong>Step 1: Choose Auto Purge<\/strong><\/p>\n<p>In the console, navigate to <strong>Target Navigation \u2013&gt;SOA\u2013&gt; soa-infra\u2013&gt;SOA Administration -&gt;Auto Purge<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26422-body-Picture1.png\" alt=\"SOA purge pic 1\" \/><\/p>\n<p><strong>&nbsp;Step 2: Change the settings<\/strong><\/p>\n<p>The following image shows the settings page:<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26422-body-Picture2.png\" alt=\"SOA purge pic 2\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Available settings include the following options:<\/p>\n<p><strong>Predefined jobs<\/strong><\/p>\n<p>There are two predefined database purge jobs displayed, <strong>delete\\_instances\\_auto\\_job1<\/strong><br \/>\nand <strong>delete\\_instances\\_auto\\_job2<\/strong>.<\/p>\n<p>Select <strong>Job1<\/strong>&nbsp;to run <em>delete_instances_auto_job1<\/em>&nbsp;on a schedule appropriate&nbsp;for weekdays (Monday through Friday at midnight). This job is enabled by default.<\/p>\n<p>Select <strong>Job2<\/strong>&nbsp;to run <em>delete_instances_auto_job2<\/em>&nbsp;on a weekend schedule&nbsp;(Saturday and Sunday) that might be more aggressive. This job is not automatically&nbsp;enabled.<\/p>\n<p>&nbsp;<strong>Purge type<\/strong><\/p>\n<p>Purge options include the following settings:<\/p>\n<ul>\n<li><strong>Single<\/strong>: A single, loop purged script that performs a batched purge.<\/li>\n<li><strong>Parallel<\/strong>: This option works similarly to the single option, but it enables<\/li>\n<\/ul>\n<p>&nbsp; the <strong>dbms_scheduler<\/strong>&nbsp;package to spawn multiple purge jobs to work on the subset&nbsp;data.<\/p>\n<p>If you have many CPU hosts, the parallel script can save time. Oracle has the&nbsp;following recommendations for parallel&nbsp; processing:<\/p>\n<ul>\n<li>&nbsp;Use parallel processing only during off-hours.<\/li>\n<li>&nbsp;When purging data during off-hours, drop indexes before purging large amounts&nbsp;of data and then add the indexes back in. This speeds up the purge process and&nbsp;keeps indexes from becoming unbalanced.<\/li>\n<\/ul>\n<p><strong>Batch size<\/strong><\/p>\n<p>This setting determines the maximum number of business flows to delete at a time.<br \/>\nThe default value is 20000.<\/p>\n<p><strong>&nbsp;Schedule<\/strong><\/p>\n<p>You can click the calendaring expression icon to see examples of job scheduling&nbsp;syntax. Copy and paste the syntax for your environment into the <strong>Job Schedule&nbsp;<\/strong>field and modify it. Explore&nbsp; <strong>More Info<\/strong>&nbsp;to learn more about available options.<\/p>\n<p>Use the required <strong>Job Schedule<\/strong>&nbsp;field to specify the instance purge schedule.&nbsp;By default, purges occur daily at midnight. The scheduling syntax is not case&nbsp;sensitive.<\/p>\n<p><strong>Degree of Parallel<\/strong><\/p>\n<p>This metric indicates the number of operations that the server can or is&nbsp;simultaneously executing. It describes the performance of parallel programs and&nbsp;multi-processor systems. The default value is four CPUs&nbsp;<\/p>\n<p><strong>&nbsp;Retain Data<\/strong><\/p>\n<p>The operation does not purge data that falls within this interval when the job&nbsp;runs. The default value is seven days.<\/p>\n<p><strong>&nbsp;Set creation period days<\/strong><\/p>\n<p>The following image shows settings for auto job 1:<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26422-body-Picture3.png\" alt=\"soa purge pic 3\" \/><\/p>\n<p>Use the following steps to set the <strong>maxCreationPeriodDays<\/strong>&nbsp;and&nbsp;<strong>minCreationPeriodDays<\/strong>&nbsp;values:<\/p>\n<p><strong>&nbsp;Step 1: Navigate to the job<\/strong><\/p>\n<p>1. Log in to the EM console and choose <strong>Target Navigation\u2013&gt;SOA\u2013&gt;soa-infra\u2013&gt;SOA Administration\u2013&gt;Auto Purge<\/strong>.<\/p>\n<p>2. Choose <strong>More Auto Purge Configuration Properties\u2013&gt;PurgeJobDetails\u2013&gt;DELETE\\_INSTANCES\\_AUTO\\_JOB1<\/strong>.<\/p>\n<p><strong>Step 2: Choose the settings<\/strong><\/p>\n<p>Set the following values:<\/p>\n<ul>\n<li><strong>maxCreationPeriodDays<\/strong>: 31, which deletes data older than 30 days<\/li>\n<li><strong>minCreationPeriodDays<\/strong>: 120, which deletes 120 days of data and keeps the&nbsp;ost recent 30 days of data<\/li>\n<\/ul>\n<p>The <strong>maxCreationPeriodDays<\/strong>&nbsp;field shows the maximum creation period in days.&nbsp;The <strong>minCreationPeriodDays<\/strong>&nbsp;shows the minimum creation period in days. Use&nbsp;these two properties to select the flows created between a certain period.<br \/>\n&nbsp;<\/p>\n<p>Following is a brief description of the other available settings:<\/p>\n<ul>\n<li>&nbsp;<strong>ignoreState<\/strong>: Defaults to false, but when true, this setting purges all open and closed instances within the specified date range. Purging open&nbsp;instances might leave your system in an inconsistent state, so use this option&nbsp; cautiously.<\/li>\n<li><strong>maxCount<\/strong>: Shows the maximum number of flows to purge.<\/li>\n<li><strong>PQS<\/strong>: Displays the number of parallel query replica servers. You can add&nbsp;additional replicas to improve expensive SQL commands performance.<\/li>\n<li><strong>purgePartitionedComponent<\/strong>: Defaults to false and indicates if the operation&nbsp;should purge partitioned tables.&nbsp; When true, the system invokes the same purge&nbsp;job to delete partitioned data. You might not want to purge&nbsp; partitioned tables&nbsp;because a DROP statement maintains them. However, if you are using a&nbsp;<strong>Large Database<\/strong>&nbsp;type, which set when creating schemas by using RCU, you need&nbsp;to set partition purging to &#8220;true.&#8221;<\/li>\n<li><strong>purgeType<\/strong>: Sets either the single or parallel type.<\/li>\n<\/ul>\n<p><strong>Purging<\/strong><\/p>\n<p>During a purge, perform the following steps:<\/p>\n<p><strong>Step 1: Shut down the application services.<\/strong><\/p>\n<p>You need approximately 15 \u2013 20 minutes of downtime, depending on how many&nbsp;managed servers you configured in a domain.<\/p>\n<p><strong>Tables for purge<\/strong>:<\/p>\n<ul>\n<li>&nbsp;AUDIT\\_TRAIL<\/li>\n<li>&nbsp;XML\\_DOCUMENT<\/li>\n<li>&nbsp;CUBE\\_SCOPE<\/li>\n<li>&nbsp;BPELNOTIFICATION<\/li>\n<li>&nbsp;REFERENCE\\_INSTANCE<\/li>\n<li>&nbsp;HEADERS\\_PROPERTIES<\/li>\n<\/ul>\n<p><strong>&nbsp;Step 2: Gather the space consumption by objects<\/strong><\/p>\n<p>Determine space usage for all objects.<\/p>\n<p><strong>&nbsp;Step 3: Rebuild the tables, indexes, and table partition<\/strong><\/p>\n<p>After you rebuild the tables listed in Step 1, gather the stats and validate&nbsp;the logs.<\/p>\n<p>Run the following scripts in the database server <strong>\/home\/oracle\/TAB\\_REORG\/&nbsp;<\/strong>and <strong>\/home\/oracle\/TAB\\_REORG\/<\/strong>&nbsp;directories:<\/p>\n<p>1. <em>SpacebeforeActivity.sql<\/em><br \/>\n2. <em>MoveTab.sql<\/em><br \/>\n3. <em>GatherStat.sql<\/em><br \/>\n4. <em>space_after_Activity.sql<\/em><\/p>\n<p><strong>&nbsp;Step 4: Gather the space consumption after the activity<\/strong><\/p>\n<p>Notice the reduced space usage. The process freed approximately 1.8 GB.<\/p>\n<p><img decoding=\"async\" src=\"\/wp-content\/uploads\/2026\/blog_article_images\/26422-body-Picture4.png\" alt=\"soa purge pic 4\" \/><\/p>\n<p><strong>&nbsp;Step 5: Start the application services.<\/strong><\/p>\n<ul>\n<li>Restart all the application services<\/li>\n<\/ul>\n<p><strong>Conclusion<\/strong><\/p>\n<p>Capacity planning and testing with consideration for future growth is paramount&nbsp;to a well-designed SOA database growth management strategy. So, don&#8217;t limit your&nbsp;decisions to only current requirements. If production needs to expand, your design<br \/>\nmight be insufficient and require downtime to resolve.<\/p>\n<p>Carefully balance the need for database maintenance and Online Transactional&nbsp;Processing (OLTP) performance because they are equally important<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction to the SOA purging process<\/p>\n","protected":false},"author":2,"featured_media":7473,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","format":"standard","meta":{"content-type":"","nid":"26422","content_type":"blog","created_by":"10130","authored_on":"2023-12-31T07:49:14+00:00","field_article_industries":"","tag_category":"Technical","field_blog_author_text":"by  Ameer Shaik, Senior Systems Engineer, Senior Systems Engineer, Rackspace Technology","seo_description":"Explore the critical role of data purging in optimizing database performance. Learn key concepts and processes for maintaining efficiency.\r\n","field_featured_image":"","insights_image":"\/wp-content\/uploads\/2026\/blog_technical_images\/26422-insights_image-productivity-technical-blog-1-insights.jpg","field_partners":"","rxt_platforms":"ObjectRocket DBaaS","product":"","publisheddate":"2020-06-10T06:49:14","rxt_solutions":"SaaS Optimization, Data","opengraph_tag":"","x_tag":"","teaser_flag":"Technical Blog","seo_titile":"SOA Purging Process | Rackspace Technology","field_topics":"","field_slug":"introduction-to-the-soa-purging-process","copied_media_ids":null,"referenced_media_ids":null,"footnotes":""},"categories":[178],"tags":[204],"class_list":["post-7471","blogs","type-blogs","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-technical"],"_links":{"self":[{"href":"https:\/\/www.rackspace.com\/es\/wp-json\/wp\/v2\/blogs\/7471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rackspace.com\/es\/wp-json\/wp\/v2\/blogs"}],"about":[{"href":"https:\/\/www.rackspace.com\/es\/wp-json\/wp\/v2\/types\/blogs"}],"author":[{"embeddable":true,"href":"https:\/\/www.rackspace.com\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rackspace.com\/es\/wp-json\/wp\/v2\/comments?post=7471"}],"version-history":[{"count":3,"href":"https:\/\/www.rackspace.com\/es\/wp-json\/wp\/v2\/blogs\/7471\/revisions"}],"predecessor-version":[{"id":9482,"href":"https:\/\/www.rackspace.com\/es\/wp-json\/wp\/v2\/blogs\/7471\/revisions\/9482"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rackspace.com\/es\/wp-json\/wp\/v2\/media\/7473"}],"wp:attachment":[{"href":"https:\/\/www.rackspace.com\/es\/wp-json\/wp\/v2\/media?parent=7471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rackspace.com\/es\/wp-json\/wp\/v2\/categories?post=7471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rackspace.com\/es\/wp-json\/wp\/v2\/tags?post=7471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}