How To Find Oracle Database Memory Usage(SGA and PGA)

How To Find Oracle Database Memory Usage(SGA and PGA)

The following query can be used to determine the memory usage rates in Oracle databases. If there is an increase in the memory values ​​from time to time, it will be necessary to examine the processes in the relevant time interval. From the dba_hist_snapshot view, memory usage rates can be determined by a query such as the following.


We are a team with over 10 years of database management and BI experience. Our Expertises: Oracle, SQL Server, PostgreSQL, MySQL, MongoDB, Elasticsearch, Kibana, Grafana.

This Post Has One Comment

  1. Jim Kotan

    Great script, however an important item to note:
    Provided you are licensed for the Diag+Tuning packs, this query is safe to run..
    HOWEVER, if you are not licensed for those, you cannot even THINK of looking at the DBA_HIST_% views/tables because Oracle will tell you you’re in violation of the licensing agreement…

Leave a Reply