Use the onstat -g ath command to view
a list of all threads. Unlike the onstat –u command,
this list includes internal daemon threads that do not have a database
server task-control block.
The onstat -g ath command display does not include
the session ID (because not all threads belong to sessions).
The status field contains information
on the status of thread, such as running, cond
wait, IO Idle, IO Idle, sleeping
secs: number_of_seconds, or sleeping
forever. The following output example identifies many threads
as sleeping forever. To improve performance, you
can remove or reduce the number of threads that are identified as sleeping
forever.
Threads that a primary decision-support thread started have a name
that indicates their role in the decision-support query. The following
figure shows four scan threads that belong to a decision-support thread.