EXPLAIN PLAN fails when using DRIVING_SITE hints and dblinks
I have 2 databases (DB1 and DB2) and a dblink from DB1 to DB2. I am using DB1 as local and DB2 as remote. DB1 is Oracle19c while DB2 is Oracle12c.
Here are few case scenarios:
Case1: I can successfully run a query in DB1. This query uses objects in both DB1 and DB2 (using dblink).
Case2: I can successfully run an EXPLAIN PLAN of the above query in DB1, without any hints.
Case3: I can successfully run an EXPLAIN PLAN of the above query in DB1 with PARALLEL hints.
Case4: EXPLAIN PLAN of the above query fails in DB1 when I add DRIVING_SITE hints