V$VERSION: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
select count(*) INTO n_count from V$LOCKED_OBJECT a inner join ALL_OBJECTS