Running DBMS_STATS.GATHER_TABLE_STATS Is Failing With An ORA-12805 And An ORA-07445 [Qesamsr2sorrecmerge] Is Reported In The Alert Log.
Last updated on NOVEMBER 28, 2016
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.3 to 188.8.131.52 [Release 10.2 to 11.1]
Information in this document applies to any platform.
When running DBMS_STATS.GATHER_TABLE_STATS with Parallelism, it fails with the below error:ORA-12805: parallel query server died unexpectedly
And in the alert log, you see the error:
ORA-07445: exception encountered: core dump [qesaMSR2SorRecMerge()+224]
[SIGSEGV] [Address not mapped to object] [0xFFFFFFFF7883CE80]  
An example of the failing query gathering the statistics would be:
select /*+ parallel(t,20) parallel_index(t,20) dbms_stats cursor_sharing_exact.......
The Call Stack Trace would look something like:
qergsPAggRowP <- qertqiFetch <- qergsFetch <- qertqoFetch <-
qerpxSlaveFetch <- qerpxFetch <- opiexe <- kpoal8 <- opiodr
<- kpoodr <- upirtrc <- kpurcsc <- kpuexecv8 <- kpuexec <-
OCIStmtExecute <- kxfxsStmtExecute <- 260 <- kxfxsExecute <- kxfxsp <-
kxfxmai <- kxfprdp
The Explain Plan would also show a lot of PX operations.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms