当前位置:网站首页>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开头的关键字 |
边栏推荐
- Problem solving: inittramfs unpacking failed:decoding failed
- Section 30 high availability (HA) configuration case of Tianrongxin topgate firewall
- How to set the website address for website construction can the website be put on record
- The old CVM of Tencent cloud is migrated to the new CVM, and the IP remains unchanged
- 【技术干货】蚂蚁办公零信任的技术建设路线与特点
- 什么是免疫组织化学实验? 免疫组织化学实验
- 国家邮政局等三部门:加强涉邮政快递个人信息安全治理,推行隐私面单、虚拟号码等个人信息去标识化技术
- Is the website under construction because there is no FTP upload? Can I upload without FTP
- Debian change source and uninstall useless services
- MySQL事务隔离
猜你喜欢

Section 29 basic configuration case of Tianrongxin topgate firewall

巨头下场“摆摊”,大排档陷入“苦战”

The technical design and practice of decrypting the red envelopes of Tiktok Spring Festival

The 12 SQL optimization schemes summarized by professional "brick moving" old drivers are very practical!
SQL语句中EXISTS的详细用法大全

Save: software analysis, verification and test platform
Detailed process of deploying redis cluster and micro service project in docker

The Sandbox 与 BAYZ 达成合作,共同带动巴西的元宇宙发展

Ant won the finqa competition champion and made a breakthrough in AI technology of long text numerical reasoning

详解四元数
随机推荐
Save: software analysis, verification and test platform
How to set the website address for website construction can the website be put on record
How to set the search bar of website construction and what should be paid attention to when designing the search box
What are the operation and maintenance advantages of Fortress machine web application publishing server? Two outstanding advantages
数据解读!理想L9冲刺「月销过万」,从BBA手中抢份额
How to build a business analysis system
What is the development prospect of face recognition technology?
What is an immunohistochemical experiment? Immunohistochemical experiment
百万消息量IM系统技术要点分享
详解四元数
2021-12-10: which can represent a 64 bit floating point number or a 64 bit signed integer
How PostgreSQL creates partition tables
运维故障经历分享
反序列化——php反序列化
How to build a website after registering a domain name
What should I do if the RDP fortress server connection times out? Why should enterprises use fortress machines?
Ant group's self-developed tee technology has passed the national financial technology product certification
Notes to nodejs (III)
What is the was fortress server restart was command? What are the reasons why was could not be restarted?
How to set the website construction title bar drop-down