Requires Free Membership to View
You can get a start on determining how much memory is used by your instance by selecting from the v$sga data dictionary view:
SELECT * FROM v$sga; Returns: NAME VALUE -------------------- ---------- Fixed Size 75804 Variable Size 78835712 Database Buffers 101113856 Redo Buffers 77824This will show you how much memory is allocated to the System Global Area.
You can determine the amount of memory needed/used for current sessions as follows:
SELECT sum(se.value)||' Bytes' "Total memory for all sessions" FROM v$sesstat se, v$statname n WHERE n.statistic# = se.statistic# AND n.name = 'session pga memory'; Returns: Total memory for all sessions -------------------------------- 4174892 BytesYou can get more detailed but these two queries should give you a pretty good estimating point. Hope this helps!
For More Information
- Dozens more answers to tough Oracle questions from Karen Morton are available.
- The Best Oracle Web Links: tips, tutorials, scripts, and more.
- Have an Oracle or SQL tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical Oracle and SQL questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
This was first published in August 2002

Join the conversationComment
Share
Comments
Results
Contribute to the conversation