{"id":2346,"date":"2026-02-17T18:14:07","date_gmt":"2026-02-17T16:14:07","guid":{"rendered":"https:\/\/www.ludovicocaldara.net\/dba\/?p=2346"},"modified":"2026-02-17T18:14:07","modified_gmt":"2026-02-17T16:14:07","slug":"dg26ai-json-output","status":"publish","type":"post","link":"https:\/\/www.ludovicocaldara.net\/dba\/dg26ai-json-output\/","title":{"rendered":"Data Guard 26ai &#8211; #14: JSON output for DGMGRL"},"content":{"rendered":"<p><a href=\"https:\/\/www.ludovicocaldara.net\/dba\/dg-26ai-series\/\">This post is part of a blog series.<\/a><\/p>\n<p>Oracle Data Guard 26ai adds <a href=\"https:\/\/docs.oracle.com\/en\/database\/oracle\/oracle-database\/26\/dgbkr\/dgmgrl-optional-parameters.html\">JSON output support to DGMGRL<\/a>.<br \/>\nPreviously, you needed Linux tools like sed, awk, or grep to extract information from DGMGRL command-line output.<br \/>\nNow, you can display DGMGRL results as JSON, making them easy to parse with standard libraries or tools such as <a href=\"https:\/\/jqlang.org\/\"><em>jq<\/em><\/a>.<br \/>\nWhile you can programmatically interact with the broker using PL\/SQL or REST, JSON output modernizes existing scripts and simplifies automation.<\/p>\n<p><a href=\"https:\/\/www.ludovicocaldara.net\/dba\/wp-content\/uploads\/2026\/01\/dg26ai-json-output-scaled.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-2347\" src=\"https:\/\/www.ludovicocaldara.net\/dba\/wp-content\/uploads\/2026\/01\/dg26ai-json-output-1024x457.png\" alt=\"One example shows JSON output for the command SHOW DATABASE. The other shows using jq to parse the output of SHOW CONFIGURATION.\" width=\"584\" height=\"261\" srcset=\"https:\/\/www.ludovicocaldara.net\/dba\/wp-content\/uploads\/2026\/01\/dg26ai-json-output-1024x457.png 1024w, https:\/\/www.ludovicocaldara.net\/dba\/wp-content\/uploads\/2026\/01\/dg26ai-json-output-300x134.png 300w, https:\/\/www.ludovicocaldara.net\/dba\/wp-content\/uploads\/2026\/01\/dg26ai-json-output-768x342.png 768w, https:\/\/www.ludovicocaldara.net\/dba\/wp-content\/uploads\/2026\/01\/dg26ai-json-output-1536x685.png 1536w, https:\/\/www.ludovicocaldara.net\/dba\/wp-content\/uploads\/2026\/01\/dg26ai-json-output-2048x913.png 2048w, https:\/\/www.ludovicocaldara.net\/dba\/wp-content\/uploads\/2026\/01\/dg26ai-json-output-500x223.png 500w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><br \/>\nEnable JSON output by running DGMGRL in batch mode with the <em>-json<\/em> argument, or toggle it on and off in interactive mode with <em>set json on<\/em> and <em>set json off<\/em>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>DGMGRL in Oracle Data Guard 26ai now supports JSON output\u2014parse results easily in scripts with tools like jq or standard libraries. <a href=\"https:\/\/www.ludovicocaldara.net\/dba\/dg26ai-json-output\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[375,329],"tags":[],"class_list":["post-2346","post","type-post","status-publish","format-standard","hentry","category-oracle-ai-database-26ai","category-oracle-dg"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/2346","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/comments?post=2346"}],"version-history":[{"count":2,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/2346\/revisions"}],"predecessor-version":[{"id":2424,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/posts\/2346\/revisions\/2424"}],"wp:attachment":[{"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/media?parent=2346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/categories?post=2346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ludovicocaldara.net\/dba\/wp-json\/wp\/v2\/tags?post=2346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}