Search notes:

oradebug dump pga_detail_get

oradebug dump pga_detail_get populates v$process_memory_detail which shows PGA related memory information.
First, the PID of the process whose memory needs to be analyzed must be found in a session:
select
   prc.pid
from
   v$session ses join
   v$process prc on ses.paddr = prc.addr
where
   ses.sid = userenv('sid');
Then, a user with sysdba privileges must dump the PGA information:
oradebug setmypid
oradebug dump pga_detail_get 61
link: Tanel Poder's smem_detail.sql script.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758206761, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/Oracle/tools/oradebug/dump/pga_detail_get/index(49): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78