{"id":14447,"date":"2020-07-28T18:23:27","date_gmt":"2020-07-28T16:23:27","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/"},"modified":"2020-07-28T18:23:27","modified_gmt":"2020-07-28T16:23:27","slug":"oda-odacli-now-supports-data-guard-in-19-8","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/","title":{"rendered":"ODA: odacli now supports Data Guard in 19.8"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>I&#8217;ve been dreaming of this kind of feature: just because most of the ODA configurations now include Disaster Recovery capabilities, through Data Guard or Dbvisit standy. If Dbvisit will obviously never be integrated to odacli, the lack of Data Guard features is now solved by the very latest 19.8 ODA software appliance kit.<\/p>\n<h2>How Data Guard was implemented before 19.8?<\/h2>\n<p>Those who have been using ODA and Data Guard for a while know that ODA was not aware of a Data Guard configuration. With odacli, you can create databases, mostly primaries, and you can also create an instance, which is a database without any file, just to get the database item in the reposity and a started instance. Creating a standby was done with the standard tools, RMAN for database duplication, and eventually system commands to edit and copy the pfile to standby server. Configuring Data Guard was done with the Data Guard broker dgmgrl, nothing specific to ODA. Lots of steps were also needed, the standby logs creation, the unique naming of the databases, the configuration of standby_file_managemement, &#8230; Actually quite a lot of operations not so easy to fully automate.<\/p>\n<h2>What are the promises of this 19.8?<\/h2>\n<p>As this 19.8 is brand new, I picked up this from the documentation. Quite impatient to test these features as soon as possible.<\/p>\n<p>First, odacli is now aware of Data Guard and can manage a Data Guard configuration. A Data Guard configuration is now an object in the repository, you can manage multiple Data Guard configurations, linking primary and standby databases together. You can also do the SWITCHOVER and FAILOVER operations with odacli. The use of dgmgrl doesn&#8217;t seem mandatory here.<\/p>\n<p>The goal of odacli&#8217;s Data Guard integration is to simplify everything, as this is the purpose of an appliance.<\/p>\n<h2>What are the prerequisites?<\/h2>\n<p>For using Data Guard on ODA you will need:<br \/>\n&#8211; at least 2 ODAs<br \/>\n&#8211; at least 2 different sites (reliable Disaster Recovery absolutely requires different sites)<br \/>\n&#8211; similar ODA configuration: mix of lite and HA ODAs is not supported<br \/>\n&#8211; Enterprise Edition on your ODAs: Data Guard is embedded with Enterprise Edition and do not exist in Standard Edition 2<br \/>\n&#8211; Twice the database size in space (never forget that)<br \/>\n&#8211; similar database configuration (shape and settings) and storage configuration. Mix of ASM and ACFS is not supported. Actually, these are best practices.<br \/>\n&#8211; All ODAs deployed or upgraded to 19.8 or later but with the same version<br \/>\n&#8211; OS customizations, if exist, should be the same on all the ODAs<br \/>\n&#8211; ODA backup configuration should exist, to OCI Object Storage or to NFS server (odacli create-backupconfig and odacli modify-database)<br \/>\n&#8211; your primary database should already exist<\/p>\n<h2>What are the steps for creating a Data Guard configuration?<\/h2>\n<p>First, create a backup on the primary with:<br \/>\n<code>odacli create-backup<\/code><br \/>\nOnce done, save the backup report to a text file with:<br \/>\n<code>odacli describe-backupreport<\/code><br \/>\nCopy this backup report to standby ODA and do the restore with:<br \/>\n<code>odacli irestore-database<\/code><br \/>\nYou will need to restore this database with the STANDBY type (will basically flag the controlfile to standby database).<\/p>\n<p>From now, you have 2 nearly identical databases. You can now create the Data Guard configuration with:<br \/>\n<code>odacli configure-dataguard<\/code> from the primary ODA. This command will prompt you for various parameters, like the standby ODA IP address, the name of the Data Guard configuration you want, the network to use for Data Guard, the transport type, the listener ports, the protection mode, aso. What&#8217;s interesting here is that you can also provide a json file with all these parameters, the same way you do when you deploy the appliance. Far more convenient, and much faster:<br \/>\n<code>odacli configure-dataguard -r my_DG_config.json<\/code><\/p>\n<p>You&#8217;ll also have to manage the TrustStore passwords, as described in the documentation. I don&#8217;t know if it&#8217;s new but never have to manage it before.<\/p>\n<h2>How to manage Data Guard through odacli?<\/h2>\n<p>To have an overview of all your Data Guard configurations, you can use:<\/p>\n<p><code>odacli list-dataguardstatus<\/code><\/p>\n<p>As you can imagine, each Data Guard configuration is identified by an id, and with this id you can have detailed view of the configuration:<\/p>\n<p><code>odacli describe-dataguardstatus -i xxx<\/code><\/p>\n<p>odacli is even able to do the switchover and failover operations you were doing with dgmgrl before:<br \/>\n<code><br \/>\nodacli switchover-dataguard -i xxx<br \/>\nodacli failover-dataguard -i xxx<br \/>\n<\/code><br \/>\nIn case of a failover, you probably know that the reinstate of the old primary is needed (because of its current SCN probably being greater than the SCN on standby when the failover was done), you can do the reinstate with odacli too:<\/p>\n<p><code>odacli reinstate-dataguard -i xxx<\/code><\/p>\n<h2>Other features<\/h2>\n<p>With ODA, you can quite simply migrate a database moving from one home to another. This feature now supports a Data Guard configuration, but you will have to manually disable transport and apply during migration with dgmgrl. It&#8217;s quite nice to be able to keep the configuration and not having the need to rebuild it in case of database migration.<\/p>\n<p>If you need to remove a Data Guard configuration, you can do that through odacli: <code>odacli deconfigure-dataguard -i xxx<\/code><\/p>\n<p>If you want to use a dedicated network for Data Guard, this is also possible with the network management option of odacli.<\/p>\n<h2>Conclusion<\/h2>\n<p>The Data Guard management was missing on ODA, and this new version seems to bring nearly all the features. Let&#8217;s try it on the next projects!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction I&#8217;ve been dreaming of this kind of feature: just because most of the ODA configurations now include Disaster Recovery capabilities, through Data Guard or Dbvisit standy. If Dbvisit will obviously never be integrated to odacli, the lack of Data Guard features is now solved by the very latest 19.8 ODA software appliance kit. How [&hellip;]<\/p>\n","protected":false},"author":45,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[229,198,199,42,59],"tags":[2042,221,999,2043,2044,79,1327,1330,1331,1332,1697,1698,1699],"type_dbi":[],"class_list":["post-14447","post","type-post","status-publish","format-standard","hentry","category-database-administration-monitoring","category-database-management","category-hardware-storage","category-operating-systems","category-oracle","tag-19-8","tag-data-guard","tag-dataguard","tag-dgmgrl","tag-manage-dataguard-odacli","tag-oda","tag-odacli","tag-x7-2ha","tag-x7-2m","tag-x7-2s","tag-x8-2ha","tag-x8-2m","tag-x8-2s"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>ODA: odacli now supports Data Guard in 19.8 - dbi Blog<\/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:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ODA: odacli now supports Data Guard in 19.8\" \/>\n<meta property=\"og:description\" content=\"Introduction I&#8217;ve been dreaming of this kind of feature: just because most of the ODA configurations now include Disaster Recovery capabilities, through Data Guard or Dbvisit standy. If Dbvisit will obviously never be integrated to odacli, the lack of Data Guard features is now solved by the very latest 19.8 ODA software appliance kit. How [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-07-28T16:23:27+00:00\" \/>\n<meta name=\"author\" content=\"J\u00e9r\u00f4me Dubar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"J\u00e9r\u00f4me Dubar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/\"},\"author\":{\"name\":\"J\u00e9r\u00f4me Dubar\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0fb4bbf128b4cda2f96d662dec2baedd\"},\"headline\":\"ODA: odacli now supports Data Guard in 19.8\",\"datePublished\":\"2020-07-28T16:23:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/\"},\"wordCount\":870,\"commentCount\":0,\"keywords\":[\"19.8\",\"Data Guard\",\"DataGuard\",\"dgmgrl\",\"manage dataguard odacli\",\"ODA\",\"odacli\",\"X7-2HA\",\"X7-2M\",\"X7-2S\",\"x8-2ha\",\"x8-2m\",\"x8-2s\"],\"articleSection\":[\"Database Administration &amp; Monitoring\",\"Database management\",\"Hardware &amp; Storage\",\"Operating systems\",\"Oracle\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/\",\"name\":\"ODA: odacli now supports Data Guard in 19.8 - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2020-07-28T16:23:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0fb4bbf128b4cda2f96d662dec2baedd\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"ODA: odacli now supports Data Guard in 19.8\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0fb4bbf128b4cda2f96d662dec2baedd\",\"name\":\"J\u00e9r\u00f4me Dubar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/efaa5a7def0aa4cdaf49a470fb4a7641a3ea6e378ae1455096a0933f99f46d6b?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/efaa5a7def0aa4cdaf49a470fb4a7641a3ea6e378ae1455096a0933f99f46d6b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/efaa5a7def0aa4cdaf49a470fb4a7641a3ea6e378ae1455096a0933f99f46d6b?s=96&d=mm&r=g\",\"caption\":\"J\u00e9r\u00f4me Dubar\"},\"description\":\"J\u00e9r\u00f4me Dubar has more than 15 years of experience in the field of Information Technology. Ten years ago, he specialized in the Oracle Database technology. His expertise is focused on database architectures, high availability (RAC), disaster recovery (DataGuard), backups (RMAN), performance analysis and tuning (AWR\/statspack), migration, consolidation and appliances, especially ODA (his main projects during the last years). Prior to joining dbi services, J\u00e9r\u00f4me Dubar worked in a Franco-Belgian IT service company as Database team manager and main consultant for 7 years. He also worked for 5 years in a software editor company as technical consultant across France. He was also teaching Oracle Database lessons for 9 years. J\u00e9r\u00f4me Dubar holds a Computer Engineering degree from the Lille Sciences and Technologies university in northern France. His branch-related experience covers the public sector, retail, industry, banking, health, e-commerce and IT sectors.\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/jerome-dubar\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"ODA: odacli now supports Data Guard in 19.8 - dbi Blog","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.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/","og_locale":"en_US","og_type":"article","og_title":"ODA: odacli now supports Data Guard in 19.8","og_description":"Introduction I&#8217;ve been dreaming of this kind of feature: just because most of the ODA configurations now include Disaster Recovery capabilities, through Data Guard or Dbvisit standy. If Dbvisit will obviously never be integrated to odacli, the lack of Data Guard features is now solved by the very latest 19.8 ODA software appliance kit. How [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/","og_site_name":"dbi Blog","article_published_time":"2020-07-28T16:23:27+00:00","author":"J\u00e9r\u00f4me Dubar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"J\u00e9r\u00f4me Dubar","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/"},"author":{"name":"J\u00e9r\u00f4me Dubar","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0fb4bbf128b4cda2f96d662dec2baedd"},"headline":"ODA: odacli now supports Data Guard in 19.8","datePublished":"2020-07-28T16:23:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/"},"wordCount":870,"commentCount":0,"keywords":["19.8","Data Guard","DataGuard","dgmgrl","manage dataguard odacli","ODA","odacli","X7-2HA","X7-2M","X7-2S","x8-2ha","x8-2m","x8-2s"],"articleSection":["Database Administration &amp; Monitoring","Database management","Hardware &amp; Storage","Operating systems","Oracle"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/","url":"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/","name":"ODA: odacli now supports Data Guard in 19.8 - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2020-07-28T16:23:27+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0fb4bbf128b4cda2f96d662dec2baedd"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/oda-odacli-now-supports-data-guard-in-19-8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"ODA: odacli now supports Data Guard in 19.8"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/0fb4bbf128b4cda2f96d662dec2baedd","name":"J\u00e9r\u00f4me Dubar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/efaa5a7def0aa4cdaf49a470fb4a7641a3ea6e378ae1455096a0933f99f46d6b?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/efaa5a7def0aa4cdaf49a470fb4a7641a3ea6e378ae1455096a0933f99f46d6b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/efaa5a7def0aa4cdaf49a470fb4a7641a3ea6e378ae1455096a0933f99f46d6b?s=96&d=mm&r=g","caption":"J\u00e9r\u00f4me Dubar"},"description":"J\u00e9r\u00f4me Dubar has more than 15 years of experience in the field of Information Technology. Ten years ago, he specialized in the Oracle Database technology. His expertise is focused on database architectures, high availability (RAC), disaster recovery (DataGuard), backups (RMAN), performance analysis and tuning (AWR\/statspack), migration, consolidation and appliances, especially ODA (his main projects during the last years). Prior to joining dbi services, J\u00e9r\u00f4me Dubar worked in a Franco-Belgian IT service company as Database team manager and main consultant for 7 years. He also worked for 5 years in a software editor company as technical consultant across France. He was also teaching Oracle Database lessons for 9 years. J\u00e9r\u00f4me Dubar holds a Computer Engineering degree from the Lille Sciences and Technologies university in northern France. His branch-related experience covers the public sector, retail, industry, banking, health, e-commerce and IT sectors.","url":"https:\/\/www.dbi-services.com\/blog\/author\/jerome-dubar\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/14447","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/45"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=14447"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/14447\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=14447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=14447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=14447"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=14447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}