1. Script to find memory usage by INACTIVE Session SELECT sess.USERNAME, value/(1024*1024) "Current session memory MB", sess.sid,sess.status,p.spid FROM v$session sess, v$sesstat stat, v$statname name,v$process p WHERE sess.sid = stat.sid AND sess.PADDR=p.ADDR AND stat.statistic# = name.statistic# AND name.name like '%memory%' AND sess.USERNAME = 'APPS' AND sess.STATUS='INACTIVE' order by 2,4 asc / ================================================ 2. script to check INACTIVE sessions with HIGH DISK IO select p.spid,s.username, s.sid,s.status,t.disk_reads, s.last_call_et/3600 last_call_et_Hrs, s.action,s.program,s.machine cli_mach,s.process cli_process,lpad(t.sql_text,30) "Last SQL" from gv$session s, gv$sqlarea t,v$process p where s.sql_address =t.address and s.sql_hash_value =t.hash_value and p.addr=s.paddr and t.disk_reads > 5000 and s.status='INACTIVE' --and s.process='1234' order by S.PRO...
Posts related to Cloud Infrastructure | RPA | ChatBot | Oracle Applications | Oracle Database