Heap Dump

Heap dumps show details about the memory allocation and distribution in the shared pool and library cache including the details about the objects. It will also show the details about the cursors and the latch information when level 2 is used. It will have the details about the memory chunks (free, freeable, permanent, and recreatable) and their sizes. It will also have the information about the hash buckets and freelists inside the shared pool. Heap dumps are often requested by Oracle Support to diagnose shared pool related errors.

Syntax

Following methods show how to produce a heap dump.

Using ALTER SESSION

The first ALTER SESSION below will immediately produce a heap dump at supplied level number, while the second ALTER SESSION command ...

Get Oracle Wait Interface: A Practical Guide to Performance Diagnostics & Tuning now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.