当前位置:网站首页>AIX系统月维护查什么(二)
AIX系统月维护查什么(二)
2022-06-23 21:56:00 【金陵大掌柜】
温故:
在上一篇文章《AIX系统月维护查什么(一)i》中和大家分享了AIX系统如何做月维护(月度巡检),文章主要从系统、磁盘、网络三个方面进行了讲解,但是还不够全。今天给大家补上数据库方面的巡检。
知新:
下面就是需要检查的项目,当然了也可以根据实际情况进行适当裁剪
缓冲区命中率 | Statckspack的Buffer Hit | 缓冲区的命中率显示相对磁盘读取的数据内存的百分比。 |
数据字典缓存命中率 | select (1-(sum(getmisses)/sum(gets))) * 100 "Hit Ratio" from v$rowcache; | 数据字典缓存命中率显示了对数据字典和其它对象的内存读取操作所占的百分比 |
库缓存命中率 | select Sum(Pins)/(Sum(Pins)+Sum(Reloads))* 100 "Hit Ratio" from V$LibraryCache; | 库缓存命中率显示了对实际语句和PL/SQL对象的内存读操作所占的百分比 |
内存排序命中率 | select a.value "Disk Sorts", b.value "Memory Sorts", round((100*b.value)/decode((a.value+b.value),0,1,(a.value+b.value)),2) "Pct Memory Sorts" | 根据初始化参数PGA_AGGREGATE_TARGET(或者SORT_AREA_SIZE)的值,用户的排序可能在内存中执行或磁盘上的特定的临时表空间执行 |
最浪费内存的前十个语句占所有语句的比例 | select sum(pct_bufgets) | 前十个语句占所有语句的比例过高,将影响Oracle的整体性能,也意味着前十个语句也许需要进行SQL优化 |
表空间使用情况 | select tablespace_name, total_gb, free_gb, used_gb, used_ratio || '%' used_ratio, round((used_gb / 90 * 100) - total_gb) "to-90%", round((used_gb / 85 * 100) - total_gb) "to-85%", round((used_gb / 80 * 100) - total_gb) "to-80%", round((used_gb / 75 * 100) - total_gb) "to-75%", round((used_gb / 70 * 100) - total_gb) "to-70%" from (select ttt.* from (select df.tablespace_name, df.total_gb, nvl(dfs.free_gb, 4) free_gb, df.total_gb - nvl(dfs.free_gb, 4) used_GB, round((df.total_gb - nvl(dfs.free_gb, 4)) / decode(df.total_gb, 0, 1, df.total_gb), 2) * 100 used_ratio from (select tablespace_name, round(sum(bytes) / 1024 / 1024 / 1024, 4) total_gb from dba_data_files group by tablespace_name) df, (select tablespace_name, round(sum(bytes) / 1024 / 1024 / 1024, 4) free_gb from dba_free_space group by tablespace_name) dfs where df.tablespace_name = dfs.tablespace_name(+) union all select tt.tablespace_name, tt.total_gb, round(dt.block_size * ss.fb / 1024 / 1024 / 1024, 4) free_gb, tt.total_gb - round(dt.block_size * ss.fb / 1024 / 1024 / 1024, 4) used_gb, round((dt.block_size * ss.ub / 1024 / 1024 / 1024) / decode(tt.total_gb, 0, 1, tt.total_gb), 2) * 100 used_ratio from (select tablespace_name, sum(used_blocks) ub, sum(free_blocks) fb from gv$sort_segment group by tablespace_name) ss, dba_tablespaces dt, (select tablespace_name, round(sum(bytes / 1024 / 1024 / 1024), 4) total_gb from dba_temp_files group by tablespace_name) tt where tt.tablespace_name = ss.TABLESPACE_NAME and tt.tablespace_name = dt.tablespace_name) ttt order by 5 desc); | 使用率是否在阀值之内 |
数据文件状态 | 所有数据文件是否online | |
监听运行情况 | lsnrctl -status | |
数据库Alert日志报警情况 | 是否有ORA开头的关键字 |
边栏推荐
- Interviewer: the difference between uselayouteffect and useeffect
- MySQL数据库配置信息查看与修改方法详解
- Opengauss Developer Day 2022 was officially launched to build an open source database root community with developers
- How to set up links for website construction how to build a website
- [js] remove the extra zero after the decimal point
- How to set the search bar of website construction and what should be paid attention to when designing the search box
- Summary of cloud native pipeline tools
- Three ways to enable IPv6 on Tencent cloud
- How to build a business analysis system
- PHP timestamp
猜你喜欢
随机推荐
The principle of async and await
How to set secondary title in website construction what is the function of secondary title
How to set dynamic background for website construction what are the benefits of dynamic background
Beauty of script │ VBS introduction interactive practice
Section 29 basic configuration case of Tianrongxin topgate firewall
FANUC机器人SRVO-050碰撞检测报警原因分析及处理对策(亲测可用)
The latest February activity # 1 core 2G first year: 38 yuan / year! 2-core 4G light weight RMB 74 / year! Mysql database 19.9 yuan / year!!
评估和选择最佳学习模型的一些指标总结
How do new investors open accounts by speculation? Is online account opening safe?
The technical design and practice of decrypting the red envelopes of Tiktok Spring Festival
Application of clock synchronization system in banking system
First talk about the necessary skills of Architecture
What are the processes, levels, stages and key points of requirements analysis in software development
如何利用数仓创建时序表
MySQL数据库配置信息查看与修改方法详解
Source code analysis of jmeter5.1 core class testcompiler
Website construction column setting form which website construction company is better
How to access the top-level domain name and automatically jump to the secondary domain name?
Problem solving: inittramfs unpacking failed:decoding failed
sql server常用sql







