The sessions can be monitored in Oracle as well as in TIBCO Data Virtualization. And the number of active sessions should match in both the cases.
Use the below command in Oracle:
SELECT sid, serial#, username, status FROM v$session WHERE status = 'ACTIVE';
And in TDV, use this:
SELECT * FROM /services/databases/system/SYS_SESSIONS ss WHERE ss.SESSION_TYPE = 'JDBC';
This query will list all JDBC active sessions but add another filter for just Oracle sessions.
But it could be that even after the query execution is completed, it still shows active sessions in Oracle but not in TDV.
This means that the older completed sessions are still not closed.