{"id":2679,"date":"2017-06-19T21:51:09","date_gmt":"2017-06-20T00:51:09","guid":{"rendered":"http:\/\/www.dbarj.com.br\/?p=2679\/"},"modified":"2017-07-31T22:57:46","modified_gmt":"2017-08-01T01:57:46","slug":"ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows","status":"publish","type":"post","link":"https:\/\/www.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/","title":{"rendered":"OCM 12c Preparation &#8211; Configure the database to retrieve all previous versions of the table rows"},"content":{"rendered":"<p>For OCM11g, this topic was written as\u00a0<a href=\"https:\/\/www.dbarj.com.br\/en\/2015\/06\/ocm-11g-preparation-perform-various-recovery-operations-using-flashback-technology\/\" target=\"_blank\" rel=\"noopener\">Perform various recovery operations using Flashback technology<\/a> but it&#8217;s pretty the same thing.<\/p>\n<p>Here, you must be able and focus in all possible ways to get back the rows of a table in all possible scenarios.<\/p>\n<p>We usually think on flashback technology but in 12c we also have the new <strong>Table Point In Time Recovery<\/strong> which is a very interesting way of recovering the rows specially if you don&#8217;t have flashback enabled or if the lines were removed a long time back.<\/p>\n<p>So practice here:<\/p>\n<ul>\n<li>Flashback Query (SELECT AS OF)<\/li>\n<li>Flashback Version Query (VERSION BETWEEN)<\/li>\n<li>Flashback Table<\/li>\n<li>Flashback Drop (Recycle Bin)<\/li>\n<li>Flashback Transaction Query (FLASHBACK_TRANSACTION_QUERY)<\/li>\n<li>Table Point in Time Recovery<\/li>\n<li>Flashback Data Archive (Specially 12c new features, take a look in <a href=\"https:\/\/oracle-base.com\/articles\/12c\/flashback-data-archive-fda-enhancements-12cr1\" target=\"_blank\" rel=\"noopener\">this article<\/a>)<\/li>\n<li>In-Database Archiving (as mentioned in the comments also deserves attention)<\/li>\n<\/ul>\n<p><strong>P.S: These Oracle Flashback Technology features are unavailable for a multitenant container database (CDB) in 12.1:<\/strong><\/p>\n<ul>\n<li>For Oracle Database 12<span class=\"italic\">c<\/span> Release 1 (12.1.0.1), Flashback Data Archive (FDA) is not supported in a CDB.For Oracle Database 12<span class=\"italic\">c<\/span> Release 1 (12.1.0.2), this restriction is removed.<\/li>\n<li>Flashback Transaction Query is not supported in a CDB.<\/li>\n<li>Flashback Transaction Backout is not supported in a CDB.<\/li>\n<\/ul>\n<p><strong>Path to Documentation<\/strong>:<\/p>\n<p><span style=\"color: #800000;\">Oracle Database Development Guide -&gt; 16.2 Using Oracle Flashback Technology<br \/>\nOracle Database Backup and Recovery User&#8217;s Guide -&gt; 22 Recovering Tables and Table Partitions from RMAN Backups<br \/>\nOracle Database VLDB and Partitioning Guide -&gt; Using In-Database Archiving<br \/>\n<\/span><\/p>\n<br>\r\nClick here to go back to the <a title=\"OCM 12c Preparation\" href=\"\/?page_id=2255\">Main OCM 12c Preparation<\/a> page.\r\n<br><br>\r\nHave you enjoyed? Please leave a comment or give a \ud83d\udc4d!\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style2 like-2679 jlk' href='javascript:void(0)' data-task='like' data-post_id='2679' data-nonce='de4404f630' rel='nofollow'><img class='wti-pixel' src='https:\/\/www.dbarj.com.br\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-2679 lc'>0<\/span><\/a><\/div><\/div> <div class='status-2679 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>For OCM11g, this topic was written as\u00a0Perform various recovery operations using Flashback technology but it&#8217;s pretty the same thing. Here, you must be able and focus in all possible ways to get back the rows of a table in all possible scenarios. We usually think on flashback technology but in 12c we also have the &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"https:\/\/www.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/\">Continue reading<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[],"class_list":["post-2679","post","type-post","status-publish","format-standard","hentry","category-ocm12c-en","item-wrap"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>OCM 12c Preparation - Configure the database to retrieve all previous versions of the table rows - DBA - Rodrigo Jorge - Oracle Tips and Guides<\/title>\n<meta name=\"description\" content=\"Configure the database to retrieve all previous versions of the table rows for Oracle OCM 12c Certification\" \/>\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.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DBA RJ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/06\\\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/06\\\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\\\/\"},\"author\":{\"name\":\"DBA RJ\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"headline\":\"OCM 12c Preparation &#8211; Configure the database to retrieve all previous versions of the table rows\",\"datePublished\":\"2017-06-20T00:51:09+00:00\",\"dateModified\":\"2017-08-01T01:57:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/06\\\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\\\/\"},\"wordCount\":266,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"articleSection\":[\"OCM 12c Preparation\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/06\\\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/06\\\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\\\/\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/06\\\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\\\/\",\"name\":\"OCM 12c Preparation - Configure the database to retrieve all previous versions of the table rows - DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\"},\"datePublished\":\"2017-06-20T00:51:09+00:00\",\"dateModified\":\"2017-08-01T01:57:46+00:00\",\"description\":\"Configure the database to retrieve all previous versions of the table rows for Oracle OCM 12c Certification\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/06\\\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/06\\\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/2017\\\/06\\\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OCM 12c Preparation - Configure the database to retrieve all previous versions of the table rows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/\",\"name\":\"DBA - Rodrigo Jorge - Oracle Tips and Guides\",\"description\":\"Blog about Databases, Security and High Availability\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/en\\\/#\\\/schema\\\/person\\\/28a44ca3a6633fe4156ad1ea209d40a9\",\"name\":\"DBA RJ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"url\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"contentUrl\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\",\"width\":712,\"height\":712,\"caption\":\"DBA RJ\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.dbarj.com.br\\\/wp-content\\\/uploads\\\/2019\\\/09\\\/RodrigoJorgePOUG19.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"OCM 12c Preparation - Configure the database to retrieve all previous versions of the table rows - DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Configure the database to retrieve all previous versions of the table rows for Oracle OCM 12c Certification","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.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/","twitter_misc":{"Written by":"DBA RJ","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/#article","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/"},"author":{"name":"DBA RJ","@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"headline":"OCM 12c Preparation &#8211; Configure the database to retrieve all previous versions of the table rows","datePublished":"2017-06-20T00:51:09+00:00","dateModified":"2017-08-01T01:57:46+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/"},"wordCount":266,"commentCount":2,"publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"articleSection":["OCM 12c Preparation"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/","url":"https:\/\/www.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/","name":"OCM 12c Preparation - Configure the database to retrieve all previous versions of the table rows - DBA - Rodrigo Jorge - Oracle Tips and Guides","isPartOf":{"@id":"https:\/\/www.dbarj.com.br\/en\/#website"},"datePublished":"2017-06-20T00:51:09+00:00","dateModified":"2017-08-01T01:57:46+00:00","description":"Configure the database to retrieve all previous versions of the table rows for Oracle OCM 12c Certification","breadcrumb":{"@id":"https:\/\/www.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbarj.com.br\/en\/2017\/06\/ocm-12c-preparation-configure-the-database-to-retrieve-all-previous-versions-of-the-table-rows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.dbarj.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"OCM 12c Preparation - Configure the database to retrieve all previous versions of the table rows"}]},{"@type":"WebSite","@id":"https:\/\/www.dbarj.com.br\/en\/#website","url":"https:\/\/www.dbarj.com.br\/en\/","name":"DBA - Rodrigo Jorge - Oracle Tips and Guides","description":"Blog about Databases, Security and High Availability","publisher":{"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbarj.com.br\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.dbarj.com.br\/en\/#\/schema\/person\/28a44ca3a6633fe4156ad1ea209d40a9","name":"DBA RJ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","url":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","contentUrl":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png","width":712,"height":712,"caption":"DBA RJ"},"logo":{"@id":"https:\/\/www.dbarj.com.br\/wp-content\/uploads\/2019\/09\/RodrigoJorgePOUG19.png"}}]}},"_links":{"self":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/2679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/comments?post=2679"}],"version-history":[{"count":0,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/posts\/2679\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/media?parent=2679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/categories?post=2679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbarj.com.br\/en\/wp-json\/wp\/v2\/tags?post=2679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}