Getting dump or list all parameters set at session level:
Using oradebug one can get a dump of sessions parameters that are modified at session level, like optimization parameters.SQL> alter session set sql_trace=true;Session altered.SQL> alter session set optimizer_mode=ALL_ROWS;Session altered.-- connect to sessionSQL> oradebug setmypidStatement processed.SQL> oradebug dump modified_parameters 1;Statement processed.SQL> oradebug tracefile_name;
The Trace file contents:
---------------------------------------------------------------------------------------------------------
PARSING IN CURSOR #1 len=43 dep=0 uid=0 oct=42 lid=0 tim=3561292942895 hv=3364811346 ad='90925928'alter session set optimizer_mode=first_rows
END OF STMT
PARSE #1:c=30000,e=30737,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,tim=3561292942888
EXEC #1:c=0,e=341,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=3561292943385
*** 2012-06-04 15:28:05.809
DYNAMICALLY MODIFIED PARAMETERS:
sql_trace = TRUE
optimizer_mode = FIRST_ROWS
---------------------------------------------------------------------------------------------------------
Optimizer_mode
Comments
Post a Comment