How to get session parameters changed by the user in Oracle

oracleoracle-11g-r2trace

Oracle 11.2.0.3 .

I need to identify all "alter session" changed for a specific session.
There is some v$session_* where I able to get this information?

My objective is part of investigation what I doing about a problem of sessions hanging at compile time… from Forms Builder.

I already got a trace of the session and have some suspicious over a bug documented at Oracle Support… but I want more details about this session.

Best Answer

This one is provided by one of the oracle gurus

There are several Initialization Parameters that influence the Optimizer and that can be modified with ALTER SESSION. We can see whether certain sessions have settings different from the System-wide settings with a query like

QL> set lines 200
col name for a40
col username for a10
col value for a40
select a.sid,c.username,a.name,a.value 
from v$ses_optimizer_env a 
join v$sys_optimizer_env b on a.id=b.id 
join v$session c on a.sid=c.sid 
where a.value<>b.value
and c.username is not null
and c.username not in ('SYS','SYSTEM','DBSNMP') 
order by a.sid,a.name;