Operating System - HP-UX
1834882 Members
2335 Online
110071 Solutions
New Discussion

Determining the size of oracle processes without the glance utility

 
SOLVED
Go to solution
Augusto Vinhaes
Frequent Advisor

Determining the size of oracle processes without the glance utility

Hi all !
I've got some oracle processes running in a unix box and I need to determine the following:

- the size of text area
- size of shared memory area
- size of data area
- size of stack area

I don't have Glance in this machine and the "ps" command doesn't show what I need.
In the Solaris, there is the pmap command that is bundled and gives all the information.

Regards,
Augusto
Augusto
3 REPLIES 3
Sundar_7
Honored Contributor
Solution

Re: Determining the size of oracle processes without the glance utility

Hi,

Download the attached procsize.sh in to your system and execute the script. it will create procsize binary.

# /root/procsize -p

Sundar
Learn What to do ,How to do and more importantly When to do ?
Nicolas Dumeige
Esteemed Contributor

Re: Determining the size of oracle processes without the glance utility

You seems to know your way around on this.
In any case, check that metalink.oracle.com Note:174555.1 UNIX: Determining the Size of an Oracle Process
All different, all Unix
Geoff Wild
Honored Contributor

Re: Determining the size of oracle processes without the glance utility

Here's a short script to just get memory by a user:

#!/bin/ksh
# usermem - display memory claimed by a user
#
if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]
then
echo "Usage:"
echo "usermem \"userid\""
echo "Example:"
echo "usermem oracle"
exit 1
fi
echo " "

USER=$1
t=0
for j in `UNIX95= ps -e -o vsz=Kbytes -o ruser -o pid,args=Command-Line | sort -rnk1 | grep -v Kbytes | grep $USER | awk '{print $1}'`
do
t=`expr $t + $j`
done
echo "\nMemory claimed by $USER: $t Kbytes.\n"


Output like:

# usermem oracle

Memory claimed by oracle: 16204272 Kbytes.



Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.