- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Memory usage by Oracle Database
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 10:33 PM
11-30-2005 10:33 PM
Memory usage by Oracle Database
We have one HP 9000/800/N4000-44 machine having 12 Gb memory. There are several Oracle databases running in the machine. We want to calculate the memory usage of individual databases. How this can be achived ? We have tried ps -o command for this. Not sure whether this gives accurate result. Please advise.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 10:54 PM
11-30-2005 10:54 PM
Re: Memory usage by Oracle Database
for the database itself use the "show sga" command ( as sysdba).
This does not include the oracle (client) processes.
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 10:56 PM
11-30-2005 10:56 PM
Re: Memory usage by Oracle Database
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2005 11:52 PM
11-30-2005 11:52 PM
Re: Memory usage by Oracle Database
Thanks for replying. What I feel the database does not uses the whole amount of SGA defined all the time. Also, I need to calculate the memory used by client process, which I belive uses a part of Shared memory (SGA) and some private memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2005 12:29 AM
12-01-2005 12:29 AM
Re: Memory usage by Oracle Database
the fixed will always be allocated and you can chexk it with the size of the associated shared memory segment(s).
The PGA for the oracle processes is made of stack and UGA. If you use MTS the UGA will be located in the SGA.
see attachment.
Regards
Jean-Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2005 08:13 PM
12-01-2005 08:13 PM
Re: Memory usage by Oracle Database
/usr/ccs/bin/size $ORACLE_HOME/bin/oracle|awk '{print $1,$3,$5}'|read Mtext Mdata Mbss
#echo $Mtext $Mdata $Mbss
echo "==============================="
echo " $ORACLE_SID"
echo "==============================="
$ORACLE_HOME/bin/sqlplus -s "/ as sysdba"<
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2005 08:37 PM
12-01-2005 08:37 PM
Re: Memory usage by Oracle Database
just one remark!
Measuring the size of process memory from the OS can be tricky. Because the processes all attach to the shared memory of the SGA, this is reported as part of the process size.
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2005 09:01 PM
12-01-2005 09:01 PM
Re: Memory usage by Oracle Database
1. Through oracle
2. OS commands-not very accurate, but can give you required information.
3. glance-accurate.
Point 2 would require you distingush between different ORACLE SID processes. (even though they run under same use id)
Say process oracle xyzABC - is ABC oracle instance process and dseFRG is FRG oracle sid.
The processes memory, now can be calculated as follows.
UNIX95= ps -ef -o vsz,ruser,pid,args | grep -i '[a]bcXYZ' | more
UNIX95= ps -ef -o vsz,ruser,pid,args | grep -i '[d]esFRG' | more
3. Do you have glance?? If yes, fire up gpm and check it. If you have PV, then you can check old history also. In case you do not have PV, you will have to manage with mwa extract command. If you require extract details, please reply.