Performance difference 12.1 and 18c ALL_CONSTRAINTS
We have the same user on both databases, the user is not DBA and cannot do explain plan.
SELECT COUNT(*) FROM ALL_CONSTRAINTS WHERE CONSTRAINT_TYPE = 'P';
executes fast on 12.1 but takes around 30sec on 18c (If the user is granted DBA on 18c - it is fast - but not a solution)
Does anybody know of any differences from 12.1 to 18c that can impact this?
It is from a 3rd party component and cannot be changed.