{"id":1859,"date":"2011-12-31T21:19:46","date_gmt":"2012-01-01T02:19:46","guid":{"rendered":"http:\/\/appcrawler.com\/wordpress\/?p=1859"},"modified":"2013-04-19T19:39:56","modified_gmt":"2013-04-20T00:39:56","slug":"extracting-scn-range-from-an-online-redo-log-or-archived-redo-log","status":"publish","type":"post","link":"http:\/\/appcrawler.com\/wordpress\/2011\/12\/31\/extracting-scn-range-from-an-online-redo-log-or-archived-redo-log\/","title":{"rendered":"Extracting SCN range from an online redo log or archived redo log"},"content":{"rendered":"<p>I can&#8217;t imagine that this would be useful in a well managed system, but if you find yourself with a &#8220;raw&#8221; log file that is not in the dictionary, you can at least extract the SCN range it encompasses using what is below.<\/p>\n<pre lang=\"text\">\r\n[oracle@dell11gr1 ~]$ awk --version\r\nGNU Awk 3.1.5\r\nCopyright (C) 1989, 1991-2005 Free Software Foundation.\r\n\r\nThis program is free software; you can redistribute it and\/or modify\r\nit under the terms of the GNU General Public License as published by\r\nthe Free Software Foundation; either version 2 of the License, or\r\n(at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful,\r\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\r\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r\nGNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License\r\nalong with this program; if not, write to the Free Software\r\nFoundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\r\n[oracle@dell11gr1 ~]$ strings -a arch1.arc | head -20 | grep SCN | awk -F \",\" '{split($3,t,\" \");split(t[2],t2,\"-\");printf(\"Start SCN = %d, End SCN = %d\\n\",strtonum(t2[1]),strtonum(t2[2]))}'\r\nStart SCN = 5345720, End SCN = 5350856\r\n[oracle@dell11gr1 ~]$ \r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I can&#8217;t imagine that this would be useful in a well managed system, but if you find yourself with a &#8220;raw&#8221; log file that is not in the dictionary, you can at least extract the SCN range it encompasses using&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"http:\/\/appcrawler.com\/wordpress\/2011\/12\/31\/extracting-scn-range-from-an-online-redo-log-or-archived-redo-log\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"footnotes":""},"categories":[19,28,27,22],"tags":[],"_links":{"self":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/1859"}],"collection":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1859"}],"version-history":[{"count":5,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/1859\/revisions"}],"predecessor-version":[{"id":2746,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/posts\/1859\/revisions\/2746"}],"wp:attachment":[{"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1859"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/appcrawler.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}