Earlier “Event 10032 – Dump Sort Statistics” showed information about sorts only(11.2.0.1 incl.), but in 11.2.0.3 it also showing “Abridged” call stack. I have not tested it on 11.2.0.2, so I can’t tell from which version it works.
alter session set events '10032 trace name context forever, level 10';
From trace file:
*** 2012-10-30 23:14:34.627 *** SESSION ID:(41.15067) 2012-10-30 23:14:34.627 *** CLIENT ID:() 2012-10-30 23:14:34.627 *** SERVICE NAME:(orasql.org) 2012-10-30 23:14:34.627 *** MODULE NAME:(SQL*Plus) 2012-10-30 23:14:34.627 *** ACTION NAME:() 2012-10-30 23:14:34.627 soropn: opened (new) sort, sordef 0x7fc4679e2550, flags 0x802 maxkey 25, nflds 12, nkflds 1 *** 2012-10-30 23:14:34.678 ----- Current SQL Statement for this session (sql_id=3ktacv9r56b51) ----- select owner#,name,namespace,remoteowner,linkname,p_timestamp,p_obj#, nvl(property,0),subname,type#,d_attrs from dependency$ d, obj$ o where d_obj#=:1 and p_obj#=obj#(+) order by order# Abridged call stack trace: ksedsts<-soropn<-qersoProcessULS<-qersoFetch<-opifch2<-opifch<-opiodr<-rpidrus<-skgmstack<-rpiswu2<-rpidrv<-rpifch<-kqllod<-kglobld<-kglobpn<-kglpim<-kglpin<-kglgob<-kgldpo0<-qcdlgpo<-qcsRslvPLSQLInvoc1<-qcsRslvPLSQLInvoc<-qcsRslvName<-qcsridn<-qcsraic<-qcspqbDescendents <-qcspqb<-kkmdrv<-opiSem<-opiDeferredSem<-opitca<-kksFullTypeCheck<-rpiswu2<-kksLoadChild<-kxsGetRuntimeLock<-kksfbc<-kkspsc0<-kksParseCursor<-opiosq0<-kpooprx<-kpoal8<-opiodr<-ttcpip<-opitsk<-opiino<-opiodr<-opidrv<-sou2o<-opimai_real<-ssthrdmain<-main<-__libc_start_main <-_start End of abridged call stack trace. *** 2012-10-30 23:14:35.328 soreod: sorp 0x7fc4679e2550 ---- Sort Parameters ------------------------------ sort_area_size 65536 sort_area_retained_size 65536 sort_multiblock_read_count 1 max intermediate merge width 3