{"id":92,"date":"2006-11-28T16:18:00","date_gmt":"2006-11-28T20:18:00","guid":{"rendered":"http:\/\/onlineappsdba.com\/?p=92"},"modified":"2007-10-05T09:20:28","modified_gmt":"2007-10-05T13:20:28","slug":"configure-oracle-dataguard","status":"publish","type":"post","link":"https:\/\/onlineappsdba.com\/index.php\/2006\/11\/28\/configure-oracle-dataguard\/","title":{"rendered":"Configure Oracle Dataguard"},"content":{"rendered":"<p>Today I am going to cover step by step configuration for Oracle Dataguard &amp; may be in next or future posts I will discuss on common mistakes which you can do while configure dataguard \/ standby database.<\/p>\n<p>Below steps are based on assumptions that Primary Database is on <strong>Machine1.domain.com<\/strong> &amp; Standby database is on <strong>Machine2.domain.com<\/strong> . Database Instance Name is <strong>PROD <\/strong>and database listener is listening on port <strong>1525<\/strong>. Mount point on primary &amp; standby database are same (<span style=\"font-size: 85%\"><em>If they are not you need to set parameter db_file_convert<\/em><\/span>)<\/p>\n<p><strong>Assumptions<\/strong><br \/>\nI am assuming using LGWR, ASYNC option with log shipping service which means ,<br \/>\nLGWR (<span style=\"font-size: 85%\">Log Writer process will be used to write to standby site instead of ARC archiver process<\/span>)<br \/>\nASYNC (Redo logs to standby is <strong>asynchronous<\/strong> to primary site)<\/p>\n<p><span style=\"font-size: 85%\"><em>You may have to change options with log shipping service (LOG_ARCHIVE_DEST_n) depending on data protection mode you wish to choose.<\/em><\/span> (<span style=\"font-size: 85%\">I am using Maximum Performance Mode &#8211; Default Mode<\/span>)<\/p>\n<p><strong>Enable Archive log <\/strong><br \/>\nFor standby database configuration your primary database should be running in achieve log mode. In order to convert your primary database into archive log mode follow these steps<\/p>\n<p>SQL&gt; SHUTDOWN<br \/>\nSQL&gt; STARTUP MOUNT<br \/>\nSQL&gt; ALTER DATABASE ARCHIVELOG;<br \/>\nSQL&gt; ALTER DATABASE OPEN;<\/p>\n<p>SQL&gt; alter system set LOG_ARCHIVE_DEST_1 =&#8217;LOCATION=\/u01\/oracle\/data\/arch&#8217; scope=spfile; (<span style=\"font-size: 85%\">I am assuming that you are using spfile here , if you are using pfile skip scope=spfile<\/span>)<\/p>\n<p>SQL&gt; alter system set LOG_ARCHIVE_DEST_2 =&#8217;SERVICE=PROD_remote1.domain.com LGWR ASYNC REOPEN=60&#8242; scope=spfile; (<span style=\"font-size: 85%\">We will create above TNS Alias in next step<\/span>)<br \/>\nSQL&gt; alter system log_archive_dest_2=&#8217;DEFER&#8217; (<span style=\"font-size: 85%\">Defer this until you have standby system Up<\/span>)<\/p>\n<p>SQL&gt; shutdown immediate<br \/>\nSQL&gt; startup<\/p>\n<p>You should see archive logs generated after this on standby site<\/p>\n<p><strong>Enable Force Logging <\/strong><br \/>\nYou should enable Force logging in primary database else if some transaction which doesn&#8217;t generate redo log can corrupt your standby database. (<span style=\"font-size: 85%\"><em>Careful in OLTP transactions or long running requests in Apps<\/em><\/span>)<br \/>\nSQL&gt; ALTER DATABASE FORCE LOGGING;<\/p>\n<p><strong>Set Initialization Parameter<\/strong><br \/>\nSQL&gt; alter system set fal_client =<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I am going to cover step by step configuration for Oracle Dataguard &amp; may be in next or future [&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":[1],"tags":[87,85,88],"class_list":["post-92","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-datraguard","tag-dr","tag-failover"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Configure Oracle Dataguard -<\/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\/2006\/11\/28\/configure-oracle-dataguard\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configure Oracle Dataguard -\" \/>\n<meta property=\"og:description\" content=\"Today I am going to cover step by step configuration for Oracle Dataguard &amp; may be in next or future [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/onlineappsdba.com\/index.php\/2006\/11\/28\/configure-oracle-dataguard\/\" \/>\n<meta property=\"article:published_time\" content=\"2006-11-28T20:18:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2007-10-05T13:20:28+00:00\" \/>\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\/2006\/11\/28\/configure-oracle-dataguard\/\",\"url\":\"https:\/\/onlineappsdba.com\/index.php\/2006\/11\/28\/configure-oracle-dataguard\/\",\"name\":\"Configure Oracle Dataguard -\",\"isPartOf\":{\"@id\":\"https:\/\/onlineappsdba.com\/#website\"},\"datePublished\":\"2006-11-28T20:18:00+00:00\",\"dateModified\":\"2007-10-05T13:20:28+00:00\",\"author\":{\"@id\":\"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb\"},\"breadcrumb\":{\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2006\/11\/28\/configure-oracle-dataguard\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/onlineappsdba.com\/index.php\/2006\/11\/28\/configure-oracle-dataguard\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/onlineappsdba.com\/index.php\/2006\/11\/28\/configure-oracle-dataguard\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineappsdba.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configure Oracle Dataguard\"}]},{\"@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":"Configure Oracle Dataguard -","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\/2006\/11\/28\/configure-oracle-dataguard\/","og_locale":"en_US","og_type":"article","og_title":"Configure Oracle Dataguard -","og_description":"Today I am going to cover step by step configuration for Oracle Dataguard &amp; may be in next or future [&hellip;]","og_url":"https:\/\/onlineappsdba.com\/index.php\/2006\/11\/28\/configure-oracle-dataguard\/","article_published_time":"2006-11-28T20:18:00+00:00","article_modified_time":"2007-10-05T13:20:28+00:00","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\/2006\/11\/28\/configure-oracle-dataguard\/","url":"https:\/\/onlineappsdba.com\/index.php\/2006\/11\/28\/configure-oracle-dataguard\/","name":"Configure Oracle Dataguard -","isPartOf":{"@id":"https:\/\/onlineappsdba.com\/#website"},"datePublished":"2006-11-28T20:18:00+00:00","dateModified":"2007-10-05T13:20:28+00:00","author":{"@id":"https:\/\/onlineappsdba.com\/#\/schema\/person\/909a876ed58d400faf82caf81d61bfdb"},"breadcrumb":{"@id":"https:\/\/onlineappsdba.com\/index.php\/2006\/11\/28\/configure-oracle-dataguard\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/onlineappsdba.com\/index.php\/2006\/11\/28\/configure-oracle-dataguard\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/onlineappsdba.com\/index.php\/2006\/11\/28\/configure-oracle-dataguard\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineappsdba.com\/"},{"@type":"ListItem","position":2,"name":"Configure Oracle Dataguard"}]},{"@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\/92","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=92"}],"version-history":[{"count":0,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/posts\/92\/revisions"}],"wp:attachment":[{"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/media?parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/categories?post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineappsdba.com\/index.php\/wp-json\/wp\/v2\/tags?post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}