11gR2 Database Control, Shared Servers and the DBSNMP User
I'm working with a production database which is configured with shared servers for the web applications that use it, and end users should only ever connect with a dedicated server (though should != does). When users connect with the "basic" mechanism in SQL Developer instead of the TNS that we've set up, this can sometimes lead to their session essentially blocking an entire shared server for themselves. This isn't a huge issue as there's plenty of resource to spare, but it makes my ASH reports look ridiculous - 90% Virtual Circuit Wait isn't uncommon and it's all because of these users. I've taken to using this query to identify the culprits and killing their sessions when they're idle: select n.SID , n.SERIAL# , s.name , s.status , n.LOGON_TIME , n.username , n.OSUSER , w.event , n.WAIT_TIME_MICRO/1000000 "Seconds" from v$shared_server s , v$circuit c , v$session n ...