Monitoring memory usage for each session
You can use several onstat -g command options to obtain memory information for each session.
You obtain memory information by identifying the SQL statements that use a large amount of memory.
To identify SQL statements using large amount of memory: