首页 > 其他分享 >sysaux 清理

sysaux 清理

时间:2022-11-26 14:55:39浏览次数:27  
标签:name sysaux 清理 WRH ACTIVE table segment HISTORY

 

select segment_name,segment_type,sum(bytes/1024/1024) M from dba_segments where tablespace_name = 'SYSAUX' group by segment_name,segment_type order by M desc


select segment_name,PARTITION_NAME,segment_type,bytes/1024/1024 from dba_segments where tablespace_name='SYSAUX' and segment_name='WRH$_ACTIVE_SESSION_HISTORY' order by 3;

WRH$_ACTIVE_SESSION_HISTORY_PK
WRH$_ACTIVE_SESSION_HISTORY

alter table sys.wrh$_active_session_history truncate partition WRH$_ACTIVE_1519739675_0 update global indexes;
alter session set ""_swrf_test_action"" = 72; --让系统对表进行分区


--alter table WRH$_ACTIVE_SESSION_HISTORY shrink space compact;
--analyze table WRH$_ACTIVE_SESSION_HISTORY compute statistics for table;
--alter table WRH$_ACTIVE_1519739675_0 shrink space;
--analyze table WRH$_ACTIVE_SESSION_HISTORY compute statistics for table;
select table_name,blocks, num_rows from user_tables where table_name=upper('WRH$_ACTIVE_1519739675_0');


select segment_name,PARTITION_NAME,segment_type,bytes/1024/1024 from dba_segments where tablespace_name='SYSAUX' and segment_name='WRH$_ACTIVE_SESSION_HISTORY' order by 3;

 

标签:name,sysaux,清理,WRH,ACTIVE,table,segment,HISTORY
From: https://www.cnblogs.com/zzg520/p/16927434.html

相关文章

  • linux 清理垃圾文件
    linux的文件系统比windows的要优秀,不会产生碎片,对于长时间运行的服务器来说尤为重要,而且linux系统本身也不会像windows一样产生大量的垃圾文件。不知道这个说法有没有可信度......
  • windows系列---【安全清理电脑C盘,释放空间】
    1.使用windows工具释放磁盘空间 2.删除缓存使用win+R,输入"%temp%",回车确认,删除所有文件。 3.使用存储感知清理空间 4.卸载没有用的软件......
  • Purging/Cleaning Sysaux Tablespace In Oracle
    RestrictionsonSYSAUXtablespace1.UsingSYSAUXDATAFILEclauseintheCREATEDATABASEstatementyoucanspecifyonlydatafileattributesinSYSAUXtablespac......
  • linux下清理系统垃圾
    UbuntuLinux与Windows系统不同,UbuntuLinux不会产生无用垃圾文件,但是在升级缓存中,UbuntuLinux不会自动删除这些文件,今天就来说说这些垃圾文件清理方法。1,非常有用的清理命......
  • 瑾软清理大师
    瑾软清理大师隐私政策更新时间:2022年9月生效时间:2021年8月广州瑾讯计算机系统有限公司非常注重保护用户(“您”)的个人信息及隐私,我们深知个人信息对您的重要性,并将按照法律......
  • docker 容器和镜像的清理
    docker容器和镜像的清理环境:本地虚拟机ubuntu20.04背景根目录磁盘空间不多,就只剩5个G左右了,操作需要,涉及到频繁创建/删除容器,发现每创建一个容器,在删除后,磁盘空间并......
  • tmp临时文件目录自动清理
    转载:https://cloud.tencent.com/developer/article/1562225#:~:text=tmp%E4%B8%B4%E6%97%B6%E6%96%87%E4%BB%B6%E7%9B%AE%E5%BD%95%E8%87%AA%E5%8A%A8%E6%B8%85%E7%90%86%2......
  • Onyx for Mac免费系统维护清理工具 - 知乎
    Onyx for Mac免费系统维护清理工具-知乎 TitaniumSoftware|OperatingSystemUtilitiesforMac-OnyX(titanium-software.fr)......
  • npm 和 yarn 缓存清理,镜像源的查看与修改
    参考:https://blog.csdn.net/weixin_45115705/article/details/90516857npmcacheclean--forceyarncacheclean使用npmroot-g查询npm全局安装的路径默认安装在C:......
  • MySQL中重复数据清理(清理主键Id较小的)
    DELETEFROMuserWHEREidIN(SELECTmin(id)idFROM(SELECT*FROMuserWHERE`member_id`IN(SELECTmember_idFROM(......