{"id":1179,"date":"2009-09-11T12:22:22","date_gmt":"2009-09-11T16:22:22","guid":{"rendered":"http:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/"},"modified":"2009-09-11T12:26:43","modified_gmt":"2009-09-11T16:26:43","slug":"oracle-database-incarnation-open-resetlogs-scn","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/","title":{"rendered":"Oracle Database Incarnation : Open Resetlogs , SCN"},"content":{"rendered":"<p> <strong>Q.<\/strong> What happens when you run <strong>ALTER DATABASE OPEN RESETLOGS ?<br \/>\n<\/strong>The current online redo logs are archived, the log sequence number is reset to 1, new database <strong>incarnation<\/strong> is created, and the online redo logs are given a new time stamp and <strong>SCN<\/strong>.<br \/>\n.<\/p>\n<p><strong>Q. In what scenarios open resetlogs required ?<\/strong><\/p>\n<p>An ALTER DATABASE OPEN RESETLOGS statement is required after incomplete recovery (Point in Time Recovery) or recovery with a backup control file.<br \/>\n.<\/p>\n<p><strong>Q. What is SCN (System Change Number) ?<\/strong><\/p>\n<p>The system change number (SCN) is an ever-increasing value that uniquely identifies a committed version of the database at a point in time. Every time a user commits a transaction Oracle records a new SCN in redo logs.<\/p>\n<p>Oracle uses SCNs in control files datafile headers and redo records. Every redo log file has both a log sequence number and low and high SCN. The low SCN records the lowest SCN recorded in the log file while the high SCN records the highest SCN in the log file.<br \/>\n.<\/p>\n<p><strong>Q. What is Database Incarnation ?<\/strong><\/p>\n<p><strong><a href=\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/09\/incarnation_2.jpg\" title=\"database incarnation\"><img decoding=\"async\" src=\"https:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/09\/incarnation_2.jpg\" alt=\"database incarnation\" \/><\/a><\/strong><\/p>\n<p>Database incarnation is effectively a new &#8220;<strong>version<\/strong>&#8221; of the database that happens when you reset the online redo logs using &#8220;<strong>alter database open resetlogs<\/strong>;&#8221;.<\/p>\n<p>Database incarnation falls into following category <strong>Current<\/strong>, <strong>Parent<\/strong>, <strong>Ancestor<\/strong> and <strong>Sibling<\/strong><\/p>\n<p><strong>i) Current Incarnation<\/strong> : The database incarnation in which the database is currently generating redo.<\/p>\n<p><strong>ii) Parent Incarnation<\/strong> : The database incarnation from which the current incarnation branched following an OPEN RESETLOGS operation.<\/p>\n<p><strong>iii) Ancestor Incarnation<\/strong> : The parent of the parent incarnation is an ancestor incarnation. Any parent of an ancestor incarnation is also an ancestor incarnation.<\/p>\n<p><strong>iv) Sibling Incarnation <\/strong>: Two incarnations that share a common ancestor are sibling incarnations <strong>if neither<\/strong> one is an ancestor of the other.<br \/>\n.<\/p>\n<p><strong>Q. How to view incarnation\u00a0history of Database ?<\/strong><\/p>\n<p>Using SQL&gt; <strong>select * from v$database_incarnation<\/strong>;<br \/>\nUsing\u00a0RMAN&gt;<strong>LIST INCARNATION<\/strong>;<\/p>\n<p>However, you can use the <strong>RESET DATABASE TO INCARNATION<\/strong> command to specify that SCNs are to be interpreted in the frame of reference of another incarnation.<\/p>\n<p>\u2022For example my current database INCARNATION is 3 and now I have used<br \/>\nFLASHBACK DATABASE TO SCN 3000;then SCN 3000 will be search in current incarnation which is 3. However if I want to get back to SCN 3000 of INCARNATION 2 then I have to use,<\/p>\n<p>RMAN&gt; RESET DATABASE TO INCARNATION 2;<br \/>\nRMAN&gt; RECOVER DATABASE TO SCN 3000;<br \/>\n.<\/p>\n<p><u><strong>References\/Related<\/strong><\/u><\/p>\n<ul>\n<li><a href=\"http:\/\/download.oracle.com\/docs\/cd\/B19306_01\/backup.102\/b14192\/flashptr006.htm\" target=\"_blank\"> Database Point In Time (PIT) Recovery<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Q. What happens when you run ALTER DATABASE OPEN RESETLOGS ? The current online redo logs are archived, the log [&hellip;]<\/p>\n","protected":false},"author":115,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[424],"tags":[],"class_list":["post-1179","post","type-post","status-publish","format-standard","hentry","category-database"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Oracle Database Incarnation : Open Resetlogs , SCN -<\/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:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oracle Database Incarnation : Open Resetlogs , SCN -\" \/>\n<meta property=\"og:description\" content=\"Q. What happens when you run ALTER DATABASE OPEN RESETLOGS ? The current online redo logs are archived, the log [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/\" \/>\n<meta property=\"article:published_time\" content=\"2009-09-11T16:22:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2009-09-11T16:26:43+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/09\/incarnation_2.jpg\" \/>\n<meta name=\"author\" content=\"Masroof Ahmad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Masroof Ahmad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/\",\"name\":\"Oracle Database Incarnation : Open Resetlogs , SCN -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/09\/incarnation_2.jpg\",\"datePublished\":\"2009-09-11T16:22:22+00:00\",\"dateModified\":\"2009-09-11T16:26:43+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/#primaryimage\",\"url\":\"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/09\/incarnation_2.jpg\",\"contentUrl\":\"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/09\/incarnation_2.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle Database Incarnation : Open Resetlogs , SCN\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineappsdba.com\/#website\",\"url\":\"https:\/\/onlineappsdba.com\/\",\"name\":\"\",\"description\":\"Oracle Implementation &amp; Training Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineappsdba.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\",\"name\":\"Masroof Ahmad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g\",\"caption\":\"Masroof Ahmad\"},\"url\":\"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Oracle Database Incarnation : Open Resetlogs , SCN -","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:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/","og_locale":"en_US","og_type":"article","og_title":"Oracle Database Incarnation : Open Resetlogs , SCN -","og_description":"Q. What happens when you run ALTER DATABASE OPEN RESETLOGS ? The current online redo logs are archived, the log [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/","article_published_time":"2009-09-11T16:22:22+00:00","article_modified_time":"2009-09-11T16:26:43+00:00","og_image":[{"url":"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/09\/incarnation_2.jpg","type":"","width":"","height":""}],"author":"Masroof Ahmad","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Masroof Ahmad","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/","url":"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/","name":"Oracle Database Incarnation : Open Resetlogs , SCN -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/#primaryimage"},"image":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/#primaryimage"},"thumbnailUrl":"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/09\/incarnation_2.jpg","datePublished":"2009-09-11T16:22:22+00:00","dateModified":"2009-09-11T16:26:43+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/#primaryimage","url":"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/09\/incarnation_2.jpg","contentUrl":"http:\/\/onlineappsdba.com\/wp-content\/uploads\/2009\/09\/incarnation_2.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2009\/09\/11\/oracle-database-incarnation-open-resetlogs-scn\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"Oracle Database Incarnation : Open Resetlogs , SCN"}]},{"@type":"WebSite","@id":"https:\/\/onlineappsdba.com\/#website","url":"https:\/\/onlineappsdba.com\/","name":"","description":"Oracle Implementation &amp; Training Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineappsdba.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb","name":"Masroof Ahmad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/10f9db7bdbbd7f9ccfbe9b2d208e5978fc28315e9c704383e639a926ea0fce5f?s=96&d=mm&r=g","caption":"Masroof Ahmad"},"url":"https:\/\/onlineappsdba.com\/index.php\/author\/masroof\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/1179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/users\/115"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/comments?post=1179"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/1179\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=1179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=1179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=1179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}