Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[receiver/oracledb] Add additional metrics to compute Buffer Cache Hit Ratio #21215

Closed
atoulme opened this issue Apr 27, 2023 · 0 comments · Fixed by #21502
Closed

[receiver/oracledb] Add additional metrics to compute Buffer Cache Hit Ratio #21215

atoulme opened this issue Apr 27, 2023 · 0 comments · Fixed by #21502
Labels
enhancement New feature or request receiver/oracledb

Comments

@atoulme
Copy link
Contributor

atoulme commented Apr 27, 2023

Component(s)

receiver/oracledb

Is your feature request related to a problem? Please describe.

See https://www.learn-it-with-examples.com/database/oracle/database-tuning/buffer-cache-hit-ratio-oracle-database.html

With this query, users can compute the buffer cache hit ratio:

SELECT round((P1.value + P2.value - P3.value) / 
       (P1.value + P2.value)*100,2) "Cache Hit Ratio (DB)"
         FROM   v$sysstat P1, v$sysstat P2, v$sysstat P3
         WHERE  P1.name = 'db block gets'
         AND    P2.name = 'consistent gets'
         AND    P3.name = 'physical reads';

Describe the solution you'd like

Add 3 additional metrics:

  • 'db block gets'
  • 'consistent gets'
  • 'physical reads'

Users can derive the ratio from those metrics.

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request receiver/oracledb
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant