How to list inactive session which are holding the lock.
select status,sid,serial#,machine,osuser,LOGON_TIME,LAST_CALL_ET from
gv$session where username='AUTOMIC_REPO' and status='INACTIVE' order by 6; 2
Release : 12.3.2
Component : AUTOMATION ENGINE
Update sqlnet.ora ( set the expire_time to minimum value)
SQLNET.INBOUND_CONNECT_TIMEOUT=150
SQLNET.EXPIRE_TIME=1
https://docs.oracle.com/cd/E11882_01/network.112/e10835/sqlnet.htm#NETRF216