When comparing two schemas (one on an ORacle 18 server, the other on a 10.2 server), all triggers are listed as different.
In the Differs By
column, validity
is listed for all of them.
I have checked which SQL statements are executed.
On the 18 server it is this:
Select object_name, object_id, status, editionable
from sys.USER_OBJECTS
where 1=1
and object_type = 'TRIGGER'
order by 1;
This lists VALID
for all triggers.
On the 10 server it is this:
Select object_name, object_id, status, null as editionable
from sys.USER_OBJECTS
where 1=1
and status = 'INVALID'
and object_type = 'TRIGGER'
order by 1;
This does not return any rows because no Trigger is INVALID
.
Is there any way around this?