It’s not possible to create blackout for RAC databases using emctl.
Oracle Enterprise Manager Cloud Control 13c Release 4
Copyright (c) 1996, 2020 Oracle Corporation. All rights reserved.
Blackout start Error : Command-line blackouts on targets spanning multiple agents are not supported.
12c Cloud Control Blackouts: Steps to Create Blackouts from Console UI / emctl / emcli (Doc ID 1386134.1)
It is also not possible to use emctl for creating blackouts against composite targets like Cluster, Cluster Database, Fusion Middleware (FMW) Domains, E-Biz Suite, etc or against Multi-Agent targets such as PDB. since these targets span multiple hosts and the blackout details cannot be propagated to the agents on the other nodes.
For composite targets, the blackout has to be created via the Console UI or the emcli.
Example: creating blackout for RAC database (primary and standby)
db_unique_name - MBANZINP_XXXXRAC - Primary database
db_unique_name - MBANZINP_XXXXRACDR - Physical standby database
$ $OMS_HOME/bin/emcli login -username=sysman
$ $OMS_HOME/bin/emcli get_targets -targets=rac_database | grep MBANZINP
1 Up rac_database MBANZINP_XXXXRAC.domain.com
1 Up rac_database MBANZINP_XXXXRACDR.domain.com
$OMS_HOME/bin/emcli create_blackout -name="WHATEVER" -reason="switchover" \
-add_targets="MBANZINP_XXXXRAC.domain.com:rac_database" -propagate_targets -schedule="duration:1:00"
$OMS_HOME/bin/emcli create_blackout -name="WHATEVER" -reason="switchover" \
-add_targets="MBANZINP_XXXXRACDR.domain.com:rac_database" -propagate_targets -schedule="duration:1:00"
-propagate_targets
When you specify this option, a blackout for a target of type "host" applies the blackout to all targets on the host, including the Agent.
This is equivalent to nodelevel in the emctl command.
Regardless of whether you specify this option, a blackout for a target that is a composite or a group applies the blackout to all members of the composite or group.
Other useful commands:
$OMS_HOME/bin/emcli get_blackouts
$OMS_HOME/bin/emcli get_blackout_targets -name="WHATEVER"
$OMS_HOME/bin/emcli get_blackout_details -name="WHATEVER"
$OMS_HOME/bin/emcli stop_blackout -name="WHATEVER"
$OMS_HOME/bin/emcli delete_blackout -name="WHATEVER"