首页 > 其他分享 >清理SYSAUX(其三)

清理SYSAUX(其三)

时间:2023-05-19 16:36:08浏览次数:19  
标签:SYSAUX 清理 SAVTIME WRI SYS OPTSTAT 其三 SELECT HISTORY

SQL> col occupant_name format a30
select occupant_name,space_usage_kbytes from v$sysaux_occupants order by space_usage_kbytes desc;

OCCUPANT_NAME SPACE_USAGE_KBYTES


SM/OPTSTAT 9112960
SM/AWR 137728

SELECT occupant_name, schema_name, move_procedure,
space_usage_kbytes
FROM v$sysaux_occupants
ORDER BY 1;

--各个组件的含义
SM/AWR:AWR快照

SM/OPTSTAT:This stores older version of optimizer statistics.
We have new capability in Oracle Database 10g that allows you restore old stats in case you encounter execution plan regression when the stats are refreshed. The default retention for this data is 31 days.

SM/ADVISOR:This refers to the advisor frameworks tables. Advisors like SQL Tuning Advisor, SQL Access Advisor, ADDM use this infrastructure.

SELECT MIN(SAVTIME), MAX(SAVTIME) FROM WRI$_OPTSTAT_TAB_HISTORY;

SELECT MIN(SAVTIME), MAX(SAVTIME) FROM SYS.WRI$_OPTSTAT_IND_HISTORY;

SELECT MIN(SAVTIME), MAX(SAVTIME) FROM SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY;

SELECT MIN(SAVTIME), MAX(SAVTIME) FROM SYS.WRI$_OPTSTAT_HISTGRM_HISTORY;

SELECT MIN(SAVTIME), MAX(SAVTIME) FROM SYS.WRI$_OPTSTAT_AUX_HISTORY;

SELECT COUNT(*) FROM SYS.WRI$_OPTSTAT_TAB_HISTORY;

SELECT COUNT(*) FROM SYS.WRI$_OPTSTAT_IND_HISTORY;

SELECT COUNT(*) FROM SYS.WRI$_OPTSTAT_HISTHEAD_HISTORY;

SELECT COUNT(*) FROM SYS.WRI$_OPTSTAT_HISTGRM_HISTORY;

SELECT COUNT(*) FROM SYS.WRI$_OPTSTAT_AUX_HISTORY;

SELECT COUNT(*) FROM SYS.WRI$_OPTSTAT_OPR;

标签:SYSAUX,清理,SAVTIME,WRI,SYS,OPTSTAT,其三,SELECT,HISTORY
From: https://www.cnblogs.com/sage914/p/17415551.html

相关文章

  • 清理SYSAUX(其二)
    【是由于升级到19C之后index扩大导致,重建index】1.--检查表空间使用情况columnusedformat999,999,999heading'USED(MB)'columnfreeformat999,999,999heading'FREE(MB)'columntotalformat999,999,999heading'TOTAL(MB)'columnusedpctform......
  • 清理SYSAUX(其一)
    1:addSYSAUXtablespace或者如下脚本:iftest-f/var/opt/oracle/oratabthenvoratab=/var/opt/oracle/oratabelsevoratab=/etc/oratabfiexportvoratabecho""voratab=$voratab"">AL.shps-ef|greppmon_|grep-v""greppmon&......
  • 如何正确的清理C盘
    https://zhuanlan.zhihu.com/p/74793683 如何正确的清理C盘彷徨设计师,设计教育工作者 1,289人赞同了该文章如何正确清理C盘Windows电脑操作系统一般是安装在磁盘驱动器的C盘中,一旦运行,便会产生许多垃圾文件,C盘空间在一定程度上都会越来越小。伴随着......
  • macOS系统2023最佳清理软件CleanMyMac X 4.13功能介绍及如何激活解锁许可证
    CleanMyMacX4.13在软件功能列表中为MAC用户提供了常见的清理(系统垃圾、邮件附件、废纸篓)功能,还有保护(移除恶意软件、隐私)、速度(优化、维护)、应用程序(卸载器、更新程序、扩展)、文件(空间透镜、大型和旧文件、碎纸机)等功能。操作界面极其易用,例如仅需要点击几下就可以完成MAC系统的......
  • git 清理commit中历史提交记录的大文件
    git清理commit中历史提交记录的大文件起源是公司需要把代码仓库同步到另外一个代码仓库,结果另外一个仓库被限制大文件超过64M提交,所以会同步失败。刚开始我直接把大文件压缩到64m以内,结果还是同步失败。后来才知道是因为提交记录里面有包含大文件的信息也要删除才行。具体操作......
  • CentOS系统的/tmp目录自动清理规则
    CentOS系统的/tmp目录自动清理规则1、CentOS7CentOS7下,系统使用systemd管理易变与临时文件,与之相关的系统服务有3个:systemd-tmpfiles-setup.service:CreateVolatileFilesandDirectoriessystemd-tmpfiles-setup-dev.service:Createstaticdevicenodesin/devsystemd-tmpf......
  • 清理zabbix历史数据
    zabbix历史记录一般是这几个表清理历史记录就是清理这几个表简单粗暴清理直接重建表TRUNCATETABLEhistory;OPTIMIZETABLEhistory;TRUNCATETABLEhistory_uint;OPTIMIZETABLEhistory_uint;TRUNCATETABLEhistory_str;OPTIMIZETABLEhistory_str;TRUNCATE......
  • 清理分区
    背景:分区表按照月进行分区,定期删除分区清理数据,记录操、操作方案1、查询分区情况selecta.TABLE_OWNER,a.TABLE_NAME,a.PARTITION_NAME,b.column_name,a.HIGH_VALUEfromdba_tab_partitionsa,dba_part_key_columnsbwherea.table_name='tablenameXXX_XX'anda.table_owner='X......
  • 日志清理小脚本
    #!/bin/bash#获取日志目录大小,单位Gcur_file_size=`du-h--max-depth=1/oraclelog/archlog|awk'{print$1}'|sed's/G//g'`#获取日志文件占总磁盘大小比例size_ratio=`echo$cur_file_size1024|awk'{print$1/$2}'`#判断如果达到80%磁盘,则进行日志清理if_del=`echo......
  • Maven 仓库优先加载本地的仓库jar包配置,清理无法下载的jar
    Settings-Maven-Runner-VMOptions中添加-DarchetypeCatalog=internal,优先从本地仓库读取,添加-Dmaven.wagon.http.ssl.insecure=true-Dmaven.wagon.http.ssl.allowall=true,忽略证书检查https://www.jb51.net/article/276265.htm清理本地没下载完的https://www.jb51.......