{"id":309,"date":"2012-03-07T23:11:53","date_gmt":"2012-03-07T23:11:53","guid":{"rendered":"http:\/\/oranotes.tuktaroff.com\/?page_id=309"},"modified":"2012-03-07T23:11:53","modified_gmt":"2012-03-07T23:11:53","slug":"partitions","status":"publish","type":"page","link":"http:\/\/oranotes.tuktaroff.com\/?page_id=309","title":{"rendered":"Partitions"},"content":{"rendered":"<p><code><br \/>\n<script type=\"text\/javascript\"> \nfunction copy(what) {\n    window.clipboardData.setData('Text',what.value);\n}\nfunction paste(what) {\n    what.value = window.clipboardData.getData('Text');\n}\n<\/script><\/p>\n<h2>\nTable partitions<br \/>\n<\/h2>\n<pre class=\"qcode\">\r\nCOLUMN partition_name                                HEADING \"Partition Name\"\r\nCOLUMN column_name         FORMAT A20                HEADING \"Column Name\"\r\nCOLUMN tablespace_name     FORMAT A28                HEADING \"Tablespace\"\r\nCOLUMN composite           FORMAT A9                 HEADING \"Composite\"\r\nCOLUMN subpartition_count                            HEADING \"Sub. Part.|Count\"\r\nCOLUMN logging             FORMAT A7                 HEADING \"Logging\"\r\nCOLUMN high_value          FORMAT A13                HEADING \"High Value\" TRUNC\r\n\r\nBREAK ON partition_name\r\n\r\nSELECT\r\n    a.partition_name\r\n  , b.column_name\r\n  , a.tablespace_name\r\n  , a.composite\r\n  , a.subpartition_count\r\n  , a.logging\r\nFROM \r\n    dba_tab_partitions    a\r\n  , dba_part_key_columns  b\r\nWHERE\r\n      a.table_owner        = UPPER('&sch')\r\n  AND a.table_name         = UPPER('&tab')\r\n  AND RTRIM(b.object_type) = 'TABLE'\r\n  AND b.owner              = a.table_owner\r\n  AND b.name               = a.table_name\r\nORDER BY\r\n    a.partition_position\r\n  , b.column_position\r\n\/\r\n<\/pre>\n<form action=\"\"><textarea name=\"data\" cols=\"50\" rows=\"10\" style=\"display:none;\"><br \/>\nCOLUMN partition_name                                HEADING \"Partition Name\"<br \/>\nCOLUMN column_name         FORMAT A20                HEADING \"Column Name\"<br \/>\nCOLUMN tablespace_name     FORMAT A28                HEADING \"Tablespace\"<br \/>\nCOLUMN composite           FORMAT A9                 HEADING \"Composite\"<br \/>\nCOLUMN subpartition_count                            HEADING \"Sub. Part.|Count\"<br \/>\nCOLUMN logging             FORMAT A7                 HEADING \"Logging\"<br \/>\nCOLUMN high_value          FORMAT A13                HEADING \"High Value\" TRUNC<\/p>\n<p>BREAK ON partition_name<\/p>\n<p>SELECT<br \/>\n    a.partition_name<br \/>\n  , b.column_name<br \/>\n  , a.tablespace_name<br \/>\n  , a.composite<br \/>\n  , a.subpartition_count<br \/>\n  , a.logging<br \/>\nFROM<br \/>\n    dba_tab_partitions    a<br \/>\n  , dba_part_key_columns  b<br \/>\nWHERE<br \/>\n      a.table_owner        = UPPER('&sch')<br \/>\n  AND a.table_name         = UPPER('&tab')<br \/>\n  AND RTRIM(b.object_type) = 'TABLE'<br \/>\n  AND b.owner              = a.table_owner<br \/>\n  AND b.name               = a.table_name<br \/>\nORDER BY<br \/>\n    a.partition_position<br \/>\n  , b.column_position<br \/>\n\/<br \/>\n<\/textarea><input type=\"button\" value=\"Clipboard\" onclick=\"copy(this.form.data)\"><\/form>\n<p><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Table partitions COLUMN partition_name HEADING &#8220;Partition Name&#8221; COLUMN column_name FORMAT A20 HEADING &#8220;Column Name&#8221; COLUMN tablespace_name FORMAT A28 HEADING &#8220;Tablespace&#8221; COLUMN composite FORMAT A9 HEADING &#8220;Composite&#8221; COLUMN subpartition_count HEADING &#8220;Sub. Part.|Count&#8221; COLUMN logging FORMAT A7 HEADING &#8220;Logging&#8221; COLUMN high_value FORMAT A13 HEADING &#8220;High Value&#8221; TRUNC BREAK ON partition_name SELECT a.partition_name , b.column_name , a.tablespace_name , [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":291,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-309","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P2NVny-4Z","_links":{"self":[{"href":"http:\/\/oranotes.tuktaroff.com\/index.php?rest_route=\/wp\/v2\/pages\/309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/oranotes.tuktaroff.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/oranotes.tuktaroff.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/oranotes.tuktaroff.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/oranotes.tuktaroff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=309"}],"version-history":[{"count":1,"href":"http:\/\/oranotes.tuktaroff.com\/index.php?rest_route=\/wp\/v2\/pages\/309\/revisions"}],"predecessor-version":[{"id":310,"href":"http:\/\/oranotes.tuktaroff.com\/index.php?rest_route=\/wp\/v2\/pages\/309\/revisions\/310"}],"up":[{"embeddable":true,"href":"http:\/\/oranotes.tuktaroff.com\/index.php?rest_route=\/wp\/v2\/pages\/291"}],"wp:attachment":[{"href":"http:\/\/oranotes.tuktaroff.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}