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.

dbtut
Author: dbtut

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.

One comment

  1. NOTE TO ANYONE READING THIS:
    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

Your email address will not be published. Required fields are marked *