ORA-24173: nested query not supported for rule condition
Cause: user specified nested query in rule condition.
Action: do not use nested query in rule condition.
ORA-24173: nested query不支持rule condition,是由于在Data Guard规则条件中使用了嵌套查询导致的错误。
select * from tbl_A where … “NOT EXISTS” (select 1 from tbl_B where …)
1、避免在Data Guard规则条件中使用嵌套查询。
2、如果必须使用嵌套查询,可以将其转换为一系列独立的查询语句,然后将结果与Data Guard规则的其他条件进行比较。例如:
select * from tbl_A where …
and rowid not in (select distinct rowid from tbl_B where …)