Instance, Session

Listing Sessions Connected by SID

“Holy wrong way to connect, DBAtman!”
Yeah Robin, let’s catch those criminals!

robinbatman60s

When organizing your service names, it’s useful to know if there is any session connecting by SID, right?

It can be done with:

select distinct machine,username,inst_id from gv$session 
where service_name = 'SYS$USERS';

Na, na, na, na, na, na, na, na, na, na, na, na… DBAtman!

Leave a comment