DEV Community

Vahid Yousefzadeh
Vahid Yousefzadeh

Posted on

26ai- Using Tags in Oracle Data Guard Broker

Oracle AI Database 26ai adds tagging support to Oracle Data Guard Broker, allowing administrators to attach custom metadata to configuration members.
With tags, you can attach your own information to Data Guard members. Think of it as adding labels to databases so they become easier to identify later.

For example, you may want to store:

  • Deployment location
  • Environment type
  • Build date
  • Owner team
  • Compliance information

Before using tags, the feature must be enabled.

DGMGRL> EDIT CONFIGURATION SET PROPERTY TagMode=1;
Property "tagmode" updated
Enter fullscreen mode Exit fullscreen mode

In this demo, I added two tags to the member dg1.

The first tag stores the location of the database:

DGMGRL>  EDIT MEMBER dg1 SET TAG location='BABOL';
Tag "location" updated in "dg1".
Enter fullscreen mode Exit fullscreen mode

The second tag stores a configuration date:

DGMGRL>  EDIT MEMBER dg1 SET TAG configuation_date='2026-02-25';
Tag "configuation_date" updated in "dg1".
Enter fullscreen mode Exit fullscreen mode

Now we can query V$DG_BROKER_TAG and verify the tags:

SQL> select member,name,value from V$DG_BROKER_TAG;

MEMBER  NAME                VALUE
------- ------------------- --------------------
dg1     location            BABOL
dg1     configuation_date   2026-02-25
Enter fullscreen mode Exit fullscreen mode

Top comments (0)