{"id":114,"date":"2013-06-29T12:12:03","date_gmt":"2013-06-29T17:12:03","guid":{"rendered":"https:\/\/bijoos.com\/oraclenotes\/?p=114"},"modified":"2026-02-07T15:35:12","modified_gmt":"2026-02-07T21:35:12","slug":"oracledb12c-new-feature-cascaded-truncate","status":"publish","type":"post","link":"https:\/\/bijoos.com\/oraclenotes\/2013\/114\/","title":{"rendered":"OracleDB12c New Feature: Cascaded Truncate"},"content":{"rendered":"<p>Oracle Database 12c, now TRUNCATE statement is enhanced with \u00a0CASCADE option. This is pretty useful, that you need not worry about truncating all &#8220;child&#8221; tables before truncating the parent. With the CASCADE option, Oracle will truncate all tables with a foreign key constraint to the table being truncated. The foreign key must be ENABLED and defined with &#8220;ON DELETE CASCADE&#8221; clause. There is no set limit to the recursive level of cascaded truncate. All child, grand child, great grandchild, etc tables will be truncated.<\/p>\n<p>Oracle12c also extended the same feature to truncating a partition. Now, ALTER TABLE &#8230; TRUNCATE PARTITION can include the CASCADE option as well.\u00a0Specify CASCADE to truncate the corresponding partition(s) or\u00a0subpartition(s) in all reference-partitioned child tables of table being truncated.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Oracle Database 12c, now TRUNCATE statement is enhanced with \u00a0CASCADE option. This is pretty useful, that you need not worry about truncating all &#8220;child&#8221; tables before truncating the parent. With the CASCADE option, Oracle will truncate all tables with a foreign key constraint to the table being truncated. The foreign key must be ENABLED and &#8230; <a title=\"OracleDB12c New Feature: Cascaded Truncate\" class=\"read-more\" href=\"https:\/\/bijoos.com\/oraclenotes\/2013\/114\/\" aria-label=\"Read more about OracleDB12c New Feature: Cascaded Truncate\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[133],"tags":[40],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-oracledb","tag-oracle-12c"],"acf":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/comments?post=114"}],"version-history":[{"count":1,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":3039,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/posts\/114\/revisions\/3039"}],"wp:attachment":[{"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/media?parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/categories?post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bijoos.com\/oraclenotes\/wp-json\/wp\/v2\/tags?post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}