Data Guard 26ai – #11: SQLcl support for Data Guard commands

This post is part of a blog series.

The PL/SQL APIs published for general use in 26ai have also powered SQLcl’s command line for some time. SQLcl has supported Data Guard commands since version 21c. It’s another nice addition that you get when upgrading from 19c.

SQLcl is a robust Java-based command line tool that excels at running SQL and can also (incomplete list):

  • launch Data Pump jobs
  • retrieve metadata
  • run Liquibase commands
  • manage projects
  • operate as an MCP server for natural language queries
  • and now, execute Data Guard commands

To run a Data Guard command, simply prefix a standard DGMGRL command with “DG ” in your SQLcl session.

The list of DG commands available in SQLcl is shown when running the command "help dg"

While not every Data Guard feature is available—some validation commands are missing—core management commands work without issue. The real advantage is convenience: you can use both SQL and Data Guard commands from the same interface, no need to switch tools.

Looking ahead, we plan to add more features, and SQLcl will eventually become our recommended tool for Data Guard. Today, you can switch between SQLcl and DGMGRL as needed. Note: Observer functionality remains unique to DGMGRL; SQLcl does not yet support it.

The following two tabs change content below.

Ludovico

Principal Product Manager at Oracle
Ludovico is a member of the Oracle Database High Availability (HA), Scalability & Maximum Availability Architecture (MAA) Product Management team in Oracle. He focuses on Oracle Data Guard, Flashback technologies, and Cloud MAA.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.