{"id":11761,"date":"2018-10-16T10:27:45","date_gmt":"2018-10-16T08:27:45","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/"},"modified":"2018-10-16T10:27:45","modified_gmt":"2018-10-16T08:27:45","slug":"where-come-from-oracle-cmp-tables-and-how-to-delete-them","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/","title":{"rendered":"Where come from Oracle CMP$ tables and how to delete them ?"},"content":{"rendered":"<p>Regarding the following &#8220;MOS Note Is Table SCHEMA.CMP4$222224 Or Similar Related To Compression Advisor? (Doc ID 1606356.1)&#8221;,<br \/>\nwe know that since Oracle 11.2.0.4 BP1 or Higher, due to the failure of Compression Advisor some tables with names<br \/>\nthat include &#8220;CMP&#8221;, created &#8220;temporary &#8211; the time the process is running&#8221; by Compression Advisor process (ie CMP4$23590) are not removed from the database as that should be the case.<br \/>\nHow theses tables are created ? How to &#8220;cleanly&#8221; remove them ?<\/p>\n<p>1.Check None CMP tables exist.<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [5]\">\nSQL&gt; select count(*) from dba_tables where table_name like 'CMP%';\n\n  COUNT(*)\n----------\n         0\n<\/pre>\n<p>2. Check there is no compression enabled for the table we will use to test the Compression Advisor.<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [5]\">\nSQL&gt; select nvl(COMPRESSION,'NO') as COMPRESSION,nvl(COMPRESS_FOR,'NO') as COMPRESS_FOR from dba_tables where table_name = 'FOO';\n\nCOMPRESS COMPRESS_FOR\n-------- ------------------------------\nNO       NO\n\n<\/pre>\n<p>3.Execute the Compression Advisor procedure<\/p>\n<p>The procedure DBMS_COMPRESSION.get_compression_ratio analyzes the compression ratio of a table, and gives information about compressibility of a table.<br \/>\nFor information, Oracle Database 12c include a number of enhancements to the DBMS_COMPRESSION package such as In-Memory Compression or Advanced Compression.<\/p>\n<p>Let&#8217;s executing the DBMS_COMPRESSION.get_compression_ratio procedure:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1;\">\nSQL&gt; \nalter session set tracefile_identifier = 'CompTest1110201815h51';\nalter session set events '10046 trace name context forever, level 12';\nset serveroutput on\n\nDECLARE\n  l_blkcnt_cmp    PLS_INTEGER;\n  l_blkcnt_uncmp  PLS_INTEGER;\n  l_row_cmp       PLS_INTEGER;\n  l_row_uncmp     PLS_INTEGER;\n  l_cmp_ratio     NUMBER;\n  l_comptype_str  VARCHAR2(32767);\nBEGIN\n  DBMS_COMPRESSION.get_compression_ratio (\n    scratchtbsname  =&gt; 'USERS',\n    ownname         =&gt; 'TEST_LAF',\n    objname         =&gt; 'FOO',\n    subobjname      =&gt; NULL,\n    comptype        =&gt; DBMS_COMPRESSION.comp_advanced,\n    blkcnt_cmp      =&gt; l_blkcnt_cmp,\n    blkcnt_uncmp    =&gt; l_blkcnt_uncmp,\n    row_cmp         =&gt; l_row_cmp,\n    row_uncmp       =&gt; l_row_uncmp,\n    cmp_ratio       =&gt; l_cmp_ratio,\n    comptype_str    =&gt; l_comptype_str,\n    subset_numrows  =&gt; DBMS_COMPRESSION.comp_ratio_allrows,\n    objtype         =&gt; DBMS_COMPRESSION.objtype_table\n  );\n\n  DBMS_OUTPUT.put_line('Number of blocks used (compressed)       : ' ||  l_blkcnt_cmp);\n  DBMS_OUTPUT.put_line('Number of blocks used (uncompressed)     : ' ||  l_blkcnt_uncmp);\n  DBMS_OUTPUT.put_line('Number of rows in a block (compressed)   : ' ||  l_row_cmp);\n  DBMS_OUTPUT.put_line('Number of rows in a block (uncompressed) : ' ||  l_row_uncmp);\n  DBMS_OUTPUT.put_line('Compression ratio                        : ' ||  l_cmp_ratio);\n  DBMS_OUTPUT.put_line('Compression type                         : ' ||  l_comptype_str);\nEND;\n\/\n\nNumber of blocks used (compressed)       : 1325\nNumber of blocks used (uncompressed)     : 1753\nNumber of rows in a block (compressed)   : 74\nNumber of rows in a block (uncompressed) : 55\nCompression ratio                        : 1.3\nCompression type                         : \"Compress Advanced\"\n\nPL\/SQL procedure successfully completed.\n<\/pre>\n<p>4.Which &#8220;CMP internal&#8221; tables are created by DBMS_COMPRESSION.get_compression_ratio ?<\/p>\n<p>To handle the compression advisor process, Oracle creates 4 CMP* tables : CMP1$23590, CMP2$23590, CMP3$23590, CMP4$23590.<\/p>\n<p>Strangely, Oracle Trace 10046 files contains only DDL for the creation of the last 2 ones (we can also use LogMinner to find the DDL) : CMP3$23590, CMP4$23590.<br \/>\nThe table CMP3$23590 is a copy of the source table.<br \/>\nThe table CMP4$23590 is a copy &#8220;compressed&#8221; of CMP3$23590 table.<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [7,8]\">\ngrep  \"CMP*\" DBI_ora_20529_CompTest1110201823h19.trc\n\ndrop table \"TEST_LAF\".CMP1$23590 purge\ndrop table \"TEST_LAF\".CMP2$23590 purge\ndrop table \"TEST_LAF\".CMP3$23590 purge\ndrop table \"TEST_LAF\".CMP4$23590 purge\ncreate table \"TEST_LAF\".CMP3$23590 tablespace \"USERS\" nologging  as select \/*+ DYNAMIC_SAMPLING(0) FULL(\"TEST_LAF\".\"FOO\") *\/ *  from \"TEST_LAF\".\"FOO\"  sample block( 99) mytab\ncreate table \"TEST_LAF\".CMP4$23590 organization heap  tablespace \"USERS\"  compress for all operations nologging as select \/*+ DYNAMIC_SAMPLING(0) *\/ * from \"TEST_LAF\".CMP3$23590 mytab\ndrop table \"TEST_LAF\".CMP1$23590 purge\ndrop table \"TEST_LAF\".CMP2$23590 purge\ndrop table \"TEST_LAF\".CMP3$23590 purge\ndrop table \"TEST_LAF\".CMP4$23590 purge\n\n<\/pre>\n<p>As we can see above, the &#8220;internal&#8221; tables (even the one compressed CMP4$23590) are removed at the end of the process.<\/p>\n<p>To be sure, we check in the database :<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [5]\">\nSQL&gt; select count(*) from dba_tables where table_name like 'CMP%';\n\n  COUNT(*)\n----------\n         0\n<\/pre>\n<p>So, everything is fine, no &#8216;CMP&#8217; tables exist and the source table is not compressed :<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [5]\">\nSQL&gt; select nvl(COMPRESSION,'NO') as COMPRESSION,nvl(COMPRESS_FOR,'NO') as COMPRESS_FOR from dba_tables where table_name = 'FOO';\n\nCOMPRESS COMPRESS_FOR\n-------- ------------------------------\nNO       NO\n\n<\/pre>\n<p>5.But what happens if DBMS_COMPRESSION.get_compression_ratio fails ?<\/p>\n<p>Let&#8217;s forcing the failure of the DBMS_COMPRESSION.get_compression_ratio procedure&#8230;<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1;\">\nSQL&gt; \nalter session set tracefile_identifier = 'CompTest1410201822h03';\nalter session set events '10046 trace name context forever, level 12';\nset serveroutput on\n\nDECLARE\n  l_blkcnt_cmp    PLS_INTEGER;\n  l_blkcnt_uncmp  PLS_INTEGER;\n  l_row_cmp       PLS_INTEGER;\n  l_row_uncmp     PLS_INTEGER;\n  l_cmp_ratio     NUMBER;\n  l_comptype_str  VARCHAR2(32767);\nBEGIN\n  DBMS_COMPRESSION.get_compression_ratio (\n    scratchtbsname  =&gt; 'USERS',\n    ownname         =&gt; 'TEST_LAF',\n    objname         =&gt; 'FOO',\n    subobjname      =&gt; NULL,\n    comptype        =&gt; DBMS_COMPRESSION.comp_advanced,\n    blkcnt_cmp      =&gt; l_blkcnt_cmp,\n    blkcnt_uncmp    =&gt; l_blkcnt_uncmp,\n    row_cmp         =&gt; l_row_cmp,\n    row_uncmp       =&gt; l_row_uncmp,\n    cmp_ratio       =&gt; l_cmp_ratio,\n    comptype_str    =&gt; l_comptype_str,\n    subset_numrows  =&gt; DBMS_COMPRESSION.comp_ratio_allrows,\n    objtype         =&gt; DBMS_COMPRESSION.objtype_table\n  );\n 24\n  DBMS_OUTPUT.put_line('Number of blocks used (compressed)       : ' ||  l_blkcnt_cmp);\n  DBMS_OUTPUT.put_line('Number of blocks used (uncompressed)     : ' ||  l_blkcnt_uncmp);\n  DBMS_OUTPUT.put_line('Number of rows in a block (compressed)   : ' ||  l_row_cmp);\n  DBMS_OUTPUT.put_line('Number of rows in a block (uncompressed) : ' ||  l_row_uncmp);\n  DBMS_OUTPUT.put_line('Compression ratio                        : ' ||  l_cmp_ratio);\n  DBMS_OUTPUT.put_line('Compression type                         : ' ||  l_comptype_str);\nEND;\n 32  \/\nDECLARE\n*\nERROR at line 1:\nORA-01013: user requested cancel of current operation\n\n<\/pre>\n<p>What &#8220;CMP*&#8221; tables persist after ?<\/p>\n<p>Two &#8220;CMP*&#8221; tables is always present :<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1;highlight: [5,11,12]\">\nSQL&gt; select count(*) from dba_tables where table_name like 'CMP%';\n\n  COUNT(*)\n----------\n         2\n\nSQL&gt; select owner,table_name from dba_tables where table_name like 'CMP%';\n\nOWNER     TABLE_NAME\n------- ----------\nTEST_LAF  CMP3$23687\nTEST_LAF  CMP4$23687\n\n\n<\/pre>\n<p>Since &#8220;CMP3*&#8221; and &#8220;CMP4*&#8221; are copy (compressed for the second one) of source table, space disk can increase dramatically if Compressoin Advisor fails frequently and mainly with huge tables, so it&#8217;s important to remove these tables.<\/p>\n<p>The source table called FOO, CMP3$23687 and CMP4$23687 internal tables contains same set of data (less for the last 2 ones since we use the sample block option)&#8230;<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1;highlight: [5,11,17]\">\nSQL&gt; select count(*) from test_laf.CMP3$23687;\n\n  COUNT(*)\n----------\n     22147\n\nSQL&gt; select count(*) from test_laf.CMP4$23687;\n\n  COUNT(*)\n----------\n     22147\n\nSQL&gt; select count(*) from test_laf.foo;\n\n  COUNT(*)\n----------\n     22387\n\n<\/pre>\n<p>The worst is that now we are in presence of compressed table while we don&#8217;t have the compression license option :<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1;highlight: [5]\">\nSQL&gt; select nvl(COMPRESSION,'NO') as COMPRESSION,nvl(COMPRESS_FOR,'NO') as COMPRESS_FOR from dba_tables where table_name = 'CMP4$23687';\n\nCOMPRESS COMPRESS_FOR\n-------- ------------------------------\nENABLED  ADVANCED\n<\/pre>\n<p>To remove the oracle &#8220;CMP*&#8221; internal tables tables, let&#8217;s analyzing the 10046 trace file to check how oracle remove these tables when the DBMS_COMPRESSION.get_compression_ratio procedure run successfully:<\/p>\n<p>Find below all the steps that oracle does to drop these tables:<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1;\">\ndrop table \"TEST_LAF\".CMP1$23687 purge\n\nBEGIN\n  BEGIN\n    IF (sys.is_vpd_enabled(sys.dictionary_obj_owner, sys.dictionary_obj_name, xdb.DBMS_XDBZ.IS_ENABLED_CONTENTS)) THEN\n      xdb.XDB_PITRIG_PKG.pitrig_truncate(sys.dictionary_obj_owner, sys.dictionary_obj_name);\n    ELSIF (sys.is_vpd_enabled(sys.dictionary_obj_owner, sys.dictionary_obj_name, xdb.DBMS_XDBZ.IS_ENABLED_RESMETADATA)) THEN\n      xdb.XDB_PITRIG_PKG.pitrig_dropmetadata(sys.dictionary_obj_owner, sys.dictionary_obj_name);\n    END IF;\n  EXCEPTION\n    WHEN OTHERS THEN\n     null;\n  END;\nEND;\n\ndrop table \"TEST_LAF\".CMP2$23687 purge\n\nPARSING IN CURSOR #140606951937256 len=515 dep=2 uid=0 oct=47 lid=0 tim=3421988631 hv=2219505151 ad='69fd11c8' sqlid='ct6c4h224pxgz'\nBEGIN\n  BEGIN\n    IF (sys.is_vpd_enabled(sys.dictionary_obj_owner, sys.dictionary_obj_name, xdb.DBMS_XDBZ.IS_ENABLED_CONTENTS)) THEN\n      xdb.XDB_PITRIG_PKG.pitrig_truncate(sys.dictionary_obj_owner, sys.dictionary_obj_name);\n    ELSIF (sys.is_vpd_enabled(sys.dictionary_obj_owner, sys.dictionary_obj_name, xdb.DBMS_XDBZ.IS_ENABLED_RESMETADATA)) THEN\n      xdb.XDB_PITRIG_PKG.pitrig_dropmetadata(sys.dictionary_obj_owner, sys.dictionary_obj_name);\n    END IF;\n  EXCEPTION\n    WHEN OTHERS THEN\n     null;\n  END;\nEND;\n\n\ndrop table \"TEST_LAF\".CMP3$23687 purge\n\nBEGIN\n  BEGIN\n    IF (sys.is_vpd_enabled(sys.dictionary_obj_owner, sys.dictionary_obj_name, xdb.DBMS_XDBZ.IS_ENABLED_CONTENTS)) THEN\n      xdb.XDB_PITRIG_PKG.pitrig_truncate(sys.dictionary_obj_owner, sys.dictionary_obj_name);\n    ELSIF (sys.is_vpd_enabled(sys.dictionary_obj_owner, sys.dictionary_obj_name, xdb.DBMS_XDBZ.IS_ENABLED_RESMETADATA)) THEN\n      xdb.XDB_PITRIG_PKG.pitrig_dropmetadata(sys.dictionary_obj_owner, sys.dictionary_obj_name);\n    END IF;\n  EXCEPTION\n    WHEN OTHERS THEN\n     null;\n  END;\nEND;\n\n\ndrop table \"TEST_LAF\".CMP4$23687 purge\nBEGIN\n  BEGIN\n    IF (sys.is_vpd_enabled(sys.dictionary_obj_owner, sys.dictionary_obj_name, xdb.DBMS_XDBZ.IS_ENABLED_CONTENTS)) THEN\n      xdb.XDB_PITRIG_PKG.pitrig_truncate(sys.dictionary_obj_owner, sys.dictionary_obj_name);\n    ELSIF (sys.is_vpd_enabled(sys.dictionary_obj_owner, sys.dictionary_obj_name, xdb.DBMS_XDBZ.IS_ENABLED_RESMETADATA)) THEN\n      xdb.XDB_PITRIG_PKG.pitrig_dropmetadata(sys.dictionary_obj_owner, sys.dictionary_obj_name);\n    END IF;\n  EXCEPTION\n    WHEN OTHERS THEN\n     null;\n  END;\nEND;\n<\/pre>\n<p>To remove &#8220;CMP*&#8221; tables, Oracle does :<br \/>\n   &#8211; drop table *** purge<br \/>\n   &#8211; call internal procedure : xdb.XDB_PITRIG_PKG.pitrig_truncate or xdb.XDB_PITRIG_PKG.pitrig_dropmetadata regarding if Oracle Virtual Private Database is used.<\/p>\n<p>7. Last Test : Check the source table is not compressed, we don&#8217;t want to have the compression enabled since we are not licensing&#8230;<\/p>\n<pre class=\"brush: sql; gutter: true; first-line: 1; highlight: [5]\">\nSQL&gt; select nvl(COMPRESSION,'NO') as COMPRESSION,nvl(COMPRESS_FOR,'NO') as COMPRESS_FOR from dba_tables where table_name = 'FOO';\n\nCOMPRESS COMPRESS_FOR\n-------- ------------------------------\nNO       NO\n\n<\/pre>\n<p>6.Conclusion<\/p>\n<p>To drop &#8220;CMP*&#8221; tables used by the DBMS_COMPRESSION.get_compression_ratio procedure, just execute : drop table CMP* purge.<\/p>\n<p>I have not tested more in details the case where compression is used into Oracle VPD, so I don&#8217;t know the impact of executing the system procedure : xdb.XDB_PITRIG_PKG.pitrig_truncate or xdb.XDB_PITRIG_PKG.pitrig_dropmetadata in case we use VPD.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Regarding the following &#8220;MOS Note Is Table SCHEMA.CMP4$222224 Or Similar Related To Compression Advisor? (Doc ID 1606356.1)&#8221;, we know that since Oracle 11.2.0.4 BP1 or Higher, due to the failure of Compression Advisor some tables with names that include &#8220;CMP&#8221;, created &#8220;temporary &#8211; the time the process is running&#8221; by Compression Advisor process (ie CMP4$23590)&hellip;&nbsp;<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","neve_meta_reading_time":"","_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4133],"tags":[1461],"class_list":["post-11761","post","type-post","status-publish","format-standard","category-database","tag-compression"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v28.9 (Yoast SEO v28.9) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Where come from Oracle CMP$ tables and how to delete them ? - dbi services Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Where come from Oracle CMP$ tables and how to delete them ?\" \/>\n<meta property=\"og:description\" content=\"Regarding the following &#8220;MOS Note Is Table SCHEMA.CMP4$222224 Or Similar Related To Compression Advisor? (Doc ID 1606356.1)&#8221;, we know that since Oracle 11.2.0.4 BP1 or Higher, due to the failure of Compression Advisor some tables with names that include &#8220;CMP&#8221;, created &#8220;temporary &#8211; the time the process is running&#8221; by Compression Advisor process (ie CMP4$23590)&hellip;&nbsp;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi services Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/dbiservices\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-10-16T08:27:45+00:00\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:site\" content=\"@dbiservices\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\\\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\"},\"headline\":\"Where come from Oracle CMP$ tables and how to delete them ?\",\"datePublished\":\"2018-10-16T08:27:45+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\\\/\"},\"wordCount\":569,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"keywords\":[\"compression\"],\"articleSection\":[\"Database\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\\\/\",\"name\":\"Where come from Oracle CMP$ tables and how to delete them ? - dbi services Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\"},\"datePublished\":\"2018-10-16T08:27:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Where come from Oracle CMP$ tables and how to delete them ?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/\",\"name\":\"dbi services Blog\",\"description\":\"#BeSharing\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/#organization\",\"name\":\"dbi services\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/dbi-services-logo.png\",\"width\":512,\"height\":512,\"caption\":\"dbi services\"},\"image\":{\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/dbiservices\\\/\",\"https:\\\/\\\/x.com\\\/dbiservices\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/dbi-services\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/dbiservices\"],\"description\":\"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.\",\"email\":\"info@dbi-services.com\",\"telephone\":\"+41 32 422 96 00\",\"legalName\":\"dbi services SA\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/#\\\/schema\\\/person\\\/bf7c7eb0bec165183207237c9d0ee1d5\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"contentUrl\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/oracle-square.png\",\"caption\":\"Oracle Team\"},\"description\":\"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.\",\"url\":\"https:\\\/\\\/www.dbi-services.com\\\/blog\\\/author\\\/oracle-team\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Where come from Oracle CMP$ tables and how to delete them ? - dbi services Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/","og_locale":"en_US","og_type":"article","og_title":"Where come from Oracle CMP$ tables and how to delete them ?","og_description":"Regarding the following &#8220;MOS Note Is Table SCHEMA.CMP4$222224 Or Similar Related To Compression Advisor? (Doc ID 1606356.1)&#8221;, we know that since Oracle 11.2.0.4 BP1 or Higher, due to the failure of Compression Advisor some tables with names that include &#8220;CMP&#8221;, created &#8220;temporary &#8211; the time the process is running&#8221; by Compression Advisor process (ie CMP4$23590)&hellip;&nbsp;","og_url":"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/","og_site_name":"dbi services Blog","article_publisher":"https:\/\/www.facebook.com\/dbiservices\/","article_published_time":"2018-10-16T08:27:45+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_creator":"@dbiservices","twitter_site":"@dbiservices","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5"},"headline":"Where come from Oracle CMP$ tables and how to delete them ?","datePublished":"2018-10-16T08:27:45+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/"},"wordCount":569,"commentCount":0,"publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"keywords":["compression"],"articleSection":["Database"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/","url":"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/","name":"Where come from Oracle CMP$ tables and how to delete them ? - dbi services Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2018-10-16T08:27:45+00:00","breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/where-come-from-oracle-cmp-tables-and-how-to-delete-them\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Where come from Oracle CMP$ tables and how to delete them ?"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi services Blog","description":"#BeSharing","publisher":{"@id":"https:\/\/www.dbi-services.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.dbi-services.com\/#organization","name":"dbi services","url":"https:\/\/www.dbi-services.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2026\/09\/dbi-services-logo.png","width":512,"height":512,"caption":"dbi services"},"image":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/dbiservices\/","https:\/\/x.com\/dbiservices","https:\/\/www.linkedin.com\/company\/dbi-services\/","https:\/\/www.youtube.com\/user\/dbiservices"],"description":"Swiss IT consulting and services company specialized in efficient data infrastructures and platforms: databases, application servers, cloud, DevOps, digitalization, analytics, data quality and monitoring. Headquartered in Del\u00e9mont with offices in Nyon, Basel, Bern and Zurich.","email":"info@dbi-services.com","telephone":"+41 32 422 96 00","legalName":"dbi services SA"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/bf7c7eb0bec165183207237c9d0ee1d5","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","url":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","contentUrl":"https:\/\/www.dbi-services.com\/blog\/wp-content\/uploads\/2022\/12\/oracle-square.png","caption":"Oracle Team"},"description":"Posts published under the Oracle Team account are collective contributions by the dbi services Oracle consultants. The practice covers the full Oracle Database lifecycle: architecture, migration and upgrade, high availability with RAC and Data Guard, backup and recovery, performance tuning, and engineered systems such as Oracle Database Appliance and Exadata. The team holds Oracle certifications up to Certified Master level and operates customer platforms under service level agreements.","url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/11761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=11761"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/11761\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=11761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=11761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=11761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}